New Dialog (Expression) — Skript
Addon: Skript · Category: Expression
Syntax
[a] new (notice:notice|confirmation:confirmation|multi:multi[ ]action|links:server links) dialogDescription
Builds a dialog. A dialog is a plain value, so it can be stored in a variable, returned from a function or shown directly; use 'register dialog' instead to put one in the server dialog registry under a key.
Shared entries: title -> component (required) external title -> component can close with escape -> boolean (default true) pause -> boolean (default false) after action -> dialog after action (close, none, wait for response; default close) body -> dialog bodies inputs -> dialog inputs
Notice: button -> dialog button Confirmation: yes button, no button -> dialog button Multi action: buttons -> dialog buttons, exit button -> dialog button, columns -> number Dialog list: dialogs -> dialogs, exit button -> dialog button, columns -> number, button width -> number Server links: exit button -> dialog button, columns -> number, button width -> number
Examples
set {_shop} to new multi action dialog:
title: mm("<gold>Shop")
body: {_greeting}
inputs: {_qty}
buttons: {_buy}, {_cancel}
columns: 2
show {_shop} to player
show (new notice dialog:
title: mm("<gold>Welcome")) to player