[Feature] Countdown Actions (#1302)

* Added countdown actions

* Added a CountdownAutomation setting to enable/disable countdown automation

* Added Looping

* Added characterSpotlight automation

* Countdown max as formula to enable random countdowns

* Updated compendiums with countdowns

* .

* Fixed lightmode colouration

* Raised system version

* Added automation for ActionRolls on countdowns

* Added automation on fear to countdowns

* Corrected attackAction countdown automation

* Added initial countdown upon creating a CountdownAction

* Improved ActionCountdown initial name to be 'Start Countdown'
This commit is contained in:
WBHarry 2025-11-20 11:46:00 +01:00 committed by GitHub
parent 0233979a9f
commit 207220ff7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
54 changed files with 1742 additions and 635 deletions

View file

@ -712,36 +712,14 @@
"name": "Your Life Is Mine",
"type": "feature",
"system": {
"description": "<p>Countdown (Loop 2d6). When the Necromancer has marked 6 or more of their HP, activate the countdown. When it triggers, deal <strong>2d10+6</strong> direct magic damage to a target within Close range. The Necromancer then <strong>clears a number of Stress or HP</strong> equal to the number of HP marked by the target from this attack.</p>",
"description": "<p><em>Countdown (Loop 2d6)</em>. When the Necromancer has marked 6 or more of their HP, activate the countdown. When it triggers, deal <strong>2d10+6</strong> direct magic damage to a target within Close range. The Necromancer then <strong>clears a number of Stress or HP</strong> equal to the number of HP marked by the target from this attack.</p>",
"resource": null,
"actions": {
"Gd70IsPckAFOw0ha": {
"type": "effect",
"_id": "Gd70IsPckAFOw0ha",
"systemPath": "actions",
"description": "<p><span style=\"color: rgb(239, 230, 216); font-family: Montserrat, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgba(24, 22, 46, 0.376); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none\">Countdown (Loop 2d6). When the Necromancer has marked 6 or more of their HP, activate the countdown.</span></p>",
"chatDisplay": true,
"actionType": "action",
"cost": [],
"uses": {
"value": null,
"max": "",
"recovery": null
},
"effects": [],
"target": {
"type": "any",
"amount": null
},
"name": "Countdown",
"img": "icons/magic/unholy/hand-claw-fire-green.webp",
"range": ""
},
"YzepYov9vEMcBPU1": {
"type": "damage",
"_id": "YzepYov9vEMcBPU1",
"systemPath": "actions",
"description": "<p>When the countdown triggers, deal <strong>2d10+6</strong> direct magic damage to a target within Close range. The Necromancer then <strong>clears a number of Stress or HP</strong> equal to the number of HP marked by the target from this attack.</p>",
"description": "<p>Deal <strong>2d10+6</strong> direct magic damage to a target within Close range. The Necromancer then <strong>clears a number of Stress or HP</strong> equal to the number of HP marked by the target from this attack.</p>",
"chatDisplay": true,
"actionType": "action",
"cost": [],
@ -789,6 +767,42 @@
"name": "Damage",
"img": "icons/magic/unholy/hand-claw-fire-green.webp",
"range": "close"
},
"LXhwkNCDFeUric8D": {
"type": "countdown",
"_id": "LXhwkNCDFeUric8D",
"systemPath": "actions",
"description": "<p><em>Countdown (Loop 2d6)</em>. When the Necromancer has marked 6 or more of their HP, activate the countdown.</p>",
"chatDisplay": true,
"originItem": {
"type": "itemCollection"
},
"actionType": "reaction",
"cost": [],
"uses": {
"value": null,
"max": "",
"recovery": null,
"consumeOnSuccess": false
},
"countdown": [
{
"name": "Your Life Is Mine",
"type": "encounter",
"defaultOwnership": -1,
"img": "icons/magic/unholy/hand-claw-fire-green.webp",
"progress": {
"looping": "looping",
"type": "actionRoll",
"max": "2d6",
"current": 1
},
"ownership": {}
}
],
"name": "Start Countdown",
"img": "icons/magic/unholy/hand-claw-fire-green.webp",
"range": ""
}
},
"originItemType": null,
@ -808,12 +822,12 @@
"compendiumSource": null,
"duplicateSource": null,
"exportSource": null,
"coreVersion": "13.346",
"coreVersion": "13.351",
"systemId": "daggerheart",
"systemVersion": "0.0.1",
"systemVersion": "1.2.4",
"createdTime": 1754132668836,
"modifiedTime": 1754135206850,
"lastModifiedBy": "MQSznptE5yLT7kj8"
"modifiedTime": 1763599179169,
"lastModifiedBy": "Q4RzhhaPfvLUzzbw"
},
"_key": "!actors.items!WPEOIGfclNJxWb87.FKcuCo0v2U7fVkqq"
}