Difference between revisions of "Print"
Jump to navigation
Jump to search
imported>Odessa (improved example) |
imported>Odessa (expanded) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = NVSE | |origin = NVSE | ||
|summary = Added by NVSE v4. 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 | |summary = Added by NVSE v4. 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|string formatting]] unnecessary. | ||
Like [[Let]] and [[Eval|if eval]], NVSE expressions and nested function calls are supported without [[Script Compiler Override|compiler override]]. | |||
|name = Print | |name = Print | ||
|returnType = none | |returnType = none | ||
Line 9: | Line 12: | ||
}} | }} | ||
|example = Print "My mod version is " + $MyMainQuest.Version + " and NVSE version is " + $(GetNVSEVersion) | |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 | |||
}} | }} | ||
==See Also== | ==See Also== |
Revision as of 11:29, 20 July 2014
< [[::Category:Functions|Category:Functions]]
A function added by the New Vegas Script Extender.
Description
Added by NVSE v4. 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 unnecessary.
Like Let and if eval, NVSE expressions and nested function calls are supported without compiler override.
Syntax
(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
See Also
- PrintToConsole (PrintC)
- ToString($)
- String Variable