set
Description
Modifies a variable using a math operation (set_to, add, subtract, multiply, divide, modulo, or =). The target can be a custom variable, member variable, or built-in global.
Parameters
<var_a> <math_operation> <var_b>
<name>— required operand{a|b|c}— choose one alternative[ … ]— optional clause
Example
megalo
action set temp modulo 5Example from HREK broken/equipment_slayer.txt.
Supported Versions
| Version | Supported |
|---|---|
| 49 | Yes |
| 73 | Yes |
| 106 | Yes |
| 107 | Yes |
| 107 (MCC) | Yes |
See also action syntax.