set

From Arx Libertatis Wiki
Revision as of 22:51, 17 April 2020 by Ds (talk | contribs) (Created page with "{{ScriptCommandPage |description=set a script variable |parameters= variable variable Name of the variable to set value value* Value to set the variable t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The set script command is used to set a script variable.

Usage

set <variable> <value*>

Context: Ignored

Parameters:

ParameterTypeDescription
variable variable Name of the variable to set
value value or variable Value to set the variable to

The first character of the variable name determines the variable type. System variables (those starting with ^) cannot be set.

For int and number variables, string variables passed to <value> are not automatically dereferenced.