Skip to content

Numbers, arithmetic, and units

Use Set Variable → Operations → Number for arithmetic. Configure a Number result Variable and Number operands; there are no separate special arithmetic hotbar buttons.

Operation Inputs Result
Add Numbers (+) 2, 3 5
Subtract Numbers (-) 2, 3 -1
Multiply Numbers (×) 2, 3 6
Divide Numbers (÷) 6, 3 2
Set to Remainder (%) 7, 3 1
Set to Exponential 2, 3 8

Assign the Result to the same Variable as an operand when updating a counter. All inputs are evaluated with the operation’s normal typed rules. A division-by-zero or non-finite result fails before the destination is assigned.

Minimum/Maximum choose one of two values. Clamp restricts a value to minimum/maximum. Wrap places a value within an interval. Round has a multiple and rounding-mode tag; choose Nearest, Floor, or Ceiling as offered. Root/log operations require valid mathematical domains.

Integral fields floor before bounds checks. A count input of 2.9 becomes 2, while -0.1 becomes -1 and may then fail a nonnegative bound. This does not modify the original Number Variable.

Sine/Cosine/Tangent and Atan2 expose angle-unit tags. Degrees are the default where shown; select Radians explicitly when supplying radians. Do not assume a trigonometric result is an angle: sine/cosine produce ratios, whereas Atan2 produces an angle in the selected unit.

For spatial calculations, vectors and locations distinguish direction from position. Linear Interpolation uses the labelled Time (%) input rather than an unlabeled assumed fraction.

Random Number takes inclusive minimum/maximum inputs and its available tags. Normally Distributed Random Number uses mean/standard deviation. These are game randomness tools, not secure tokens.

Bitwise Operation offers AND, OR, XOR, NOT, Left Shift, and Right Shift. Use the configured integer/bitwise semantics rather than treating those as Boolean expression operators. They remain visual operations; ${...} does not accept bitwise syntax.

Use ${private.score + 1} in a Number input for a compact calculation, or an Add operation when its individual slots make the logic clearer. They still require declared Number bindings and finite results. See expressions and operation inputs.