ST Encounter Logger - ironmonk88/monks-module-wiki GitHub Wiki
When combat ends, if a group of tokens has been reduced to 0 hitpoints, this will log that event to the targeted journal. This setup requires you to Tag the tokens in each encounter with a unique Tag.
- When:
Combat End
- Activate/Deactivate
- Check Entity Count
-
Filter by Attributes
- Attribute:
attributes.hp.value
(if your system uses this)- Value:
> 0
- Value:
- Attribute:
- Write to Journal
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": 1300,
"y": 1800,
"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": [
"",
"combatend"
],
"allowpaused": false,
"usealpha": false,
"pointer": false,
"pertoken": false,
"minrequired": 0,
"chance": 100,
"fileindex": 0,
"actions": [
{
"action": "attribute",
"data": {
"entity": {
"id": "tagger:Creature_Tag_Here",
"match": "all",
"scene": "_active",
"name": "<i class=\"fas fa-tag fa-sm\"></i> Creature_Tag_Here"
},
"collection": "tokens",
"attribute": "attributes.hp.value",
"value": "> 0"
},
"id": "EdrhOlmbxMIiNYl6"
},
{
"action": "exists",
"data": {
"entity": "",
"collection": "tokens",
"count": "= 0",
"none": ""
},
"id": "kOi8TEjLiU1e68iW"
},
{
"action": "append",
"data": {
"entity": {
"id": "JournalEntry.hF4i71qn2UvU6OGE",
"name": "Log"
},
"page": "nXC4urERqhc5fhzv",
"create": false,
"createname": "",
"text": "<p>{{timestamp}} Creatures defeated.",
"append": "append"
},
"id": "ESxLgf0zFLYft5Wc"
},
{
"action": "activate",
"data": {
"entity": "",
"activate": "deactivate"
},
"id": "f9oR10ZECoEOzXY6"
}
],
"files": []
},
"exportSource": {
"world": "matt-test",
"system": "dnd5e",
"coreVersion": "10.291",
"systemVersion": "2.1.5"
}
},
"overhead": false,
"roof": false,
"occlusion": {
"mode": 1,
"alpha": 0,
"radius": null
},
"video": {
"loop": true,
"autoplay": true,
"volume": 0
},
"hidden": false,
"locked": false,
"id": "yGvMSBUG2NvQX96g",
"name": "Encounter_Log",
"visible": true,
"img": null,
"thumbnail": "modules/monks-active-tiles/img/cube.svg"
}
MATT 10.12