Skip to content

ST Phase Selector

Crowguard edited this page Apr 14, 2023 · 9 revisions

Phase Selector

A button for the GM, it prompts them to select a phase; each landing needs actions & targets setup appropriately for whatever you want to happen during each phase.

Setup Required

Setup Tab

  • Controlled by GM Only

Actions

Click here to view the Show Dialog HTML

Copy & paste the code block into the Show Dialog's content field.

<form>
  Which phase?:
<input type="hidden" id="dialog-redirect" name="goto" />
  <button type="button" onclick="$('#dialog-redirect').val('Phase 01');">Phase 01</button>
  <button type="button" onclick="$('#dialog-redirect').val('Phase 02');">Phase 02</button>
  <button type="button" onclick="$('#dialog-redirect').val('Phase 03');">Phase 03</button>
  <button type="button" onclick="$('#dialog-redirect').val('Phase 04');">Phase 04</button>
  <button type="button" onclick="$('#dialog-redirect').val('Phase 05');">Phase 05</button>
  <button type="button" onclick="$('#dialog-redirect').val('Phase 06');">Phase 06</button>
  <button type="button" onclick="$('#dialog-redirect').val('Phase 07');">Phase 07</button>
  <button type="button" onclick="$('#dialog-redirect').val('Phase 08');">Phase 08</button>
  <button type="button" onclick="$('#dialog-redirect').val('Phase 09');">Phase 09</button>
  <button type="button" onclick="$('#dialog-redirect').val('Phase 10');">Phase 10</button>
</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.

{
  "width": 140,
  "height": 140,
  "z": 100,
  "rotation": 0,
  "alpha": 1,
  "hidden": false,
  "locked": false,
  "overhead": false,
  "occlusion": {
    "mode": 1,
    "alpha": 0,
    "radius": null
  },
  "video": {
    "loop": true,
    "autoplay": true,
    "volume": 0
  },
  "flags": {
    "tagger": {
      "tags": ""
    },
    "betterroofs": {
      "brMode": 0,
      "manualPoly": "",
      "occlusionLinkId": "",
      "occlusionLinkSource": false
    },
    "perfect-vision": {
      "lighting": ""
    },
    "monks-active-tiles": {
      "active": true,
      "record": false,
      "restriction": "all",
      "controlled": "gm",
      "trigger": [
        "dblclick"
      ],
      "allowpaused": false,
      "usealpha": false,
      "pointer": false,
      "pertoken": false,
      "minrequired": 0,
      "chance": 100,
      "fileindex": 0,
      "actions": [
        {
          "action": "dialog",
          "data": {
            "dialogtype": "confirm",
            "title": "Phase Selector",
            "content": "<form>\n  Which phase?:\n<input type=\"hidden\" id=\"dialog-redirect\" name=\"goto\" />\n  <button type=\"button\" onclick=\"$('#dialog-redirect').val('Phase 01');\">Phase 01</button>\n  <button type=\"button\" onclick=\"$('#dialog-redirect').val('Phase 02');\">Phase 02</button>\n  <button type=\"button\" onclick=\"$('#dialog-redirect').val('Phase 03');\">Phase 03</button>\n  <button type=\"button\" onclick=\"$('#dialog-redirect').val('Phase 04');\">Phase 04</button>\n  <button type=\"button\" onclick=\"$('#dialog-redirect').val('Phase 05');\">Phase 05</button>\n  <button type=\"button\" onclick=\"$('#dialog-redirect').val('Phase 06');\">Phase 06</button>\n  <button type=\"button\" onclick=\"$('#dialog-redirect').val('Phase 07');\">Phase 07</button>\n  <button type=\"button\" onclick=\"$('#dialog-redirect').val('Phase 08');\">Phase 08</button>\n  <button type=\"button\" onclick=\"$('#dialog-redirect').val('Phase 09');\">Phase 09</button>\n  <button type=\"button\" onclick=\"$('#dialog-redirect').val('Phase 10');\">Phase 10</button>\n</form>",
            "yes": "",
            "no": "",
            "for": "gm"
          },
          "id": "zknb8rK8JH2iT7sO"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Phase 01",
            "stop": true
          },
          "id": "aLX9RimuEGvVWFH4"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Phase 02",
            "stop": true
          },
          "id": "UNk3yxw1c4dMgJh9"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Phase 03",
            "stop": true
          },
          "id": "CQMZfrK9zZZaBgev"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Phase 04",
            "stop": true
          },
          "id": "S7PqRdeKMYvzIzZx"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Phase 05",
            "stop": true
          },
          "id": "561kbFnJdDVZmMlB"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Phase 06",
            "stop": true
          },
          "id": "OxKOoRaBVkTam9g9"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Phase 07",
            "stop": true
          },
          "id": "hwN98sKtJcuEtTiV"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Phase 08",
            "stop": true
          },
          "id": "s08NZH8roBcIEonj"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Phase 09",
            "stop": true
          },
          "id": "dC88k70586XOcjw9"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Phase 10",
            "stop": true
          },
          "id": "t7IQLnnGrXhTomJ1"
        }
      ],
      "files": []
    },
    "tile-scroll": {
      "enableScroll": false,
      "scrollDirection": 0,
      "enableRotate": false,
      "scrollSpeed": 1,
      "repeat": 1,
      "pivotx": 0.5,
      "pivoty": 0.5,
      "offsetx": 0,
      "offsety": 0
    },
    "exportSource": {
      "world": "crows-world",
      "system": "dnd5e",
      "coreVersion": "10.290",
      "systemVersion": "2.0.3"
    }
  },
  "texture": {
    "src": null,
    "tint": null,
    "scaleX": 1,
    "scaleY": 1,
    "offsetX": 0,
    "offsetY": 0,
    "rotation": 0
  },
  "roof": false,
  "id": "dlYRzCu1vF3XMpfk",
  "name": "Phase Selector",
  "visible": true,
  "img": null,
  "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

MATT 10.12

Clone this wiki locally