Skip to content

ST Reset Scene

Crowguard edited this page Jun 20, 2024 · 7 revisions

Reset Scene

A button intended for the GM that will reset the scene back to its default state & notify the GM once it's finished; assuming that the Tags were properly set up in the first place.

  • Add the Tag Reset_Off on tiles, lights, and sounds you want deactivated as part of the reset.
  • Add the Tag Reset_Show on tiles you want visible as part of the reset.
  • Reset_Trigger is intended to be used with tile prefabs that are numbered using Tagger's Wildcard system and add or remove various numbered Tags that would be impractical to add to the global reset button; these actions are built into the tiles in their own action thread and only run when using Trigger Tile's Landing field.
  • Reset_Image at least for my scenes, I have tiles set up so that their default image is always image #1.
  • You can add other actions to these, like Hurt/Heal to automatically heal all tokens; this is just an example setup.
  • You can add different Change Wall/Door with matching Tags on their respective walls to turn them back to their original states.

Setup Required

Setup Tab

  • Controlled by GM Only

Actions

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": 2500,
  "y": 1700,
  "z": 100,
  "width": 100,
  "height": 100,
  "rotation": 0,
  "alpha": 1,
  "flags": {
    "tagger": {
      "tags": ""
    },
    "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": "",
            "content": "Are you sure you want to reset the scene?",
            "for": "gm",
            "yes": "Yes",
            "no": "No"
          },
          "id": "kUzvDBIOqNeruvfy"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Yes",
            "stop": true
          },
          "id": "a7FHkXaKgT4QWluJ"
        },
        {
          "action": "activate",
          "data": {
            "entity": {
              "id": "tagger:Reset_On",
              "match": "all",
              "scene": "_active",
              "name": "<i class=\"fas fa-tag fa-sm\"></i> Reset_On"
            },
            "activate": "activate"
          },
          "id": "eqlPqOM4XMfe4opA"
        },
        {
          "action": "activate",
          "data": {
            "entity": {
              "id": "tagger:Reset_Off",
              "match": "all",
              "scene": "_active",
              "name": "<i class=\"fas fa-tag fa-sm\"></i> Reset_Off"
            },
            "activate": "deactivate"
          },
          "id": "BKXBTSTwW3j8PxR3"
        },
        {
          "action": "showhide",
          "data": {
            "entity": {
              "id": "tagger:Reset_Show",
              "match": "all",
              "scene": "_active",
              "name": "<i class=\"fas fa-tag fa-sm\"></i> Reset_Show"
            },
            "collection": "tokens",
            "hidden": "show",
            "fade": 0
          },
          "id": "uFknjDQYvtzZQP3C"
        },
        {
          "action": "showhide",
          "data": {
            "entity": {
              "id": "tagger:Reset_Hide",
              "match": "all",
              "scene": "_active",
              "name": "<i class=\"fas fa-tag fa-sm\"></i> Reset_Hide"
            },
            "collection": "tokens",
            "hidden": "hide",
            "fade": 0
          },
          "id": "A4Icl3GuvZqdnKnd"
        },
        {
          "action": "resethistory",
          "data": {
            "entity": {
              "id": "tagger:Reset_history",
              "match": "all",
              "scene": "_active",
              "name": "<i class=\"fas fa-tag fa-sm\"></i> Reset_history"
            },
            "token": {
              "id": "previous",
              "name": "Current tokens"
            }
          },
          "id": "1k3QNMuY2E4LWOMA"
        },
        {
          "action": "trigger",
          "data": {
            "entity": {
              "id": "tagger:Reset_Trigger",
              "match": "all",
              "scene": "_active",
              "name": "<i class=\"fas fa-tag fa-sm\"></i> Reset_Trigger"
            },
            "token": "",
            "landing": "Reset",
            "return": true
          },
          "id": "0sNvRfqQvw3HfN9D"
        },
        {
          "action": "tileimage",
          "data": {
            "entity": {
              "id": "tagger:Reset_Image",
              "match": "all",
              "scene": "_active",
              "name": "<i class=\"fas fa-tag fa-sm\"></i> Reset_Image"
            },
            "select": "1",
            "transition": "none",
            "speed": 1,
            "loop": 1
          },
          "id": "mZzjba8nCtyTS03V"
        },
        {
          "action": "runbatch",
          "id": "dLHeYuEOi9MhrT9T"
        },
        {
          "action": "notification",
          "data": {
            "text": "{{scene.name}} has been reset.",
            "type": "info",
            "showto": "gm"
          },
          "id": "nlUseaokrfon5WWM"
        }
      ],
      "files": []
    },
    "exportSource": {
      "world": "matt-test",
      "system": "dnd5e",
      "coreVersion": "10.291",
      "systemVersion": "2.1.5"
    }
  },
  "overhead": false,
  "roof": false,
  "occlusion": {
    "mode": 1,
    "alpha": 0,
    "radius": null
  },
  "video": {
    "loop": true,
    "autoplay": true,
    "volume": 0
  },
  "hidden": false,
  "locked": false,
  "id": "5IgNhs1BAvKhemKq",
  "name": "Reset_Scene",
  "visible": true,
  "img": null,
  "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

MATT 10.12

Clone this wiki locally