dec

From Arx Libertatis Wiki
Revision as of 18:31, 2 June 2022 by Ds (talk | contribs)
Jump to navigation Jump to search

The dec script command is used to subtract a value from a number or int script variable for an entity.

Usage

dec <variable> <value*>

Context: Any Entity

Parameters:

ParameterTypeDescription
variable variable Name of the variable to subtract from
value number or variable Value to subtract from the variable

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.