New Dialog Option (Expression) — Skript

Addon: Skript · Category: Expression

Syntax

[new] [dialog] option %string% [labeled %component%] [selected:selected]

Description

Creates one entry for a single option input. The id is what comes back in the click payload; the label is what the player sees and defaults to the id. Marking an option as selected makes it the initial choice.

Examples

set {_easy} to new dialog option "easy" labeled mm("<green>Easy") selected
set {_hard} to new dialog option "hard" labeled mm("<red>Hard")

View source