diff options
author | Your Name <you@example.com> | 2022-02-18 16:47:53 -0500 |
---|---|---|
committer | Your Name <you@example.com> | 2022-02-18 16:47:53 -0500 |
commit | 947d83c59ea86615e3a81a2ec122d843b5eceee9 (patch) | |
tree | 158f365d2d50b9e4e2b3fbe6a5d8c4cceb6d99cd /features/berserk.json | |
parent | d0e356d09e30a11c1e072415a5088f829d5c0a04 (diff) | |
download | dmtool-947d83c59ea86615e3a81a2ec122d843b5eceee9.tar.gz dmtool-947d83c59ea86615e3a81a2ec122d843b5eceee9.tar.bz2 dmtool-947d83c59ea86615e3a81a2ec122d843b5eceee9.zip |
More features work
Diffstat (limited to 'features/berserk.json')
-rw-r--r-- | features/berserk.json | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/features/berserk.json b/features/berserk.json new file mode 100644 index 0000000..c0f0c8b --- /dev/null +++ b/features/berserk.json @@ -0,0 +1,22 @@ +{ + "name": "berserk", + "text": "Whenever the {NAME} starts its turn with {V0} hit points or fewer, roll a d6. On a 6, the {NAME} goes berserk. On each of its turns while berserk, the {NAME} attacks the nearest creature it can see. If no creature is near enough to move to and attack, the {NAME} attacks an object, with preference for an object smaller than itself. Once the {NAME} goes berserk, it continues to do so until it is destroyed or regains all its hit points.", + "subfeatures": [ + { + "trigger": [ "N start of turn", "self" ], + "conditions": [ "N has COND X hp", "self", "<=", "V0" ], + "effects": [{ + "target": "self", + "effect": [ "Set property PROPERTY to X", "Is berserk", "True" ] + }] + }, + { + "trigger": [ "N start of turn", "self" ], + "conditions": [ "N has COND X hp", "self", "==", "MAXHP" ], + "effects": [{ + "target": "self", + "effect": [ "Set property PROPERTY to X", "Is berserk", "False" ] + }] + } + ] +} |