ST Password Input (Basic) - ironmonk108/monks-module-wiki GitHub Wiki
A tile that prompts the triggering player to enter a password, then depending if they have the password right, runs different actions. This can be triggered however you want, though it was originally made for a door trigger, but it could open a loot entity or anything else you want.
-
Landing
- Name:
_failedlanding
Use this for any actions meant to run if they get the password wrong, otherwise you can leave it out. - The
Hello
landing needs to be renamed to whatever your desired password is.
- Name:
-
Show Dialog
- On Yes Goto:
{{value.password}}
- Leave the HTML alone,
password
doesn't need to be replaced in it; if replaced for whatever reason,value.password
in the button needs to be updated to match.
- On Yes Goto:
Click here to view the Show Dialog HTML
Copy & paste the code block into the Show Dialog's content field.
<form>
Please enter the password.
<input name="password" />
</form>
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.
{
"texture": {
"scaleX": 1,
"scaleY": 1,
"src": null,
"tint": "#ffffff",
"offsetX": 0,
"offsetY": 0,
"rotation": 0,
"anchorX": 0.5,
"anchorY": 0.5,
"fit": "fill",
"alphaThreshold": 0.75
},
"width": 100,
"height": 100,
"rotation": 0,
"elevation": 0,
"alpha": 1,
"flags": {
"tagger": {
"tags": ""
},
"monks-active-tiles": {
"active": true,
"record": false,
"restriction": "all",
"controlled": "all",
"trigger": [
"enter"
],
"allowpaused": false,
"usealpha": false,
"pointer": false,
"pertoken": false,
"minrequired": 0,
"chance": 100,
"fileindex": 0,
"actions": [
{
"action": "dialog",
"data": {
"dialogtype": "confirm",
"title": "",
"content": "<form>\nPlease enter the password.\n<input name=\"password\" />\n</form>",
"yes": "",
"no": "",
"showto": "trigger",
"id": "",
"closeNo": true,
"file": "",
"options": "",
"width": "",
"height": "",
"buttons": [
{
"id": "7opn0wBhoLoWLDbS",
"name": "Submit password",
"goto": "{{value.password}}",
"icon": "",
"submit": true
},
{
"id": "h7xg5xJ1mLKIXlNU",
"name": "Do nothing",
"goto": "",
"icon": "",
"submit": false
}
],
"classes": "",
"close": ""
},
"id": "TQw09jmnUbbANguY"
},
{
"action": "anchor",
"data": {
"tag": "Hello",
"stop": true
},
"id": "PFxeF0jeNWotO8Lb"
},
{
"action": "chatmessage",
"data": {
"flavor": "",
"text": "Success",
"entity": {
"id": "token",
"name": "Triggering Token"
},
"incharacter": false,
"chatbubble": "true",
"language": "",
"showto": "everyone"
},
"id": "N2yTsIR1ytjssO65"
},
{
"action": "anchor",
"data": {
"tag": "_failedlanding",
"stop": true
},
"id": "Jtv2hC3x4k6uiWif"
},
{
"action": "chatmessage",
"data": {
"flavor": "",
"text": "Failure",
"entity": {
"id": "token",
"name": "Triggering Token"
},
"incharacter": false,
"chatbubble": "true",
"language": "",
"showto": "everyone"
},
"id": "usdwNkQYsiRIG08A"
}
],
"files": [],
"vision": false,
"cooldown": null,
"name": ""
}
},
"occlusion": {
"mode": 1,
"alpha": 0
},
"video": {
"loop": true,
"autoplay": true,
"volume": 0
},
"hidden": false,
"locked": false,
"sort": 102,
"restrictions": {
"light": false,
"weather": false
},
"name": "Password_Input_v13.02",
"visible": true,
"img": null,
"thumbnail": "modules/monks-active-tiles/img/cube.svg"
}
- Foundry 13.348
- MATT 13.05