Script:mul: Difference between revisions

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


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:20, 8 July 2022

The mul script command is used to multiply a number or int script variable with a value for an entity.

Usage

mul <variable> <value*>

Context: Any Entity

Parameters:

ParameterTypeDescription
variable variable Name of the variable to multiply
value number or variable Value to multiply the variable with

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.