ST Death Save Script - ironmonk88/monks-module-wiki GitHub Wiki

Death Save Script

At the start of a player token's combat turn, prompts them for a death saving throw if they're at 0 hit points.

Setup Required

Setup Tab

  • Restricted Tokens: Only Player Tokens
  • When: Combat Turn Start

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": "player",
      "controlled": "all",
      "trigger": [
        "",
        "turn"
      ],
      "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": "attributes.hp.value",
            "value": "= 0"
          },
          "id": "mPGydceSszQ2YIQe"
        },
        {
          "action": "exists",
          "data": {
            "entity": "",
            "collection": "tokens",
            "count": "> 0",
            "none": ""
          },
          "id": "vfqSoBPgpnYcrG6Q"
        },
        {
          "action": "monks-tokenbar.requestroll",
          "data": {
            "entity": "",
            "request": "misc:death",
            "dc": null,
            "flavor": "",
            "rollmode": "roll",
            "silent": false,
            "fastforward": false,
            "usetokens": "all",
            "continue": "always"
          },
          "id": "DbCERIxeuLn0BzRD"
        }
      ],
      "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": 1600,
  "y": 2500,
  "id": "l2aLrYsTPE7HFXlg",
  "name": "Death_Save_Script",
  "visible": true,
  "img": null,
  "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

MATT 10.12

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