Dialog Input (Expression) — Skript

Addon: Skript · Category: Expression

Syntax

[the] [dialog] input %string%

Description

The value a player entered into a named dialog input, available inside a dialog button's code section and inside the dialog click event. Text inputs return text, checkboxes return their true or false value as text, sliders return a number, and dropdowns return the id of the chosen option. Returns nothing if the dialog had no input under that name.

Examples

set {_buy} to new dialog button labeled "Buy" running code:
	send "You asked for %dialog input ""qty""%" to player

View source