Show Text Input
Category: Flow
An event content that displays a classic RPG-style text input dialog and lets the player enter a string. The entered string is saved to a specified variable and can be used in later events. Use it for scenes where the player enters free text such as character names, party names, or user answers.
Difference in role from Show Number Input
| Item | Show Text Input (this event content) | Show Number Input |
|---|---|---|
| Input type | String | Integer |
| Input range | Max Length (number of characters) | Min/Max Value |
| Input method | Three charsets: Hiragana / Katakana / ASCII | Calculator style (digits 0-9) |
| Use case | Name entry, password, free text | Purchase quantity, difficulty, age, etc. |
Define the save variable in advance
The variable that stores the input value must be defined in advance in the Variable tab of the editor.
Property List
| Item (tscn label) | Input form | Description |
|---|---|---|
| Title | Text | The title shown at the top of the dialog |
| Save Variable | Selection | The variable to save the input value to (defined in the Variable tab) |
| Default Value | Text | The initial string when the dialog is shown |
| Max Length | Number (>= 1) | Maximum number of characters that can be entered (default: 8) |
| Charset Hiragana | Checkbox | Enable Hiragana input (default: ON) |
| Charset Katakana | Checkbox | Enable Katakana input (default: OFF) |
| Charset Ascii | Checkbox | Enable half-width alphanumeric/symbol input (default: OFF) |
| Cancel Enabled | Checkbox | Enable the cancel button (default: ON) |
| Cancel Value | Text | The string saved to the variable when canceled |
Details of Each Property
Title
Specifies the title string displayed at the top of the dialog.
- If blank, an empty title is displayed
- Translation support: If multiple languages are configured via the Translation tab, this property's text is also treated as a translation key
Examples: Please enter your name, Party Name, Password
Save Variable
Specifies the variable in which to save the entered string (or Cancel Value on cancel).
- Dropdown: Choose from the IDs of all variables created in the Variable tab
- The variable must be defined in advance in the Variable tab
Realtime update across tabs (2026-09-09)
Adding or deleting a variable in the Variable tab is immediately reflected in the dropdown.
Deleted variables are shown as a warning
If a previously set variable is deleted, it is shown in the dropdown with an Error icon. If you run the runtime in this state, a *** WARNING : Show Text Input: save_variable '<variable name>' does not exist in Global.save_data.variable log is emitted, the input value is not saved, and the dialog still opens (designed not to be treated as a hard error).
Default Value
Specifies the string shown when the dialog opens.
- May be blank (start with nothing entered)
- If longer than Max Length, it is automatically truncated
- If the player presses OK without changing it, this default value is saved
Examples: Taro (placeholder for a character name), blank (start from a blank state)
Max Length
Specifies the upper limit on the number of characters that can be entered.
- Default: 8
- Minimum: 1 (if 0 or less is specified, it is automatically corrected to 1)
- During input, additional characters are not accepted once the maximum is reached
Hiragana / Katakana / Alphanumeric (Charsets)
Selects which character sets can be used for input. The three checkboxes can be toggled ON/OFF independently.
- Hiragana: aiueo etc. (default ON)
- Katakana: aiueo etc. (default OFF)
- Alphanumeric/Symbols: a-z, A-Z, 0-9, symbols (default OFF)
Switch between charsets with tabs
If multiple charsets are ON, tabs appear on the dialog so the player can switch charsets for input. If only one is ON, no tabs are shown.
All OFF forces Hiragana ON automatically
If all three are OFF, the runtime forces Hiragana ON automatically (a developer-facing WARNING log is emitted).
Direct keyboard input with the ASCII charset
Only when Alphanumeric (ASCII) is ON, the player can type A-Z etc. directly from the keyboard (Shift toggles uppercase). Hiragana and Katakana can only be input via the on-dialog buttons.
Cancel Enabled
Specifies whether to enable the cancel button.
- ON (default): Cancel button is shown, and ESC also cancels
- OFF: Cancel button is disabled, ESC has no effect either (the player must confirm with OK)
Turning it OFF creates a "forced input mode". Use it in scenes where some input is always required, such as character name entry.
Cancel Value
Specifies the string assigned to the save variable when the player cancels.
- May be blank (the variable becomes an empty string on cancel)
- If Cancel Enabled is OFF, this property has no meaning
Typical pattern for cancel detection
If you set a specific string in Cancel Value, you can determine "whether canceled" in a subsequent Conditional Branch:
{input variable} == "CANCELED"-> Canceled{input variable} != "CANCELED"-> Confirmed with OK
However, string comparison in a Formula is currently primarily designed for numeric calculation, so it is more reliable to implement cancel detection by combining Assign Variable with a Conditional Branch.
Runtime Behavior
When this event content is executed, the following processing is performed:
1. Pause all HUD processing
As with Show Number Input, screen effects, images, text, choices, buttons, and function buttons are paused.
2. Validate and correct input conditions
- If the save variable is empty: a
*** WARNING : save_variable is unspecifiedlog is emitted (the dialog still opens) - If the save variable does not exist in the variable data: a WARNING log is emitted (the dialog still opens)
- If all charsets are OFF: Hiragana is automatically turned ON, and a WARNING log is emitted
- If Max Length is less than 1: automatically corrected to 1
- If Default Value exceeds Max Length: truncated
3. Show the dialog
A classic RPG-style text input dialog is displayed (a 6-row x 15-column grid, three blocks side by side).
- Title display (translation-aware)
- Current value display area (large label)
- Character buttons
- Charset tabs (only when multiple are selected)
- Delete button
- OK button
- Cancel button (only when Cancel Enabled is ON)
4. Input methods
The player can input using the following methods:
- Mouse: Click each button
- Arrow keys: Move focus between buttons and press Enter to confirm
- Keyboard (only when Alphanumeric charset is ON): Direct A-Z input, Shift for uppercase
5. Behavior on OK
Pressing the OK button (or Enter key):
- If the save variable is valid, saves the current input value
- Plays the decision sound (
sound_decide) - Closes the dialog
- Resumes all HUD processing
- Proceeds to the next event content
6. Behavior on Cancel
Pressing the Cancel button (or ESC key, only when Cancel Enabled is ON):
- If the save variable is valid, saves the Cancel Value
- Plays the cancel sound (
sound_cancel) - Closes the dialog
- Resumes all HUD processing
- Proceeds to the next event content
7. When Cancel is disabled
If Cancel Enabled is OFF, the Cancel button is disabled and the ESC key has no effect. The player must press OK.
Typical Usage Flows
Flow 1: Character name entry
Let the player enter the hero's name at game start:
- Show Text <- "Please decide the hero's name"
- Show Text Input (this event content)
- Title: Enter name
- Save Variable:
hero_name - Default Value: Taro
- Max Length: 6
- Hiragana: ON, Katakana: ON, Alphanumeric: OFF
- Cancel Enabled: OFF <- always force input
- Show Text <- "Nice to meet you, {hero_name}!"
Flow 2: Party name entry
Change the party name mid-game:
- Show Text Input (this event content)
- Title: Party name
- Save Variable:
party_name - Default Value: current value of
{party_name}(but specified as a literal string in the editor) - Max Length: 10
- Hiragana: ON, Katakana: ON, Alphanumeric: ON
- Cancel Enabled: ON
Flow 3: Password entry
Password for a hidden dungeon:
- Show Text <- "Please enter the password"
- Show Text Input (this event content)
- Title: Password
- Save Variable:
password_input - Default Value: empty
- Max Length: 8
- Hiragana: OFF, Katakana: OFF, Alphanumeric: ON <- ASCII only, primarily keyboard input
- Cancel Enabled: ON
- (Judge the correct answer with a conditional branch, but since string comparison is hard to handle in a Formula at present, routing through an intermediate variable using Assign Variable is recommended)
Flow 4: Free user input (diary-like)
Player impressions or free-form notes:
- Show Text <- "Please write what left an impression on today's adventure"
- Show Text Input (this event content)
- Title: Diary
- Save Variable:
diary_entry - Default Value: empty
- Max Length: 50
- Hiragana: ON, Katakana: ON, Alphanumeric: ON
Flow 5: Name entry -> conditional check
Hidden-command style name entry:
- Show Text Input (this event content)
- Save Variable:
secret_name - Max Length: 10
- Save Variable:
- Conditional Branch (Formula
{secret_name} == 1) <- Since string comparison in a Formula is not currently feasible, workarounds are needed - (Hidden processing)
- End If
String matching is difficult
Since string comparison in a Formula is hard to handle at present, judging "whether the input equals a specific string" is not fully reliable. For hidden commands, numeric input is more dependable.
Flow 6: "Katakana only" monster name entry
Monster name using Katakana only:
- Show Text Input (this event content)
- Title: Monster name
- Save Variable:
pet_name - Max Length: 6
- Hiragana: OFF, Katakana: ON, Alphanumeric: OFF <- restrict to Katakana only
Flow 7: Input loop (re-enter)
Mechanism to re-prompt when the input is blank (limited implementation since blank detection in a Formula is difficult):
- Loop
- Show Text Input (this event content) (Save Variable
name_input) - (Some validation of the input, but Formula string checks are limited)
- Break Loop
- Loop End
Input validation is currently limited
The ability to strictly validate text input results is currently limited. The main controls available are "always force input" with Cancel Enabled OFF, or "allow blanks" with Cancel Enabled ON.
Typical Combinations
See Combination Pattern Collection for the overall picture.
Name entry pattern
A standard pattern for name entry at game start:
- Show Text <- Instructions
- Show Text Input (this event content) (Cancel disabled)
- Show Text <- "Nice to meet you, {input variable}!"
Free text save pattern
Save free-form player input:
- Show Text Input (this event content)
- Show Text <- Display the input result
Input -> variable expansion in display
Reference the input result inside text:
- Show Text Input (this event content) (Save Variable
pet_name) - Show Text <- "{pet_name} has grown attached to you"
Related Event Contents
| Related event content | Use |
|---|---|
| Show Number Input | The paired event content for integer input (symmetric structure with this event content) |
| Assign Variable | Prerequisite for variable definition, also used for post-input processing |
| Show Text | Expand the input result using {variable name} for display |
| Conditional Branch | Branch judgment by the input value (string comparison is limited) |
| End Event | Early termination on cancel |
| Add Choice | Use this instead when offering fixed choices |
Related Pages
| Page | Related content |
|---|---|
| Variable Tab (Editor) | Definition of the save variable |
| Text Special Notation | Expand the input result with {variable name} |
| Event Content List | List of all event contents |
Notes
Define the variable in advance in the Variable tab
The variable that stores the input value must be defined in advance in the Variable tab. If an undefined variable is specified, the input value is not saved (the dialog itself still opens).
All charsets OFF triggers auto-correction
If all three of Hiragana / Katakana / ASCII are OFF, the runtime automatically turns Hiragana ON (a warning log is emitted). To avoid unintended charsets, make sure to keep at least one ON.
Direct keyboard input only with the ASCII charset
Direct keyboard input of A-Z is only possible when the Alphanumeric (ASCII) charset is ON. Hiragana and Katakana can only be entered using the on-dialog buttons.
Max Length must be 1 or greater
Even if Max Length is set to 0 or less, the runtime automatically corrects it to 1.
Default Value is truncated by Max Length
If the Default Value is longer than Max Length, the excess is automatically truncated.
Disabling cancel enables forced input mode
If Cancel Enabled is OFF, the player cannot use the Cancel button or the ESC key. They must press OK. Use this for scenes that require input, such as character name entry.
Other HUDs are paused during the dialog
While the dialog is open, all HUD processing including images, text, choices, and buttons is paused. It automatically resumes when the dialog is closed.
The dialog opens even if the save variable is unspecified
Even if the save variable is unspecified or has been deleted, the dialog opens. A warning log is emitted and saving the input value is skipped. Game progression does not stop.
String comparison is hard to handle in a Formula
Judging the input string via a Conditional Branch is tricky because a Formula is currently primarily designed for numeric calculation. The main use case is "always force input".
Title supports translation
The Title property's text can be localized via the Translation tab for multilingual support.
Classic RPG layout
The character button layout on the dialog follows the familiar 6-row x 15-column arrangement from classic RPGs. The design makes it intuitive for players to operate.
Multiple input methods
Mouse, arrow keys, and keyboard (when the ASCII charset is ON) can all be used, so it works for various player environments.
