Add Choice
Category: Message
Event content that adds a single choice to the selection window. Used to present choices to the player such as "Yes / No" or "Which path to take".
Use in pair with Show Selection Window
This event content alone displays nothing on screen. It merely adds 1 choice internally.
To actually show the selection window on screen, after lining up as many Add Choices as needed, run Show Selection Window.
Typical usage:
- Add Choice (choice 1)
- Add Choice (choice 2)
- Add Choice (choice 3)
- Show Selection Window <- the selection window appears on screen only here
Property List
| Item (tscn label) | Input type | Description |
|---|---|---|
| Text | Text | String displayed as a choice (special notation supported) |
| Event | Selection | Event to transition to when this choice is selected (chosen from events/*.json, empty allowed) |
| Label | Text | Label name within the destination event (if empty, executes from the beginning of the event) |
| Text Help button | - | Open the special notation reference window |
Property Details
Text
The string displayed as a choice on screen.
- Special notation supported: Variable expansion (
{var}), name expansion ({@char.MEM_0}), line break ([LF]), color change, and other special notations are available - Translation target: When localizing in the Translation tab, it is automatically extracted as a translation key
- Added 2026-10-01: Formula reference expansion and smart_number formatting also apply (unified with Show Text)
Examples: Yes, No, Attack, Escape
Event
Specify the event to transition to when this choice is selected.
- Options: automatically enumerated from all
.jsonfilenames indata/settings/events/ - Empty allowed: if no event is specified, continues within the current event (proceeds to the next event content)
Event transition behavior
When Event is specified, after selection, processing equivalent to "Move To Event" is performed. The destination event starts a new flow.
When Event is empty, after selection, processing continues within the current event (typically combined with Conditional Branch to write different processing for each selection result).
Label
Specify the label name within the destination event.
- Empty: executes from the beginning of the destination event
- Value specified: starts execution from the label defined by Set Label within the destination event
Example: Specifying the label shop_arrived means execution starts from Set Label (shop_arrived) within the destination event.
Label is meaningless when Event is empty
When Event is empty, no transition occurs even if Label is specified, so the Label specification is meaningless.
Text Help button
Pressing the button opens the special notation reference window. For details, see Text Special Notation Reference.
Runtime Behavior
When this event content runs, processing happens in the following order:
1. Formula reference expansion (added 2026-10-01)
Formula references within the text (such as USER.STR.MAX) are expanded to actual values. Furthermore, via smart_number processing, numbers with 0 after the decimal point (100.0) are displayed as integers like "100". This is the same processing as Show Text.
2. Addition to the choice list
- Internal choice list (choice_data) gets 1 entry added
- text (post-expansion display text)
- event (destination event key)
- label (destination label)
- Nothing changes on screen
- Automatically proceeds to the next event content (no wait)
When subsequent Show Selection Window runs, all choices added up to that point are displayed on screen as a selection window. Buttons within the selection window are lined up in insertion order, and keyboard focus next/previous is also set automatically.
Maximum number of choices
There is practically no upper limit on the number of choices, but it depends on screen size and selection window size. Too many will not fit on screen, so typically 2-5 is recommended.
Typical Usage Flows
Flow 1: Yes / No 2-choice
- Show Text (number 0) <- "Do you really want to fight?"
- Add Choice (text
Yes, eventbattle_scene) - Add Choice (text
No, event empty) <- continues within the current event - Show Selection Window (the choices appear on screen only here)
- (When "No" is selected, comes here) Show Text <- "Escaped"
Flow 2: 3-choice menu
- Show Window (number 0)
- Show Text (number 0) <- "Which path will you take?"
- Add Choice (text
East Forest, eventeast_forest) - Add Choice (text
West Town, eventwest_town) - Add Choice (text
South Mountain, eventsouth_mountain) - Show Selection Window
Flow 3: Jump to different places in the same event with Label
When there are multiple labels in a composite event main_hall:
- Add Choice (text
Inn, eventmain_hall, labelinn) - Add Choice (text
Weapon Shop, eventmain_hall, labelweapon_shop) - Add Choice (text
Item Shop, eventmain_hall, labelitem_shop) - Show Selection Window
By placing Set Label (inn) / Set Label (weapon_shop) / Set Label (item_shop) within the destination event main_hall, execution starts from the matching label according to the selection.
Flow 4: Combination with Conditional Branch
Leave Event empty and manage selection results with variables:
- Add Choice (text
Attack, event empty) - Add Choice (text
Defend, event empty) - Show Selection Window (selection result is internally stored in a variable)
- Conditional Branch (selection result is 0 = Attack was chosen) <- attack processing
- End If
- Conditional Branch (selection result is 1 = Defend was chosen) <- defend processing
- End If
Flow 5: Dynamic choices using variables
- Add Choice (text
Buy with {gold} G in hand, eventbuy)
Since variable expansion is available in the text, dynamic display is possible.
Typical Combinations
This event content is always used in pair with Show Selection Window. By itself, nothing is displayed on the screen. For the big picture, see Combination Pattern Collection.
Basic 2-choice pattern (Yes/No)
Question -> Add Choice x 2 -> Show Selection Window -> Transition.
- Show Window (number 0)
- Show Text (number 0) <- "Do you really want to fight?"
- Add Choice (this event content) (text
Yes, eventbattle_scene) - Add Choice (this event content) (text
No, event empty) - Show Selection Window <- the choices appear on screen here
- (Transitions according to selection result)
Branching on selection result (empty Event + Conditional Branch)
Leave Event empty and write processing for each selection result within the same event:
- Add Choice (this event content) (text
Attack, event empty) - Add Choice (this event content) (text
Defend, event empty) - Show Selection Window
- Conditional Branch (selection result 0 = Attack) <- attack processing
- Else <- defend processing
- End If
Label jump to different places in the same event
For composite events (such as town facility selection), transition to each label within the same event:
- Add Choice (this event content) (text
Inn, eventmain_hall, labelinn) - Add Choice (this event content) (text
Weapon Shop, eventmain_hall, labelweapon) - Show Selection Window
- (After selection, executes from the matching label within
main_hall)
Choice reset
To temporarily clear already-added choices and use a different choice set, use Reset Choices.
Related Event Contents
| Related event content | Purpose |
|---|---|
| Show Selection Window | Display the added choices on screen (always used in pair) |
| Reset Choices | Clear already-added choices |
| Show Text | Display the question text before the choices |
| Set Label | Define a label within the destination event |
| Move To Event | Event transition without using choices |
| Conditional Branch | Branch processing based on selection result |
Related Pages
| Page | Related content |
|---|---|
| Text Special Notation Reference | Special notations usable within text |
| Event tab | Reference for the Event property |
| Variable tab | For {variable name} expansion within choice text |
| Event Content List | List of all event contents |
Notes
Add Choice alone does not display on screen
This event content only adds to the internal choice list, and nothing changes on screen. Always run Show Selection Window afterward to display the selection window on screen.
Choice order is insertion order
The order of choices displayed on screen follows the order in which this event content was added. To change the order, swap the order of Add Choices.
When Event is empty, handle with Conditional Branch
When Event is empty, after selection processing continues within the current event. In this case, you need to determine which choice was selected with a subsequent Conditional Branch and branch processing accordingly (the selection result is internally stored in a variable).
Resetting choices
When using choices in different scenes within the same event, use Reset Choices to clear the internal list so previous choices don't remain, then line up new Add Choices.
Number of choices depends on screen size
If there are too many choices, the selection window will not fit on screen. Typically 2-5 is recommended.
Text special notation and translation
Choice text can be localized in the Translation tab. For details, see Translation tab.
