ST Request Roll Count Success and Failures - ironmonk108/monks-module-wiki GitHub Wiki

Request Roll, Count Success & Failures

Requests a roll from the triggering token, then increments the success or failure count based on the result. The tile includes an additional filter to branch depending on which count is reached first.

Setup Required

Actions

The Chat Message are for informative purposes only.

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": {},
        "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": "monks-tokenbar.requestroll",
                    "data": {
                        "entity": {
                            "id": "token",
                            "name": "Triggering Token"
                        },
                        "request": "skill:thievery",
                        "dc": 100,
                        "flavor": "",
                        "rollmode": "roll",
                        "silent": true,
                        "fastforward": true,
                        "usetokens": "all",
                        "continue": "always"
                    },
                    "id": "tsgqXTk9jfeB73z6"
                },
                {
                    "action": "monks-tokenbar.filterrequest",
                    "data": {
                        "passed": "Success",
                        "failed": "Failure",
                        "resume": ""
                    },
                    "id": "DTn0y2t2qTHx3GFe"
                },
                {
                    "action": "anchor",
                    "data": {
                        "tag": "Success",
                        "stop": true
                    },
                    "id": "75d4vhOctaJvlLys"
                },
                {
                    "action": "setvariable",
                    "data": {
                        "entity": "",
                        "name": "Success",
                        "value": "{{variable.Success}} + 1"
                    },
                    "id": "NrGua6Y6osmng3UJ"
                },
                {
                    "action": "delay",
                    "data": {
                        "delay": "0.1"
                    },
                    "id": "tNz5ciWTw4Tuwfqy"
                },
                {
                    "action": "checkvariable",
                    "data": {
                        "entity": {
                            "id": "tile",
                            "name": "This Tile"
                        },
                        "type": "all",
                        "name": "Success",
                        "value": "< 3",
                        "fail": "Final_Success"
                    },
                    "id": "2mEBxNPWMb5SzRjz"
                },
                {
                    "action": "chatmessage",
                    "data": {
                        "flavor": "",
                        "text": "{{variable.Success}} success.",
                        "entity": "",
                        "incharacter": false,
                        "chatbubble": "true",
                        "language": "",
                        "showto": "everyone"
                    },
                    "id": "CDdsMEquDRC5OnzI"
                },
                {
                    "action": "anchor",
                    "data": {
                        "tag": "Final_Success",
                        "stop": true
                    },
                    "id": "P03SgK9mtGWKAGV4"
                },
                {
                    "action": "chatmessage",
                    "data": {
                        "flavor": "",
                        "text": "Success Stuff",
                        "entity": "",
                        "incharacter": false,
                        "chatbubble": "true",
                        "language": "",
                        "showto": "everyone"
                    },
                    "id": "Q1dhSw7g75mS2pUv"
                },
                {
                    "action": "anchor",
                    "data": {
                        "tag": "Failure",
                        "stop": true
                    },
                    "id": "w4EbI8qf6B2gxDpe"
                },
                {
                    "action": "setvariable",
                    "data": {
                        "entity": "",
                        "name": "Failure",
                        "value": "{{variable.Failure}} + 1"
                    },
                    "id": "q6bn9sS1aUPhmY5t"
                },
                {
                    "action": "delay",
                    "data": {
                        "delay": "0.1"
                    },
                    "id": "ObZJkM8MNVOgqNlY"
                },
                {
                    "action": "checkvariable",
                    "data": {
                        "entity": {
                            "id": "tile",
                            "name": "This Tile"
                        },
                        "type": "all",
                        "name": "Failure",
                        "value": "< 3",
                        "fail": "Final_Failure"
                    },
                    "id": "xyP3zKMG6dvr82Tn"
                },
                {
                    "action": "chatmessage",
                    "data": {
                        "flavor": "",
                        "text": "{{variable.Failure}} Failure.",
                        "entity": "",
                        "incharacter": false,
                        "chatbubble": "true",
                        "language": "",
                        "showto": "everyone"
                    },
                    "id": "pfKWadxXdKjFZAaX"
                },
                {
                    "action": "anchor",
                    "data": {
                        "tag": "Final_Failure",
                        "stop": true
                    },
                    "id": "KHj6OQw5TbZg8zWH"
                },
                {
                    "action": "chatmessage",
                    "data": {
                        "flavor": "",
                        "text": "Failure Stuff",
                        "entity": "",
                        "incharacter": false,
                        "chatbubble": "true",
                        "language": "",
                        "showto": "everyone"
                    },
                    "id": "rgfNZgA7XvtClZq2"
                }
            ],
            "files": [],
            "variables": {
                "Failure": 3
            },
            "vision": false,
            "cooldown": null,
            "name": ""
        }
    },
    "occlusion": {
        "mode": 1,
        "alpha": 0
    },
    "video": {
        "loop": true,
        "autoplay": true,
        "volume": 0
    },
    "hidden": false,
    "locked": false,
    "sort": 203,
    "restrictions": {
        "light": false,
        "weather": false
    },
    "name": "Request_Roll_Count_Success_Failure_v13.01",
    "visible": true,
    "img": null,
    "thumbnail": "modules/monks-active-tiles/img/cube.svg"
}

Page Last Updated

  • Foundry 13.351
  • MATT 13.06
⚠️ **GitHub.com Fallback** ⚠️