ST Request Roll Count Success and Failures - ironmonk88/monks-module-wiki GitHub Wiki
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.
- Check Entity Count
- Delay Actions
-
Filter by Attributes
- Attribute:
flags.monks-active-tiles.variables.Valuename
- Attribute:
- Landing
- Request Roll
- Redirect Request Results
- Set Active Tiles Variable
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": {
"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": "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": "attribute",
"data": {
"entity": {
"id": "tile",
"name": "This Tile"
},
"collection": "tokens",
"attribute": "flags.monks-active-tiles.variables.Success",
"value": "< 3"
},
"id": "oDms5RWOumLAVtR0"
},
{
"action": "exists",
"data": {
"entity": {
"id": "previous",
"name": "Current tokens"
},
"collection": "tiles",
"count": "> 0",
"none": "Final_Success"
},
"id": "DpqEdgmX1jIiLNVJ"
},
{
"action": "chatmessage",
"data": {
"flavor": "",
"text": "{{variable.Success}} success.",
"entity": "",
"incharacter": false,
"chatbubble": "true",
"for": "all",
"language": ""
},
"id": "CDdsMEquDRC5OnzI"
},
{
"action": "anchor",
"data": {
"tag": "Final_Success",
"stop": true
},
"id": "P03SgK9mtGWKAGV4"
},
{
"action": "chatmessage",
"data": {
"flavor": "",
"text": "Success Stuff",
"entity": "",
"incharacter": false,
"chatbubble": "true",
"for": "all",
"language": ""
},
"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": "attribute",
"data": {
"entity": {
"id": "tile",
"name": "This Tile"
},
"collection": "tokens",
"attribute": "flags.monks-active-tiles.variables.Failure",
"value": "< 3"
},
"id": "nHlOskX9AsjdrfBc"
},
{
"action": "exists",
"data": {
"entity": {
"id": "previous",
"name": "Current tokens"
},
"collection": "tiles",
"count": "> 0",
"none": "Final_Failure"
},
"id": "MSnlkh2iLCH3askG"
},
{
"action": "chatmessage",
"data": {
"flavor": "",
"text": "{{variable.Failure}} Failure.",
"entity": "",
"incharacter": false,
"chatbubble": "true",
"for": "all",
"language": ""
},
"id": "pfKWadxXdKjFZAaX"
},
{
"action": "anchor",
"data": {
"tag": "Final_Failure",
"stop": true
},
"id": "KHj6OQw5TbZg8zWH"
},
{
"action": "chatmessage",
"data": {
"flavor": "",
"text": "Failure Stuff",
"entity": "",
"incharacter": false,
"chatbubble": "true",
"for": "all",
"language": ""
},
"id": "rgfNZgA7XvtClZq2"
}
],
"files": [],
"variables": {
"Failure": 3
}
},
"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,
"name": "Request_Roll_Count_Success_Failures",
"visible": true,
"img": null,
"id": "AD1f3fc0augDkMEa",
"thumbnail": "modules/monks-active-tiles/img/cube.svg"
}
MATT 11.11