ST Random Gravestone Generator - ironmonk88/monks-module-wiki GitHub Wiki

Random Gravestone Generator

When interacted with, it randomly generates a person from one of your roll tables and manner of death from another; then saves the inscription for continuity.

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": [
        "Gravestone_{#}",
        "Gravestone"
      ]
    },
    "monks-active-tiles": {
      "active": true,
      "record": false,
      "restriction": "all",
      "controlled": "all",
      "trigger": [
        "",
        "dblclick"
      ],
      "allowpaused": false,
      "usealpha": false,
      "pointer": false,
      "pertoken": false,
      "minrequired": 0,
      "chance": 100,
      "fileindex": 0,
      "actions": [
        {
          "action": "distance",
          "data": {
            "entity": "",
            "measure": "lte",
            "distance": {
              "value": 1,
              "var": "sq"
            },
            "from": "edge",
            "continue": "within"
          },
          "id": "zn70eCYxD7A9CLFo"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "_gm",
            "stop": false
          },
          "id": "JRKNygtY879NvDCN"
        },
        {
          "action": "attribute",
          "data": {
            "entity": {
              "id": "tile",
              "name": "This Tile"
            },
            "collection": "tokens",
            "attribute": "flags.monks-active-tiles.variables.Triggered",
            "value": "< 1"
          },
          "id": "LEqw89hcHtaFxRWd"
        },
        {
          "action": "exists",
          "data": {
            "entity": {
              "id": "previous",
              "name": "Current tokens"
            },
            "collection": "tiles",
            "count": "> 0",
            "none": "Inscription"
          },
          "id": "1CEjKNUpGfoAjChp"
        },
        {
          "action": "setvariable",
          "data": {
            "entity": "",
            "name": "Triggered",
            "value": "= 1"
          },
          "id": "bBYoAUQBSQri3E2O"
        },
        {
          "action": "rolltable",
          "data": {
            "rolltableid": "Compendium.monks-enhanced-journal.person-names.b1UKEsT1IZREtBqt",
            "quantity": 1,
            "rollmode": "roll",
            "chatmessage": false,
            "reset": true,
            "roll": false
          },
          "id": "HTn7WuBjBTRUDHsK"
        },
        {
          "action": "setvariable",
          "data": {
            "entity": "",
            "name": "Person",
            "value": "= \"{{{value.text.[0]}}}\""
          },
          "id": "Az7G20B0lAbJZz6L"
        },
        {
          "action": "rolltable",
          "data": {
            "rolltableid": "RollTable.sY6xE9RgO5FipMkg",
            "quantity": 1,
            "rollmode": "roll",
            "chatmessage": false,
            "reset": true,
            "roll": false
          },
          "id": "Djsm3IKFmmDkXi3r"
        },
        {
          "action": "setvariable",
          "data": {
            "entity": "",
            "name": "Death",
            "value": "= \"{{{value.text.[0]}}}\""
          },
          "id": "hq6btzXFknOo7mWt"
        },
        {
          "action": "anchor",
          "data": {
            "tag": "Inscription",
            "stop": false
          },
          "id": "IzPEPauGjuH7HxdF"
        },
        {
          "action": "dialog",
          "data": {
            "dialogtype": "alert",
            "title": "",
            "for": "token",
            "closeNo": true,
            "content": "Here lies {{variable.Person}}, who died from {{variable.Death}}.",
            "file": "",
            "options": "",
            "width": "",
            "height": "",
            "yes": "",
            "no": "",
            "buttons": []
          },
          "id": "7TL8O6YSIa5Osjq0"
        }
      ],
      "files": [],
      "variables": {
        "Triggered": 1,
        "Person": "Hugo",
        "Death": "an unplanned boulder"
      },
      "cooldown": null
    },
    "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": 5400,
  "y": 6200,
  "id": "oknaAmmRAK5Jt1FV",
  "name": "Random_Gravestone_Generator",
  "visible": true,
  "img": null,
  "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

MATT 11.11

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