Script:div: Difference between revisions
Jump to navigation
Jump to search
No 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:19, 8 July 2022
The div
script command is used to divide a number
or int
script variable by a value for an entity.
Usage
div <variable> <value*>
Context: Any Entity
Parameters:
Parameter | Type | Description |
---|---|---|
variable |
variable |
Name of the variable to divide |
value |
number or variable |
Value to divide the variable by |
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.