Saltar al contenido principal

Math

Evaluate Math Expression

Set a variable to the result of evaluating a math expression.

References
/docs/scripting/math-expressions

Evaluate Math Expression
Variable
$Variable0
Expression
e.g. 5 + (6 * $health)...
  • Variable: The variable to use.
  • Expression: The expression to evaluate.

If Math Expression

Conditionally execute part of the script if the specified math expression evaluates to true.

References
/docs/scripting/math-expressions

If Math Expression
Expression
e.g. $health >= 0...
Verdadero
Add Event
Sino
  • Expression: The expression to evaluate.
  • Verdadero: The script to run if the condition is true.
  • Falso: The script to run if the condition is false.

Variable: Funciones matemáticas

Allows you to perform various maths functions on a variable to add/subtract/multiply/divide/modulus a value/variable/random number.

Variable: Funciones matemáticas
Variable
$Variable0
Operation
Definir como
Valor
Verdadero
  • Variable: The variable to use.
  • Operation: The operation to use for modifying the variable value.
  • Valor: The value to combine with the variable using the selected operation.

Seed Random Number Generator

Place this to run in response to user input to ensure random numbers change between playthroughs.

Seed Random Number Generator
Place this to run in response to user input to ensure random numbers change between playthroughs