Editing ToString
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
{{Function | {{Function | ||
|origin = NVSE | |origin = NVSE | ||
|summary = Added by NVSE V4. Attempts to convert an expression to a string. For numeric expressions, the result is a string representation of the numeric value. For objects, it is the name of the object if available; otherwise it is the formID expressed in hexadecimal notation. | |summary = Added by NVSE V4. Attempts to convert an expression to a string. For numeric expressions, the result is a string representation of the numeric value. For objects, it is the name of the object if available; otherwise it is the formID expressed in hexadecimal notation. For string expressions no conversion is necessary. | ||
For string | |||
You can also use the shorthand alias '$'. | You can also use the shorthand alias '$'. | ||
Line 23: | Line 21: | ||
<pre> | <pre> | ||
string_var my_string | string_var my_string | ||
let my_string := | let my_string := "whatever" | ||
MessageEx $my_string | |||
my_string | |||
</pre> | </pre> | ||
<pre> | <pre> | ||
string_var my_string | string_var my_string | ||
ref rActor | |||
let my_string := " | let rActor := SunnyREF | ||
let my_string := $rActor | |||
my_string == "Sunny Smiles" ; thats the name of the reference | |||
</pre> | </pre> | ||