Difference between revisions of "AddScriptVariable"
Jump to navigation
Jump to search
imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Adds a new variable to either an object script (when called by an object reference), or a quest script (when called on a quest). |name =...") |
imported>Jazzisparis |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
|summary = Adds a new variable to either an object script (when called by an object reference), or a quest script (when called on a quest). |
|summary = Adds a new variable to either an object script (when called by an object reference), or a quest script (when called on a quest). |
||
|name = AddScriptVariable |
|name = AddScriptVariable |
||
|returnType = added:0/1 |
|||
|referenceType = reference |
|referenceType = reference |
||
|arguments = |
|arguments = |
||
| Line 20: | Line 21: | ||
*The new variable has no explicit type, and can store either a numeric (float) value, or a reference. |
*The new variable has no explicit type, and can store either a numeric (float) value, or a reference. |
||
*To retrieve/set the value of the new variable, use any of [[GetVariable]]/[[GetRefVariable]]/[[SetVariable]]/[[SetRefVariable]]. |
*To retrieve/set the value of the new variable, use any of [[GetVariable]]/[[GetRefVariable]]/[[SetVariable]]/[[SetRefVariable]]. |
||
*The new variable |
*The new variable is saved with the game. |
||
==See Also== |
==See Also== |
||
*[[RemoveScriptVariable]] |
|||
*[[RemoveAllAddedVariables]] |
|||
*[[HasVariableAdded]] |
|||
*[[GetVariable]] |
|||
*[[GetRefVariable]] |
|||
*[[SetVariable]] |
|||
*[[SetRefVariable]] |
|||
[[Category:Functions_(JIP)]] |
[[Category:Functions_(JIP)]] |
||
[[Category:Script Functions (JIP)]] |
|||
Latest revision as of 16:52, 5 April 2015
< [[::Category:Functions|Category:Functions]]
A function added by the JIP NVSE Plugin.
Description
Adds a new variable to either an object script (when called by an object reference), or a quest script (when called on a quest).
Syntax
(added:0/1) reference.AddScriptVariable varName:string quest:ref
Example
RaulRef.AddScriptVariable "NewVar"
AddScriptVariable "NewVar" VERNovac01
Notes
- The new variable has no explicit type, and can store either a numeric (float) value, or a reference.
- To retrieve/set the value of the new variable, use any of GetVariable/GetRefVariable/SetVariable/SetRefVariable.
- The new variable is saved with the game.