ST Darkness Activated Tile - ironmonk88/monks-module-wiki GitHub Wiki

Darkness Activated Tile

If you need a little more range than the darkness numbered auto-landings provide on their own and don't want to set up a ton of auto-landings, you can use this setup to run different action threads depending on the scene darkness range.

The Check Value in Day needs to jump to the Dusk/Dawn landing, and the checks in Dusk/Dawn need to jump to the Night landing. Or delete the Dusk/Dawn thread and go straight to Night if its unneeded.

Setup Required

Setup Tab

  • When: Lighting Change

Actions

The Chat Message are for informative purposes only.

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
  },
  "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": [
        "",
        "darkness"
      ],
      "allowpaused": false,
      "usealpha": false,
      "pointer": false,
      "pertoken": false,
      "minrequired": 0,
      "cooldown": null,
      "chance": 100,
      "fileindex": 0,
      "actions": [
        {
          "action": "anchor",
          "data": {
            "tag": "_darkness",
            "stop": true
          },
          "id": "ZgI3dWDbGcJSI4wh"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Day",
            "stop": false
          },
          "id": "pXDwkReUFW8tsm6Z"
        },
        {
          "action": "checkvalue",
          "data": {
            "name": "darkness",
            "value": "< 0.25",
            "fail": "Dusk / Dawn"
          },
          "id": "Zu2Yh6AdOxe7QevP"
        },
        {
          "action": "chatmessage",
          "data": {
            "flavor": "",
            "text": "Day stuff",
            "entity": "",
            "incharacter": false,
            "chatbubble": "true",
            "for": "all",
            "language": ""
          },
          "id": "B2qb1AjbWKLVgYYU"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Dusk / Dawn",
            "stop": true
          },
          "id": "cOS30bv8SL2QrcW9"
        },
        {
          "action": "checkvalue",
          "data": {
            "name": "darkness",
            "value": "> 0.24",
            "fail": "Night"
          },
          "id": "P2PmtsOE9lGJ7pku"
        },
        {
          "action": "checkvalue",
          "data": {
            "name": "darkness",
            "value": "< 0.76",
            "fail": "Night"
          },
          "id": "NOjl1iqX6R6kygyo"
        },
        {
          "action": "chatmessage",
          "data": {
            "flavor": "",
            "text": "Dusk / Dawn stuff",
            "entity": "",
            "incharacter": false,
            "chatbubble": "true",
            "for": "all",
            "language": ""
          },
          "id": "mWXUaA12WwZeYWhQ"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Night",
            "stop": true
          },
          "id": "xhH57y0BfXrcyOGs"
        },
        {
          "action": "checkvalue",
          "data": {
            "name": "darkness",
            "value": "> 0.75",
            "fail": ""
          },
          "id": "jiwGEwooC2hTkcJi"
        },
        {
          "action": "chatmessage",
          "data": {
            "flavor": "",
            "text": "Night stuff",
            "entity": "",
            "incharacter": false,
            "chatbubble": "true",
            "for": "all",
            "language": ""
          },
          "id": "sn7P6XpK3DMbkmlr"
        }
      ],
      "files": []
    },
    "exportSource": {
      "world": "module-assembly",
      "system": "pf2e",
      "coreVersion": "11.313",
      "systemVersion": "5.6.2"
    }
  },
  "overhead": false,
  "roof": false,
  "occlusion": {
    "mode": 1,
    "alpha": 0,
    "radius": null
  },
  "video": {
    "loop": true,
    "autoplay": true,
    "volume": 0
  },
  "hidden": false,
  "locked": false,
  "x": 200,
  "y": 5000,
  "id": "wyTD2q0noxBZKljR",
  "name": "Darkness_Activated_Tile",
  "visible": true,
  "img": null,
  "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

MATT 11.11

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