ST Random Gravestone Generator - ironmonk108/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": {
        "scaleX": 1,
        "scaleY": 1,
        "src": null,
        "tint": "#ffffff",
        "offsetX": 0,
        "offsetY": 0,
        "rotation": 0,
        "anchorX": 0.5,
        "anchorY": 0.5,
        "fit": "fill",
        "alphaThreshold": 0.75
    },
    "width": 100,
    "height": 100,
    "rotation": 0,
    "elevation": 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": {
                            "id": "token",
                            "name": "Triggering Token"
                        },
                        "measure": "lte",
                        "distance": 1,
                        "from": "edge",
                        "continue": "within",
                        "unit": "sq"
                    },
                    "id": "zn70eCYxD7A9CLFo"
                },
                {
                    "action": "anchor",
                    "data": {
                        "tag": "_gm",
                        "stop": false
                    },
                    "id": "JRKNygtY879NvDCN"
                },
                {
                    "action": "checkvariable",
                    "data": {
                        "entity": {
                            "id": "tile",
                            "name": "This Tile"
                        },
                        "type": "all",
                        "name": "Triggered",
                        "value": "< 1",
                        "fail": "Inscription"
                    },
                    "id": "LSSLJOX2rk42tknv"
                },
                {
                    "action": "setvariable",
                    "data": {
                        "entity": "",
                        "name": "Triggered",
                        "value": "= 1"
                    },
                    "id": "bBYoAUQBSQri3E2O"
                },
                {
                    "action": "rolltable",
                    "data": {
                        "rolltableid": {
                            "id": "RollTable.NH5VriVX7bhhzzW0",
                            "name": "Names"
                        },
                        "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": {
                            "id": "RollTable.svOGacUWezZhNBP3",
                            "name": "Causes of Death"
                        },
                        "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": [],
            "cooldown": null,
            "name": "",
            "vision": false
        }
    },
    "occlusion": {
        "mode": 1,
        "alpha": 0
    },
    "video": {
        "loop": true,
        "autoplay": true,
        "volume": 0
    },
    "hidden": false,
    "locked": false,
    "sort": 101,
    "restrictions": {
        "light": false,
        "weather": false
    },
    "name": "Random_Gravestone_Generator_v13.02",
    "visible": true,
    "img": null,
    "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

  • Foundry 13.348
  • MATT 13.05
⚠️ **GitHub.com Fallback** ⚠️