Skip to content

ST Clock

Crowguard edited this page Jan 6, 2024 · 11 revisions

Clock

This tile contains an infinite loop

A "mostly accurate" clock that will track tile trigger history via the tokens the hands are attached to; I chose this method instead of just a simple loop so that it stays consistent & doesn't go off-course across server restarts. While tile history usually isn't tracked during a Trigger Tile, it can be tricked if there's a token involved in the loop.

This requires two tokens; they are Tagged Small_Hand and Large_Hand in the setup below. Each token is attached to a tile with their respective hand images. You could avoid this step if you don't care if the hand images are above the glass image and just assign the hand images to the token.

Setup Required

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": 2400,
  "y": 2000,
  "z": 100,
  "width": 200,
  "height": 200,
  "rotation": 0,
  "alpha": 1,
  "flags": {
    "tagger": {
      "tags": ""
    },
    "monks-active-tiles": {
      "active": true,
      "record": true,
      "restriction": "all",
      "controlled": "gm",
      "trigger": [
        "",
        "dblclick"
      ],
      "allowpaused": false,
      "usealpha": false,
      "pointer": false,
      "pertoken": false,
      "minrequired": 0,
      "chance": 100,
      "fileindex": 0,
      "actions": [
        {
          "action": "alter",
          "data": {
            "entity": {
              "id": "tagger:Small_Hand",
              "match": "all",
              "scene": "_active",
              "name": "<i class=\"fas fa-tag fa-sm\"></i> Small_Hand"
            },
            "attribute": "rotation",
            "value": "+ 6",
            "chatMessage": false,
            "rollmode": "roll"
          },
          "id": "KiFrYn23tUJvMwrl"
        },
        {
          "action": "delay",
          "data": {
            "delay": "1"
          },
          "id": "EncItA7jlMDuX14u"
        },
        {
          "action": "triggercount",
          "data": {
            "count": "= 60",
            "unique": false,
            "none": "Second"
          },
          "id": "4xZSNOwoMJQOT7T1"
        },
        {
          "action": "alter",
          "data": {
            "entity": {
              "id": "tagger:Large_Hand",
              "match": "all",
              "scene": "_active",
              "name": "<i class=\"fas fa-tag fa-sm\"></i> Large_Hand"
            },
            "attribute": "rotation",
            "value": "+ 6",
            "chatMessage": false,
            "rollmode": "roll"
          },
          "id": "bU5oEcGqeGh55Gpu"
        },
        {
          "action": "resethistory",
          "data": {
            "entity": "",
            "token": {
              "id": "previous",
              "name": "Current tokens"
            }
          },
          "id": "O5aqSPdyuAmX3CkV"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Second",
            "stop": false
          },
          "id": "kFrU6gfqqdjDlR8W"
        },
        {
          "action": "trigger",
          "data": {
            "entity": {
              "id": "tile",
              "name": "This Tile"
            },
            "token": "",
            "landing": "",
            "return": true
          },
          "id": "0w34EbmxfOESHunr"
        }
      ],
      "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": "ftvAb220BbaeIIQt",
  "name": "Clock",
  "visible": true,
  "img": null,
  "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

MATT 10.12

Clone this wiki locally