ST Options Dialog - ironmonk108/monks-module-wiki GitHub Wiki

Shows a dialog to the user that can be used for things such as elevators, multi-choice teleporters, or phase changes for a boss fight. Set up whatever actions are desired in each landing.

- Landing
-
Show Dialog
- The dialog in the initial screenshot uses the
Customtype with custom buttons set up; the button's landing fields must match your landing names in the action list.
- The dialog in the initial screenshot uses the
The Teleports & Hurt/Heal are for demonstration purposes only.
Click here to view Tile Template JSON Data
Copy & paste this into Notepad and save it as a .JSON file. Then import it using MATT's Tile Templates.
{
"width": 100,
"height": 100,
"rotation": 0,
"elevation": 0,
"sort": 206,
"flags": {
"monks-active-tiles": {
"name": "Options Selector",
"active": true,
"record": false,
"restriction": "all",
"controlled": "all",
"trigger": [
"dblclick"
],
"allowpaused": false,
"usealpha": false,
"pointer": false,
"vision": false,
"pertoken": false,
"minrequired": null,
"cooldown": null,
"chance": 100,
"fileindex": 0,
"actions": [
{
"action": "dialog",
"data": {
"dialogtype": "custom",
"id": "",
"title": "",
"showto": "trigger",
"content": "Make a choice.",
"file": "",
"classes": "",
"width": "",
"height": "",
"yes": "",
"no": "",
"close": "",
"buttons": [
{
"id": "jvIzqmieVhNZfgvV",
"name": "Set 01",
"goto": "Set 01",
"icon": "",
"submit": false
},
{
"id": "S8D9KA3vW3mFGpSV",
"name": "Set 02",
"goto": "Set 02",
"icon": "",
"submit": false
},
{
"id": "XVVPLaRTI1ouOhIT",
"name": "Set 03",
"goto": "Set 03",
"icon": "",
"submit": false
},
{
"id": "fPVKKTQgpuGc7w4P",
"name": "Set 04",
"goto": "Set 04",
"icon": "",
"submit": false
},
{
"id": "bCCSsbpnWmOcEJug",
"name": "Set 05",
"goto": "Set 05",
"icon": "",
"submit": false
}
]
},
"id": "qXfTzEtTyanl6VCV"
},
{
"action": "anchor",
"data": {
"tag": "Set 01",
"stop": true
},
"id": "c12mss6PuRbWCa7c"
},
{
"action": "anchor",
"data": {
"tag": "Set 02",
"stop": true
},
"id": "oG1AJ6cumDaRjBga"
},
{
"action": "anchor",
"data": {
"tag": "Set 03",
"stop": true
},
"id": "63Z013urJteTfSTV"
},
{
"action": "anchor",
"data": {
"tag": "Set 04",
"stop": true
},
"id": "DoynwrdXVbNtDnvc"
},
{
"action": "anchor",
"data": {
"tag": "Set 05",
"stop": true
},
"id": "DCYWWS2pA33c5L2N"
}
],
"files": []
},
"tagger": {
"tags": ""
}
},
"texture": {
"src": null,
"scaleX": 1,
"scaleY": 1,
"tint": "#ffffff",
"anchorX": 0.5,
"anchorY": 0.5,
"offsetX": 0,
"offsetY": 0,
"fit": "fill",
"rotation": 0,
"alphaThreshold": 0.75
},
"alpha": 1,
"occlusion": {
"mode": 0,
"alpha": 0
},
"restrictions": {
"light": false,
"weather": false
},
"hidden": false,
"locked": false,
"video": {
"loop": true,
"autoplay": true,
"volume": 0
},
"name": "Options_Dialog_v13.01",
"visible": true,
"img": null,
"thumbnail": "modules/monks-active-tiles/img/cube.svg"
}
- Foundry 13.350
- MATT 13.05