Skip to content

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:

UseDetermineEventLabel
Unconditional jumpEmptyAnyAny
Conditional jumpFormulaAnyAny
Label jump within the same eventAnyEmptyLabel name

Property List ​

Item (tscn label)Input FormDescription
Determine (Determine)FormulaFormula that determines whether to transition (always transitions if empty)
Event (Event)ChoiceDestination event (jumps within the same event if left blank)
Label (Label)TextLabel 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 variable flag_1 is 1
  • MEM_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 .json file names in the data/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 with Formula.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)

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:

  1. Show Text (Show Text) ← "Let's go over there"
  2. 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:

  1. Show Text (Show Text) ← "Beyond this point..."
  2. Move to Event (this event content) (Determine {flag_boss} == 1, Event boss_defeated, Label empty)
  3. 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:

  1. Set Label (Set Label) (loop_start)
  2. Show Text (Show Text) ← loop processing
  3. Assign Variable (Assign Variable) ← variable update
  4. Move to Event (this event content) (Determine {count} < 10, Event empty, Label loop_start) ← if condition met, returns to the start of the loop

Flow 4: Conditional branch (if-else style) ​

  1. Move to Event (this event content) (Determine MEM_0.LEVEL.NOW >= 10, Event empty, Label high_level) ← to high_level label if level 10 or higher
  2. Show Text (Show Text) ← "You need more training" (if below level 10)
  3. 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
  4. Set Label (Set Label) (high_level)
  5. Show Text (Show Text) ← "You've grown well"
  6. Set Label (Set Label) (end)
  7. (subsequent processing)

Flow 5: Multi-way branching by multiple conditions ​

Go to another event depending on gold held:

  1. Move to Event (this event content) (Determine {gold} >= 10000, Event rich_shop)
  2. Move to Event (this event content) (Determine {gold} >= 1000, Event middle_shop)
  3. 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:

  1. Add Choice (Add Choice) (text "Yes", Event empty, Label yes)
  2. Add Choice (Add Choice) (text "No", Event empty, Label no)
  3. Show Selection Window (Show Selection Window)
  4. Set Label (Set Label) (yes)
  5. (Yes processing)
  6. Move to Event (this event content) (Event empty, Label end) ← skip "No" processing
  7. Set Label (Set Label) (no)
  8. (No processing)
  9. Set Label (Set Label) (end)

Flow 7: Transition to game over screen ​

Move to a dedicated event when HP reaches 0:

  1. Show Text (Show Text) ← "Ugh...!"
  2. Move to Event (this event content) (Determine MEM_0.HP.NOW <= 0, Event game_over)
  3. 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:

  1. Move to Event (this event content) (Determine condition, Label true_branch)
  2. (processing when false)
  3. Move to Event (this event content) (Label end) ← unconditionally to end
  4. Set Label (Set Label) (true_branch) ← processing when true
  5. Set Label (Set Label) (end) ← convergence point

Loop (while style) ​

Repeat with a counter variable:

  1. Set Label (Set Label) (loop_start)
  2. (loop body processing)
  3. Assign Variable (Assign Variable) (count+1)
  4. Move to Event (this event content) (Determine {count} < 10, Label loop_start)

Choice receiver ​

Processing after a jump by Add Choice/Add Button:

  1. Add Choice (Add Choice) × N (Label specified for each choice)
  2. Show Selection Window (Show Selection Window)
  3. Set Label (Set Label) (each label)
  4. (processing after each label)
  5. 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:

  1. (demo scene body)
  2. 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:

  1. (condition check)
  2. Move to Event (this event content) (Event empty, Label event_end) ← jumps to the label at the end
  3. (processing to be skipped)
  4. Set Label (Set Label) (event_end)
  5. (ends the event doing nothing)
Related Event ContentPurpose
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)
PageRelated Content
Formula ReferenceFormula notation used in the Determine property
Variable TabDefinition of variables used for conditional checks
Event TabReference for the Event property
Event Content ListList 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).