ST Alternating Triggers - ironmonk88/monks-module-wiki GitHub Wiki
Runs different action threads depending on how many times the tile has been triggered.
Optional: Add a Reset Tile Trigger History in the Even
landing thread to reset the history so it doesn't bloat up your data.
- History:
On
-
Check Tile Trigger Count
- Trigger Count
% 2 == 0
- Trigger Count
- Landing
The Scrolling Texts 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,
"overhead": false,
"roof": false,
"occlusion": {
"mode": 1,
"alpha": 0,
"radius": null
},
"video": {
"loop": true,
"autoplay": true,
"volume": 0
},
"flags": {
"monks-active-tiles": {
"active": true,
"record": true,
"restriction": "all",
"controlled": "all",
"trigger": [
"enter"
],
"allowpaused": false,
"usealpha": false,
"pointer": false,
"pertoken": false,
"minrequired": 0,
"chance": 100,
"fileindex": 0,
"actions": [
{
"action": "triggercount",
"data": {
"count": "% 2 == 0",
"unique": false,
"none": "Odd"
},
"id": "XkgoGDwu4cRFe9Mo"
},
{
"action": "anchor",
"data": {
"tag": "Even",
"stop": false
},
"id": "ZtJ4x31t59rcIRWr"
},
{
"action": "chatmessage",
"data": {
"flavor": "",
"text": "Even",
"entity": "",
"incharacter": false,
"chatbubble": false,
"for": "all",
"language": ""
},
"id": "ZM3dRyNp3l9QdSmo"
},
{
"action": "anchor",
"data": {
"tag": "Odd",
"stop": true
},
"id": "h0LHZhzEJi6vE5kt"
},
{
"action": "chatmessage",
"data": {
"flavor": "",
"text": "Odd",
"entity": "",
"incharacter": false,
"chatbubble": false,
"for": "all",
"language": ""
},
"id": "K7oppchZcXSFEWdc"
}
],
"files": []
},
"exportSource": {
"world": "matt-test",
"system": "dnd5e",
"coreVersion": "10.291",
"systemVersion": "2.1.5"
}
},
"hidden": false,
"locked": false,
"id": "x4hRVQj9xgPsgewG",
"name": "Alternating_Triggers",
"visible": true,
"img": null,
"thumbnail": "modules/monks-active-tiles/img/cube.svg"
}
MATT 10.12