Skip to content

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 5

Example from HREK broken/equipment_slayer.txt.

Supported Versions

VersionSupported
49Yes
73Yes
106Yes
107Yes
107 (MCC)Yes

See also action syntax.