Difference between revisions of "String Variable"

87 bytes added ,  06:32, 16 July 2014
link to string formatting
imported>Odessa
(mistake, need sv_construct to use format specifiers)
imported>Odessa
(link to string formatting)
Line 1: Line 1:
String variables are added by NVSE 4. A string is simply some combination of text characters and exists widely in the vanilla game. A string variable allows you to store a string in a similar way to any other variable, and a wide range of functions allow powerful capabilities for them.
String variables are added by NVSE 4. A string is simply some combination of text characters and exists widely in the vanilla game. A string variable allows you to store a string in a similar way to any other variable, and a wide range of functions allow powerful capabilities for them.


String variables are very simple to use, provided you also use [[Let]] instead of [[Set]] and 'if [[Eval|eval]]' instead of simply 'if'. To appreciate the full range of possibilites available, a [[Tutorial: String Variables|tutorial]] is available.
String variables are very simple to use, provided you also use [[Let]] instead of <b>set .. to ..</b> and '[[Eval|if eval]]' instead of simply <b>if</b>. To appreciate the full range of possibilites available, a [[Tutorial: String Variables|tutorial]] is available.


==Simple Example==
==Simple Example==
Line 18: Line 18:
</pre>
</pre>


To use format specifiers, you need to use [[Sv_Construct]]:
To use [[String Formatting]], you need to use [[Sv_Construct]]:
<pre>
<pre>
string_var my_string
string_var my_string
Line 27: Line 27:
</pre>
</pre>
==See Also==
==See Also==
*[[Tutorial: String Variables]]
*[[String Formatting]]
*[[Let]]
*[[Let]]
*[[Eval]]
*[[Eval]]
*[[ToString]]
*[[ToString]]
*[[Sv_Construct]]
*[[Sv_Construct]]
*[[Print]]
[[Category:String Variables]]
[[Category:String Variables]]
[[Category:NVSE]]
[[Category:NVSE]]
Anonymous user