Applies a value to a global variable.
You can use a variable to define this variable or use the argument system using <arg=value>
Arg | Values | Type | Required |
---|---|---|---|
var | Variable name | Var | Yes |
value | Value | Object | Yes |
setValueGlobalVar { value = <number = 1> / var = {var1} }
Remove the variable from memory
Arg | Values | Type | Required |
---|---|---|---|
var | Variable name | Var | Yes |
removeGlobalVar { var = {var1} }
It works whether you already have or do not have a previously declared variable. You simply place the variable in which the value will be saved.
You can use a variable to define this variable or use the argument system using <arg=value>
Arg | Values | Type | Required |
---|---|---|---|
var | Variable name | Var | Yes |
value | Value | Object | Yes |
setValueLocalVar { var = $item_slot$ / value = <number = 19>}
Refresh the variable. When should it be used? Imagine that you use the java method or any other function that modifies the variable object using java, then since it is another environment, the variable would only be modified in the other environment, so for the changes to be applied we must refresh the variable.
Arg | Values | Type | Required |
---|---|---|---|
var | Variable name | Var | Yes |
RefreshLocalVar{var = $varToRefresh$}