Print

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Prints a string expression to the console. This is mainly a convenience function to eliminate the need for temporary string variables when printing complex strings using PrintToConsole, as it supports string concatenation and the ToString function, also making string formatting mostly unnecessary, although it can still be helpful to do things like ending the line with "%r".

Like Let and if eval, NVSE expressions and nested function calls are supported without compiler override.

Syntax

[help]
(none) Print string:expression

Example

Print "My mod version is " + $MyMainQuest.Version + " and NVSE version is " + $(GetNVSEVersion)

Console --> My mod version is 1.04 and NVSE version is 4

ref rRef
Print $(GetEditorID rRef)

Will output the EditorID of the form held in rRef.

See Also