Skip to content

Set Label ​

Category: Flow

An Event Content that places a "label" marker in the Event Content list. It is used as a destination when jumping to a specific position within an event via Move to Event, Add Choice, or Add Button.

This Event Content does nothing at runtime

Executing this Event Content causes no change to the screen or game state. Execution proceeds immediately to the next Event Content.

Its actual role is as a "pin (marker) indicating a position in the Event Content list". It is used by other Event Contents to find this label and jump to the corresponding position.

Property List ​

Item (tscn label)Input formatDescription
LabelTextThe name of this label (identifier referenced by other Event Contents as a transition destination)

Property Details ​

Label ​

Freely specify the name of this label as text. When another Event Content transitions via label specification, labels matching the name entered here are searched.

  • Case-sensitive: shop and Shop are treated as different labels
  • Spaces and symbols are allowed: However, we recommend manageable naming
  • Alphanumeric characters + underscores recommended: Formats like shop_start, boss_defeated, loop_end

Recommended label naming

  • Short English words indicating purpose + underscore separator: shop_entry, game_over, tutorial_end
  • Loop head: loop_start
  • Branch merge point: branch_end / end
  • Dedicated event entry: boss_fight, treasure_room

Runtime Behavior ​

This Event Content is very simple:

1. Does nothing ​

At runtime, neither the screen nor game state changes; execution proceeds immediately to the next Event Content.

2. Functions as transition destination from other Event Contents ​

When you specify a label name in the Label property of Move to Event, Add Choice, or Add Button, this Event Content is searched from the top of the Event Content list in order, and execution begins from the line immediately after the matching label.

3. Label search rules ​

  • First label found: Execution starts from the immediately following line
  • Not found: Jumps to the end of the event (*** WARNING : <label name> : Label was not found. log output)
  • When the same label name appears multiple times: The one closer to the top of the Event Content list is prioritized (the 2nd and later are effectively ignored)

Typical Usage Flows ​

Flow 1: Merge point for conditional branches ​

Merge point for if-else-like processing:

  1. Move to Event (Determine {flag} == 1, Event empty, Label true_branch)
  2. (Processing when false)
  3. Move to Event (Event empty, Label end) ← Unconditionally jump to end to skip true_branch
  4. Set Label (this Event Content) (Label true_branch)
  5. (Processing when true)
  6. Set Label (this Event Content) (Label end) ← Branch merge point
  7. (Subsequent common processing)

Flow 2: Loop head ​

Head marker for repeat processing:

  1. Set Label (this Event Content) (Label loop_start)
  2. (Processing in the loop)
  3. Assign Variable (count+1)
  4. Move to Event (Determine {count} < 10, Label loop_start) ← Return to loop head if condition is met

Flow 3: Branch destinations for choices ​

Define labels corresponding to each choice with Add Choice:

  1. Add Choice (text "Inn", Event empty, Label inn)
  2. Add Choice (text "Weapon Shop", Event empty, Label weapon)
  3. Add Choice (text "Item Shop", Event empty, Label item)
  4. Show Selection Window
  5. Set Label (this Event Content) (Label inn)
  6. (Inn processing)
  7. Move to Event (Label end)
  8. Set Label (this Event Content) (Label weapon)
  9. (Weapon shop processing)
  10. Move to Event (Label end)
  11. Set Label (this Event Content) (Label item)
  12. (Item shop processing)
  13. Set Label (this Event Content) (Label end)

Flow 4: Entry to external event (intermediate point of another event) ​

Jump into the middle of this event from another event:

  1. (Event head)
  2. Show Text ← "This event begins here"
  3. Set Label (this Event Content) (Label shop_entry)
  4. Show Text ← "Shop processing starts here"

When transitioning from another event with Move to Event (Event same event name, Label shop_entry), step 2 is skipped and execution starts from step 4.

Flow 5: Branch destinations for multiple buttons ​

Label transitions for Add Button:

  1. Add Button (text "Attack", Event empty, Label attack)
  2. Add Button (text "Defend", Event empty, Label defend)
  3. Show Buttons
  4. Set Label (this Event Content) (Label attack)
  5. (Attack processing)
  6. Move to Event (Label end)
  7. Set Label (this Event Content) (Label defend)
  8. (Defend processing)
  9. Set Label (this Event Content) (Label end)

Flow 6: Early termination jump ​

Skip processing and jump to event end when condition is met:

  1. Move to Event (Determine {quest_done} == 1, Label end)
  2. (Processing when quest incomplete)
  3. Set Label (this Event Content) (Label end)
  4. (Common end processing)

Typical Combinations ​

For the overall picture, see Combination Patterns Collection.

Branch + merge pattern ​

Branch via Move to Event, merge via this Event Content:

  1. Move to Event (condition, Label A)
  2. (B processing)
  3. Move to Event (Label end)
  4. Set Label (this Event Content) (Label A)
  5. (A processing)
  6. Set Label (this Event Content) (Label end)

Loop pattern ​

While-like with this Event Content and Move to Event:

  1. Set Label (this Event Content) (Label loop_start)
  2. (In-loop processing)
  3. Move to Event (condition, Label loop_start)

Branching from choices ​

Place this Event Content per result selected via Add Choice / Add Button:

  1. Add Choice × N (each with Label specified)
  2. Show Selection Window
  3. Set Label (this Event Content) (Label 1), processing, jump to end
  4. Set Label (this Event Content) (Label 2), processing, jump to end
  5. Set Label (this Event Content) (end) ← All branches merge

Entry from another event ​

Enter the same event at a different location from outside:

  • Place Set Label (this Event Content) (Label later_half) near the end of Event A
  • From Event B, use Move to Event (Event Event A, Label later_half) to start execution from the latter half
Related Event ContentPurpose
Move to EventThe main one that references this Event Content as a transition destination
Add ChoiceReferences this Event Content as a transition destination based on selection result
Add ButtonReferences this Event Content as a transition destination on button click
Return to Last EventReturns to the original event (does not use this Event Content)
PageRelated Content
Event Content ListList of all Event Contents

Notes ​

Does nothing at runtime ​

Executing this Event Content does not change the game state. Execution proceeds immediately to the next Event Content. It is a "static marker" used as a jump destination by other Event Contents.

Avoid defining the same label name multiple times ​

If you define the same label name multiple times within the same event, only the one closer to the top of the Event Content list is used. The 2nd and later are effectively ignored, so you may not get the intended behavior. Make label names unique.

Case-sensitive ​

Label names are judged by exact match. shop_entry and Shop_Entry are treated as different, so when specifying labels in Move to Event, etc., match the spelling (including case).

Blank labels are effectively invalid ​

You can save with Label blank, but you cannot specify a blank label from other Event Contents (since specifying blank Label in Move to Event means "event head"). Set Label with blank Label is effectively non-functional.

Can be placed anywhere in the event ​

This Event Content can be placed anywhere in the event. At the head, in the middle, or at the end, it functions as a jump destination.

Labels in other events can also be referenced ​

By combining Event + Label in Move to Event, you can also transition to a specific label point in another event. This Event Content functions as a transition destination regardless of which event it is placed in, as long as the containing event is being executed.

Naming recommendations ​

Users need to self-manage naming rules. Here are recommended namings:

  • Short English words indicating purpose + underscore separator (shop_entry, game_over)
  • Loop head (loop_start), branch merge point (end or branch_end)
  • Event entry (boss_fight, treasure_room)