Skip to content

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

ItemShow Text Input (this event content)Show Number Input
Input typeStringInteger
Input rangeMax Length (number of characters)Min/Max Value
Input methodThree charsets: Hiragana / Katakana / ASCIICalculator style (digits 0-9)
Use caseName entry, password, free textPurchase 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 formDescription
TitleTextThe title shown at the top of the dialog
Save VariableSelectionThe variable to save the input value to (defined in the Variable tab)
Default ValueTextThe initial string when the dialog is shown
Max LengthNumber (>= 1)Maximum number of characters that can be entered (default: 8)
Charset HiraganaCheckboxEnable Hiragana input (default: ON)
Charset KatakanaCheckboxEnable Katakana input (default: OFF)
Charset AsciiCheckboxEnable half-width alphanumeric/symbol input (default: OFF)
Cancel EnabledCheckboxEnable the cancel button (default: ON)
Cancel ValueTextThe 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 unspecified log 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):

  1. If the save variable is valid, saves the current input value
  2. Plays the decision sound (sound_decide)
  3. Closes the dialog
  4. Resumes all HUD processing
  5. Proceeds to the next event content

6. Behavior on Cancel ​

Pressing the Cancel button (or ESC key, only when Cancel Enabled is ON):

  1. If the save variable is valid, saves the Cancel Value
  2. Plays the cancel sound (sound_cancel)
  3. Closes the dialog
  4. Resumes all HUD processing
  5. 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:

  1. Show Text <- "Please decide the hero's name"
  2. 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
  3. Show Text <- "Nice to meet you, {hero_name}!"

Flow 2: Party name entry ​

Change the party name mid-game:

  1. 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:

  1. Show Text <- "Please enter the password"
  2. 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
  3. (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:

  1. Show Text <- "Please write what left an impression on today's adventure"
  2. 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:

  1. Show Text Input (this event content)
    • Save Variable: secret_name
    • Max Length: 10
  2. Conditional Branch (Formula {secret_name} == 1) <- Since string comparison in a Formula is not currently feasible, workarounds are needed
  3. (Hidden processing)
  4. 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:

  1. 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):

  1. Loop
  2. Show Text Input (this event content) (Save Variable name_input)
  3. (Some validation of the input, but Formula string checks are limited)
  4. Break Loop
  5. 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:

  1. Show Text <- Instructions
  2. Show Text Input (this event content) (Cancel disabled)
  3. Show Text <- "Nice to meet you, {input variable}!"

Free text save pattern ​

Save free-form player input:

  1. Show Text Input (this event content)
  2. Show Text <- Display the input result

Input -> variable expansion in display ​

Reference the input result inside text:

  1. Show Text Input (this event content) (Save Variable pet_name)
  2. Show Text <- "{pet_name} has grown attached to you"
Related event contentUse
Show Number InputThe paired event content for integer input (symmetric structure with this event content)
Assign VariablePrerequisite for variable definition, also used for post-input processing
Show TextExpand the input result using {variable name} for display
Conditional BranchBranch judgment by the input value (string comparison is limited)
End EventEarly termination on cancel
Add ChoiceUse this instead when offering fixed choices
PageRelated content
Variable Tab (Editor)Definition of the save variable
Text Special NotationExpand the input result with {variable name}
Event Content ListList 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.