Move to Event
Category: Flow Control (Flow)
An event content that moves to another event, or jumps to another label point within the same event. It is the central feature for game flow control, including conditional branches, moving to recollection scenes / endings / game over, and repeated processing within the same event.
An all-purpose event content serving three roles
This event content serves three uses in one:
| Use | Determine | Event | Label |
|---|---|---|---|
| Unconditional jump | Empty | Any | Any |
| Conditional jump | Formula | Any | Any |
| Label jump within the same event | Any | Empty | Label name |
Property List
| Item (tscn label) | Input Form | Description |
|---|---|---|
| Determine (Determine) | Formula | Formula that determines whether to transition (always transitions if empty) |
| Event (Event) | Choice | Destination event (jumps within the same event if left blank) |
| Label (Label) | Text | Label name inside the destination event (executes from the top if empty) |
Property Details
Determine (Determine)
Specifies the condition for whether to transition as a Formula.
- Empty: Always transitions (unconditional jump)
- Formula specified: Transitions if the calculation result is true (non-zero), proceeds to the next event content without transitioning if false (0)
Implementing conditional branches
Using Determine allows you to realize branches such as if (condition) → to another event, else → proceed as is. You can use variable expansion ({var_1}) and references (such as USER.STR.MAX) in Formulas.
Examples:
{flag_1} == 1→ transitions only when flag variableflag_1is 1MEM_0.LEVEL.NOW >= 10→ transitions only when the level of the 1st party member is 10 or higher{gold} >= 1000→ transitions only when gold held is 1000 or more
See Formula Reference for detailed Formula notation.
Event (Event)
Specifies the destination event.
- Choices: automatically enumerated from all
.jsonfile names in thedata/settings/events/directory - Empty selection: Jumps within the current event (Label specification is required and meaningful)
- Specified: Switches to the specified event
Label (Label)
Specifies the label name inside the destination event.
- Empty: Executes from the top of the destination event
- Label name specified: Starts execution from the line just after the label defined by Set Label (Set Label) inside the destination event
Specifying a label that cannot be found
If the specified label name does not exist in the destination event, processing jumps to the end of the event and executes from there (effectively close to ending that event). A developer-oriented warning (*** WARNING : <label name> : Label was not found.) is output to the log.
Runtime Behavior
When this event content is executed, processing is performed in the following order:
1. Evaluating Determine (condition)
- Determine empty: Always transitions (proceeds to the next step)
- Determine is a Formula: Expands variables / references with
Formula.replace_all()→ evaluates as bool withFormula.calc_bool()- Result is true: Transition executes (proceeds to the next step)
- Result is false: Proceeds to the next event content without transitioning (this event content is effectively skipped)
2. Destination event switch check
- Event is empty or the same as the current event: No event switch (Label jump within the same event)
- Event specifies a different event: Event switch
- Clears the accumulated buffer of choices (
select_group.reset()) - Clears the accumulated buffer of buttons (
button_group.reset()) - Loads the new event's data (
event_contents)
- Clears the accumulated buffer of choices (
Clearing accumulated buffers (2026-10-01)
When switching to another event, if internal data added by Add Choice (Add Choice) or Add Button (Add Button) remains, unexpected choices may appear in the new event. To prevent this, these are automatically cleared when switching to another event.
They are not cleared in the case of label jumps within the same event (buffer is retained).
3. Determining the label position
- Label empty: Executes from the top line (line_key=0) of the destination event
- Label specified: Searches for the matching label in order within the destination event, executes from the line just after it if found
- Label not found: Jumps to the end line of the event, outputs
*** WARNING : <label name> : Label was not found.to the log
4. Executing the next event content
_event_process() is called from the destination line and executes sequentially.
Typical Usage Flows
Flow 1: Unconditionally transition to another event
Always move from a certain scene to another event:
- Show Text (Show Text) ← "Let's go over there"
- Move to Event (this event content) (Determine empty, Event
next_scene, Label empty)
Flow 2: Conditional branch (flag)
Go to another event if a flag is set, otherwise proceed to the next:
- Show Text (Show Text) ← "Beyond this point..."
- Move to Event (this event content) (Determine
{flag_boss} == 1, Eventboss_defeated, Label empty) - Show Text (Show Text) ← "The boss hasn't been defeated yet" (displayed if the flag is not set)
Flow 3: Label jump within the same event (repetition)
Implementing loop-like processing:
- Set Label (Set Label) (
loop_start) - Show Text (Show Text) ← loop processing
- Assign Variable (Assign Variable) ← variable update
- Move to Event (this event content) (Determine
{count} < 10, Event empty, Labelloop_start) ← if condition met, returns to the start of the loop
Flow 4: Conditional branch (if-else style)
- Move to Event (this event content) (Determine
MEM_0.LEVEL.NOW >= 10, Event empty, Labelhigh_level) ← to high_level label if level 10 or higher - Show Text (Show Text) ← "You need more training" (if below level 10)
- Move to Event (this event content) (Determine empty, Event empty, Label
end) ← after low-level processing, jumps to end label to skip high_level processing - Set Label (Set Label) (
high_level) - Show Text (Show Text) ← "You've grown well"
- Set Label (Set Label) (
end) - (subsequent processing)
Flow 5: Multi-way branching by multiple conditions
Go to another event depending on gold held:
- Move to Event (this event content) (Determine
{gold} >= 10000, Eventrich_shop) - Move to Event (this event content) (Determine
{gold} >= 1000, Eventmiddle_shop) - Move to Event (this event content) (Determine empty, Event
poor_shop) ← unconditional transition if neither of the above hits
Flow 6: Choice receiver (branch by Add Choice, Event empty + Label for post-arrival processing)
Pattern of jumping to each label within the same event after selection with Add Choice:
- Add Choice (Add Choice) (text "Yes", Event empty, Label
yes) - Add Choice (Add Choice) (text "No", Event empty, Label
no) - Show Selection Window (Show Selection Window)
- Set Label (Set Label) (
yes) - (Yes processing)
- Move to Event (this event content) (Event empty, Label
end) ← skip "No" processing - Set Label (Set Label) (
no) - (No processing)
- Set Label (Set Label) (
end)
Flow 7: Transition to game over screen
Move to a dedicated event when HP reaches 0:
- Show Text (Show Text) ← "Ugh...!"
- Move to Event (this event content) (Determine
MEM_0.HP.NOW <= 0, Eventgame_over) - Show Text (Show Text) ← "...I can still fight" (if HP remains)
Typical Combinations
See Combination Pattern Collection for the overall picture.
Conditional branch (if-else style)
Condition check with Determine, jump with Event empty + Label:
- Move to Event (this event content) (Determine condition, Label
true_branch) - (processing when false)
- Move to Event (this event content) (Label
end) ← unconditionally to end - Set Label (Set Label) (
true_branch) ← processing when true - Set Label (Set Label) (
end) ← convergence point
Loop (while style)
Repeat with a counter variable:
- Set Label (Set Label) (
loop_start) - (loop body processing)
- Assign Variable (Assign Variable) (count+1)
- Move to Event (this event content) (Determine
{count} < 10, Labelloop_start)
Choice receiver
Processing after a jump by Add Choice/Add Button:
- Add Choice (Add Choice) × N (Label specified for each choice)
- Show Selection Window (Show Selection Window)
- Set Label (Set Label) (each label)
- (processing after each label)
- Move to Event (this event content) (Label
end) at the end of each processing block to go to the convergence point
Infinite loop (ending demo playback)
For continuous playback on the title screen:
- (demo scene body)
- Move to Event (this event content) (Event same as current, Label empty) ← returns to the top of the event
Event termination processing
When you want to terminate early within the same event:
- (condition check)
- Move to Event (this event content) (Event empty, Label
event_end) ← jumps to the label at the end - (processing to be skipped)
- Set Label (Set Label) (
event_end) - (ends the event doing nothing)
Related Event Contents
| Related Event Content | Purpose |
|---|---|
| Set Label (Set Label) | Defines the label that is the destination of this event content |
| Return to Last Event (Return to Last Event) | Returns to the original event |
| Add Choice (Add Choice) | Event / Label transition based on selection result (internally uses the same processing as this event content) |
| Add Button (Add Button) | Event / Label transition on button click (same as above) |
| Change Map (Change Map) | Transition accompanied by map change (this event content only switches events) |
Related Pages
| Page | Related Content |
|---|---|
| Formula Reference | Formula notation used in the Determine property |
| Variable Tab | Definition of variables used for conditional checks |
| Event Tab | Reference for the Event property |
| Event Content List | List of all event contents |
Notes
Three transition patterns
The behavior of this event content changes depending on the combination of Event / Label:
- Event specified + Label empty: From the top of another event
- Event specified + Label present: From the specified label of another event
- Event empty + Label empty: From the top of the current event (loop)
- Event empty + Label present: Jump to the specified label of the same event
Determine is a Formula
The Determine property is written as a Formula. Variable expansion ({var_1}) and references (such as USER.STR.MAX) can be used. If the result is true (non-zero), transition occurs; if false (0), no transition occurs and processing proceeds to the next event content.
Choice/button buffers are cleared when switching to another event (2026-10-01)
When Event specifies a different event, internal data accumulated by Add Choice (Add Choice) / Add Button (Add Button) is automatically cleared. It is not cleared in the case of label jumps within the same event.
Specifying a label that cannot be found jumps to the end
If the specified Label name does not exist in the destination event, processing jumps to the end line of the event (effectively close to ending that event). The developer-oriented log output (*** WARNING : ... Label was not found.) allows you to track the cause, but it results in unintended behavior in terms of game progression, so be careful of typos in label names.
Event empty and Label empty results in a loop
If both Event and Label are empty, processing returns to the top (line_key=0) of the current event. If this is not an intended loop, it can become an infinite loop, so take care.
Same internal processing as Add Choice / Add Button transitions
The Event / Label properties of Add Choice (Add Choice) and Add Button (Add Button) also use the same internal processing as this event content. Automatic transitions linked to selection/clicking inherit the transition feature of this event content.
Map switching is a different event content
This event content only switches events / jumps labels. To switch the map (world), use Change Map (Change Map).
