Skip to content

ST Name Filter

Crowguard edited this page Apr 14, 2023 · 4 revisions

Name Filter

Filters the triggering token based on whether their name matches; the example below will only continue if the triggering token's name is Test NPC. Please note, this is filtering by the token name, not the actor name.

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
  },
  "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": "attribute",
          "data": {
            "entity": {
              "id": "token",
              "name": "Triggering Token"
            },
            "collection": "tokens",
            "attribute": "name",
            "value": "= \"Test NPC\""
          },
          "id": "SjpijIjVVLIMjrit"
        },
        {
          "action": "exists",
          "data": {
            "entity": "",
            "collection": "tokens",
            "count": "> 0",
            "none": ""
          },
          "id": "RpwCoziTTAo4pF5A"
        }
      ],
      "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,
  "x": 1800,
  "y": 3100,
  "id": "9Q03miMEc9GnL9Ux",
  "name": "Name_Filter",
  "visible": true,
  "img": null,
  "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

MATT 10.12

Clone this wiki locally