Script:++: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 9: Line 9:


The context entity is ignored when modifying global variables. System variables (those starting with ^) cannot be modified and {{string}} variables cannot be used in arithmetic.
The context entity is ignored when modifying global variables. System variables (those starting with ^) cannot be modified and {{string}} variables cannot be used in arithmetic.
[[Category:Script commands changing variables]]

Latest revision as of 21:19, 8 July 2022

⚠️
In Arx Libertatis 1.1, ++ cannot be used with int variables, use inc <variable> 1 instead. This is fixed in Arx Libertatis 1.2.

The ++ script command is used to increment a number or int script variable for an entity. It is equivalent to inc <variable> 1.

Usage

++ <variable>

Context: Any Entity

Parameters:

ParameterTypeDescription
variable variable Name of the variable to increment

The context entity is ignored when modifying global variables. System variables (those starting with ^) cannot be modified and string variables cannot be used in arithmetic.