ST Elevation Toggle - ironmonk88/monks-module-wiki GitHub Wiki
When triggered, toggles the triggering token's elevation between the two values.
-
Alter
- Attribute:
elevation
- Value:
= ({{entity.elevation}} || 0) == 0 ? 10 : 0
- 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": 2500,
"y": 1700,
"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": [
"enter"
],
"allowpaused": false,
"usealpha": false,
"pointer": false,
"pertoken": false,
"minrequired": 0,
"chance": 100,
"fileindex": 0,
"actions": [
{
"action": "alter",
"data": {
"entity": {
"id": "token",
"name": "Triggering Token"
},
"attribute": "elevation",
"value": "= ({{entity.elevation}} || 0) == 0 ? 10 : 0",
"chatMessage": false,
"rollmode": "roll"
},
"id": "mfYiHy2oRALK5rhj"
}
],
"files": []
},
"exportSource": {
"world": "matt-test",
"system": "dnd5e",
"coreVersion": "10.291",
"systemVersion": "2.1.3"
}
},
"overhead": false,
"roof": false,
"occlusion": {
"mode": 1,
"alpha": 0,
"radius": null
},
"video": {
"loop": true,
"autoplay": true,
"volume": 0
},
"hidden": false,
"locked": false,
"id": "RFIJt7IuAQEH3Add",
"name": "Elevation Toggle",
"visible": true,
"img": null,
"thumbnail": "modules/monks-active-tiles/img/cube.svg"
}
You can now use the Elevation action instead of Alter. I just don't want to replace the example at the moment. -Crow
MATT 10.15