Dialog Inputs
Dialog inputs allow you to collect information from players through interactive form elements. All input values can be accessed in actions using placeholders.
Available Input Types
Text Input (dialog_text)
dialog_text)Collect text input from players with single or multi-line support.
inputs:
player_feedback:
type: dialog_text
label: "&6Share your thoughts about our server:"
width: 400
label-visible: true
initial-value: "This server is amazing because..."
max-length: 200
multiline:
max-lines: 4
height: 80Options:
label- Text shown above the input fieldwidth- Input field width in pixelslabel-visible- Whether to show the labelinitial-value- Pre-filled textmax-length- Maximum character limitmultiline- Multi-line text area configurationmax-lines- Maximum number of linesheight- Height in pixels
Accessing value: %player_feedback%
Boolean Input (dialog_boolean)
dialog_boolean)Present a true/false choice to players.
Options:
label- Question or prompt textinitial-value- Default selection (true/false)text-true- Text for the "true" optiontext-false- Text for the "false" option
Accessing value: %newsletter% (returns "true" or "false")
Single Option Selection (dialog_single_option)
dialog_single_option)Allow players to choose one option from multiple choices.
Options:
label- Question or prompt textlabel-visible- Whether to show the labeloptions- Available choicesid- Unique identifier for the optiondisplay- Text shown to the playerinitial- Whether this option is selected by default
Accessing value: %gamemode% (returns the selected option's id)
Number Range (dialog_number_range)
dialog_number_range)Let players select a number within a specified range.
Options:
label- Question or prompt textlabel-format- Display format for the current valuewidth- Slider width in pixelsstart- Minimum valueend- Maximum valuestep- Increment/decrement stepinitial-value- Default selected value
Accessing value: %playtime% (returns the selected number)
Using Input Values in Actions
All input values are automatically available as placeholders in your dialog actions:
Conditional Content
You can use requirements and placeholders to show different content based on conditions:
Input Validation
Text Input Validation
Automatic length validation based on
max-lengthEmpty input handling
Special character support
Boolean Input Validation
Always returns valid true/false values
No additional validation needed
Single Option Validation
Ensures one option is always selected
Returns the
idof the selected option
Number Range Validation
Automatic range validation (stays within start/end bounds)
Step validation ensures valid increments
Best Practices
Use clear labels - Make it obvious what you're asking for
Set reasonable limits - Don't overwhelm players with too many options
Provide good defaults - Use sensible initial values
Keep it relevant - Only ask for information you'll actually use
Test thoroughly - Ensure all input combinations work correctly
Styling Tips
Consistent widths - Use similar widths for related inputs
Appropriate sizing - Don't make inputs too small or too large
Visual grouping - Group related inputs together
Color coding - Use colors to indicate input importance or type
Last updated