set

From Arx Libertatis Wiki
Jump to navigation Jump to search

The set script command is used to set a script variable for an entity.

Usage

set <variable> <value*>

Context: Any Entity

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.

The context entity is ignored when setting global variables.

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