Mechanic
showDialog
PREMIUMShows a Paper dialog to the target player
Aliases
openDialogdialog
Examples & Notes
Response Variables
When a player clicks a button in the dialog, the associated skill is executed with the following variables injected into the skill metadata:
| Variable | Description |
|---|---|
dialog.button |
The index of the clicked button (integer, starting at 0) |
dialog.<key> |
The value of each visible input, where <key> is the input’s Key field |
Input values are typed based on the input type:
- text / option — string
- bool —
trueorfalse - range — float value (e.g.
5.0)
Examples
Shows a simple welcome notice to the player that interacted with the mob.
Skills:
- showDialog{dialog=WelcomeNotice} @trigger
Shows a quest offer dialog using a placeholder for the dialog name.
Skills:
- showDialog{d=QuestOffer} @trigger
Shows a character setup dialog to all players within 10 blocks.
Skills:
- showDialog{d=CharacterSetup} @PlayersInRadius{r=10}