ST Chess Piece Capture - ironmonk88/monks-module-wiki GitHub Wiki

Chess Piece Capture

Deletes the opposite colored piece when a token ends their movement within the tile. Requires each token have an item in their inventory named White Piece or Black Piece respectively.

Setup Required

Setup Tab

  • When Stop within tile

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": [
        "Chess Piece Capture"
      ]
    },
    "perfect-vision": {
      "lighting": ""
    },
    "tile-scroll": {
      "enableScroll": false,
      "scrollDirection": 0,
      "enableRotate": false,
      "scrollSpeed": 1,
      "repeat": 1,
      "pivotx": 0.5,
      "pivoty": 0.5,
      "offsetx": 0,
      "offsety": 0
    },
    "monks-active-tiles": {
      "active": true,
      "record": false,
      "restriction": "all",
      "controlled": "all",
      "trigger": [
        "",
        "stop"
      ],
      "allowpaused": false,
      "usealpha": false,
      "pointer": false,
      "pertoken": false,
      "minrequired": 0,
      "chance": 100,
      "fileindex": 0,
      "actions": [
        {
          "action": "anchor",
          "data": {
            "tag": "White Piece",
            "stop": false
          },
          "id": "OGGAkGzmxItk8Dhg"
        },
        {
          "action": "inventory",
          "data": {
            "entity": {
              "id": "token",
              "name": "Triggering Token"
            },
            "item": "White Piece",
            "count": "> 0",
            "quantity": ">= 1"
          },
          "id": "24xXtlND6OoFZ7t0"
        },
        {
          "action": "exists",
          "data": {
            "entity": "",
            "collection": "tokens",
            "count": "> 0",
            "none": "Black Piece"
          },
          "id": "0H3wbY3SvWpyHvVZ"
        },
        {
          "action": "inventory",
          "data": {
            "entity": {
              "id": "within",
              "name": "Tokens within Tile"
            },
            "item": "White Piece",
            "count": "< 1",
            "quantity": ">= 1"
          },
          "id": "TnDhn14sGGBHtpq7"
        },
        {
          "action": "exists",
          "data": {
            "entity": "",
            "collection": "tokens",
            "count": "> 0",
            "none": ""
          },
          "id": "cySNU7Pmmq4GtXip"
        },
        {
          "action": "delete",
          "data": {
            "entity": {
              "id": "previous",
              "name": "Current tiles"
            },
            "collection": "tokens"
          },
          "id": "SK1V6IvrnUYbT651"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Black Piece",
            "stop": true
          },
          "id": "F8jcx03qDTFbRrd1"
        },
        {
          "action": "inventory",
          "data": {
            "entity": {
              "id": "token",
              "name": "Triggering Token"
            },
            "item": "Black Piece",
            "count": "> 0",
            "quantity": ">= 1"
          },
          "id": "KY1sdA744aNX9LMN"
        },
        {
          "action": "exists",
          "data": {
            "entity": "",
            "collection": "tokens",
            "count": "> 0",
            "none": ""
          },
          "id": "cF1ce7wQur4PzB5j"
        },
        {
          "action": "inventory",
          "data": {
            "entity": {
              "id": "within",
              "name": "Tokens within Tile"
            },
            "item": "Black Piece",
            "count": "< 1",
            "quantity": ">= 1"
          },
          "id": "FHCj5HmxIIDzCV13"
        },
        {
          "action": "exists",
          "data": {
            "entity": "",
            "collection": "tokens",
            "count": "> 0",
            "none": ""
          },
          "id": "dXcGxrF20798l4UE"
        },
        {
          "action": "delete",
          "data": {
            "entity": {
              "id": "previous",
              "name": "Current tiles"
            },
            "collection": "tokens"
          },
          "id": "rwV57kXxpFsuWA8d"
        }
      ],
      "files": []
    },
    "exportSource": {
      "world": "crows-world",
      "system": "dnd5e",
      "coreVersion": "10.291",
      "systemVersion": "2.1.2"
    }
  },
  "overhead": false,
  "roof": false,
  "occlusion": {
    "mode": 1,
    "alpha": 0,
    "radius": null
  },
  "video": {
    "loop": true,
    "autoplay": true,
    "volume": 0
  },
  "hidden": false,
  "locked": false,
  "id": "63z7U6TCr8RPAWV6",
  "name": "Chess Piece Capture",
  "visible": true,
  "img": null,
  "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

MATT 10.11

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