Skip to main content

Control Flow

Actions

Call Script

Call one of your custom scripts. Once you have chosen a script you will be able to hook up any parameters required.
Call Script
Script
My Custom Script
  • Script: The script to run.

Control Flow

If

Conditionally run part of the script if the specified value evaluates to true.
If
Condition
$Variable0
==
True
True
Add Event

If True

Conditionally run part of the script if the specified variable is set to true.
If Variable Is 'True'
Condition
$Variable0
True
Add Event

If False

Conditionally run part of the script if the specified variable is set to false.
If Variable Is 'False'
Condition
$Variable0
True
Add Event

If Variable Compare With Value

Conditionally run part of the script based on the value of a variable compared with a value.
If Variable Compare With Value
Condition
$Variable0
==
0
True
Add Event

If Variable Compare With Variable

Conditionally run part of the script based on the value of a variable compared with another variable.
If Variable Compare With Variable
Condition
$Variable0
==
$Variable0
True
Add Event

Loop While

Run part of the script in a loop while an expression is true.
Loop While
Condition
$Variable0
<
0
Add Event

Label: Define

Define a new label to jump to.
Label: Define
Label

Label: Goto

Jump to the selected label inside the script.
Label: Goto
Label

Loop

Run part of the script in a loop forever. Remember to break out of the loop otherwise the player will become stuck at this point. You can use a Stop Script or Change Scene event to stop the loop.
Loop
Add Event

Loop For

Run part of the script in a loop while a counter variable is within a specified range. On each loop the counter variable is modified before the next check.
Loop For
For
$Variable0
From
0
Comparison
<=
To
0
Operation
+=
Value
0
Add Event
  • For: The variable to use.
  • From: The initial value of the counter variable.
  • Comparison: The comparison operator to use e.g. 'Less Than' or 'Greater Than'.
  • To: The end value of the counter variable.
  • Operation: The operation to use for combining a value with the counter variable after each loop.
  • Value: The value to combine with the counter variable after each loop.

Stop Script

Stops the current script from running.
Stop Script
Stops the execution of current script at this point.

Switch

Conditionally run from multiple options depending on the value of the specified variable. First choose how many options you want to compare the variable against, then set the values to compare and what scripts to execute when the value is matched.
Switch
Variable
$Variable0
Number of options
2
When: 1
Value
1
Add Event
When: 2
Add Event
  • Variable: The variable to use.
  • Number of options: The number of options required.

Variables

If Variable Has Flag

Conditionally run part of the script if the specified variable has the chosen flag set as true.
If Variable Has Flag
Variable
$Variable0
Flag
Flag 1
True
Add Event
  • Variable: The variable to use.
  • Flag: The flag to check.

If Value In Range

Conditionally run part of the script if the given value is on the given range.
If Value In Range
Value
0
Min
0
Max
0
True
Add Event
  • Value: The value to check.
  • Min: The minimum value (inclusive).
  • Max: The maximum value (inclusive).

If Variable Has ALL of these Flags

Conditionally run part of the script if the specified variable has all of the chosen flags set as true.
If Variable Has ALL of these Flags
Variable
$Variable0
Flag 1
Flag 2
Flag 3
Flag 4
Flag 5
Flag 6
Flag 7
Flag 8
Flag 9
Flag 10
Flag 11
Flag 12
Flag 13
Flag 14
Flag 15
Flag 16
True
Add Event
  • Variable: The variable to use.

If Variable Has ANY of these Flags

Conditionally run part of the script if the specified variable has any of the chosen flags set as true.
If Variable Has ANY of these Flags
Variable
$Variable0
Flag 1
Flag 2
Flag 3
Flag 4
Flag 5
Flag 6
Flag 7
Flag 8
Flag 9
Flag 10
Flag 11
Flag 12
Flag 13
Flag 14
Flag 15
Flag 16
True
Add Event
  • Variable: The variable to use.