ST Password Input (Basic) - ironmonk88/monks-module-wiki GitHub Wiki

Password Input (Basic)

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.

Setup Required

Actions

  • Landing
    • Name: _failedlanding Use this for any actions meant to run if they get the password wrong, otherwise you can leave it out.
    • The Password landing needs to be renamed to whatever your desired password is.
  • Show Dialog
    • On Yes Goto: {{value.password}}
    • Leave the HTML alone, password doesn't need to be replaced in it.
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": {
    "src": null,
    "scaleX": 1,
    "scaleY": 1,
    "tint": null,
    "offsetX": 0,
    "offsetY": 0,
    "rotation": 0
  },
  "x": 2300,
  "y": 2600,
  "z": 100,
  "width": 100,
  "height": 100,
  "rotation": 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>",
            "for": "token",
            "yes": "{{value.password}}",
            "no": ""
          },
          "id": "TQw09jmnUbbANguY"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Password",
            "stop": true
          },
          "id": "PFxeF0jeNWotO8Lb"
        },
        {
          "action": "chatmessage",
          "data": {
            "flavor": "",
            "text": "Success",
            "entity": "",
            "incharacter": false,
            "chatbubble": "true",
            "for": "all",
            "language": ""
          },
          "id": "N2yTsIR1ytjssO65"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "_failedlanding",
            "stop": true
          },
          "id": "Jtv2hC3x4k6uiWif"
        },
        {
          "action": "chatmessage",
          "data": {
            "flavor": "",
            "text": "Failure",
            "entity": "",
            "incharacter": false,
            "chatbubble": "true",
            "for": "all",
            "language": ""
          },
          "id": "usdwNkQYsiRIG08A"
        }
      ],
      "files": []
    },
    "exportSource": {
      "world": "module-assembly",
      "system": "pf2e",
      "coreVersion": "10.291",
      "systemVersion": "4.11.2"
    }
  },
  "overhead": false,
  "roof": false,
  "occlusion": {
    "mode": 1,
    "alpha": 0,
    "radius": null
  },
  "video": {
    "loop": true,
    "autoplay": true,
    "volume": 0
  },
  "hidden": false,
  "locked": false,
  "id": "7kcPZyjuwaqaNL9O",
  "name": "10.16 Password Tile",
  "visible": true,
  "img": null,
  "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

MATT 10.18

⚠️ **GitHub.com Fallback** ⚠️