User Tools

Site Tools


variables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
variables [2017/01/19 12:29]
Lee
variables [2017/01/19 12:30] (current)
Lee
Line 11: Line 11:
 You can define variables that are accessible through any script (called Global Variables) in the Variables/​Switches/​Collections/​Tables window. If you would like to define a variable only used in a specific script (called a Local Variable), use the "Local Variables"​ button in the **[[scripteditor|Script Editor]]**, as discussed below. You can define variables that are accessible through any script (called Global Variables) in the Variables/​Switches/​Collections/​Tables window. If you would like to define a variable only used in a specific script (called a Local Variable), use the "Local Variables"​ button in the **[[scripteditor|Script Editor]]**, as discussed below.
  
-The "​Variable Operation"​ event is used to assign values to your Global Variables. You can then use these variables in any event that asks you to specify a variable as a parameter (eg: "Actor Loop", "Field Loop", etc.). You can also reference these variables in **[[scripteditor#​use_value_scripting|Use Value]]** scripting by selecting the variable from the "​Global Variables"​ section of the **[[scripteditor#​use_value_scripting|Use Value]]** dialog. The "​Comparison Branch"​ and "​Multi-Comparison Branch"​ events are used to compare an expression to a value(s). You can use these events to create branching paths in your scripts ​depending ​on whether a variable contains a certain value(s).+The "​Variable Operation"​ event is used to assign values to your Global Variables. You can then use these variables in any event that asks you to specify a variable as a parameter (eg: "Actor Loop", "Field Loop", etc.). You can also reference these variables in **[[scripteditor#​use_value_scripting|Use Value]]** scripting by selecting the variable from the "​Global Variables"​ section of the **[[scripteditor#​use_value_scripting|Use Value]]** dialog. The "​Comparison Branch"​ and "​Multi-Comparison Branch"​ events are used to compare an expression to a value(s). You can use these events to create branching paths within ​your scripts ​based on the values they'​re holding.
  
 ---- ----
variables.txt ยท Last modified: 2017/01/19 12:30 by Lee