ST Countdown - ironmonk88/monks-module-wiki GitHub Wiki
Increments or decrements the text displayed in a drawing. Set the text to whatever starting number you want, and use +
or -
to increase it by your desired value when triggered.
If
-
Alter
- Attribute:
text
- Value:
+
or-
a number.- If you need text in the drawing in addition to the number, use this in the value;
="Text Here " + (Number("{{entity.text}}".match(/\d+/)[0]) + 1)
.
- If you need text in the drawing in addition to the number, use this in the value;
- Value:
- Attribute:
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
},
"x": 1600,
"y": 1100,
"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": false,
"restriction": "all",
"controlled": "all",
"trigger": [
"enter"
],
"allowpaused": false,
"usealpha": false,
"pointer": false,
"pertoken": false,
"minrequired": 0,
"chance": 100,
"fileindex": 0,
"actions": [
{
"action": "alter",
"data": {
"entity": {
"id": "Scene.5QyCD0ps9307nFvN.Drawing.wMzuRbkV4dXDsK5R",
"name": "Drawing: wMzuRbkV4dXDsK5R"
},
"attribute": "text",
"value": "- 1",
"chatMessage": false,
"rollmode": "roll"
},
"id": "qR7oxKj5irFgPSLj"
}
],
"files": []
},
"exportSource": {
"world": "matt-test",
"system": "dnd5e",
"coreVersion": "10.291",
"systemVersion": "2.1.4"
}
},
"hidden": false,
"locked": false,
"id": "9R3tspKF8s1WAuLn",
"name": "Countdown",
"visible": true,
"img": null,
"thumbnail": "modules/monks-active-tiles/img/cube.svg"
}
MATT 10.15