From 5937d893da5656be3f486c863ae54e08bbe66579 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 9 Aug 2022 16:57:53 -0400 Subject: Added generic items, worked on features --- features/charge.json | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'features/charge.json') diff --git a/features/charge.json b/features/charge.json index 646de65..2941fa3 100644 --- a/features/charge.json +++ b/features/charge.json @@ -1,14 +1,24 @@ { - "name": "charge (feature)", - "text": "If the unicorn moves at least 20 feet straight toward a target and then hits it with a horn attack on the same turn, the target takes an extra 9 (2d8) piercing damage. If the target is a creature, it must succeed on a DC 15 Strength saving throw or be knocked prone.", + "name": "charge", + "text": "If the {NAME} moves at least {V0} feet straight toward a target and then hits it with a {V1} attack on the same turn, the target takes an extra {V2}d{V3} {V4} damage. If the target is a creature, it must succeed on a DC {(8,PROF,STR,+,+)} Strength saving throw or be knocked prone.", "subfeatures": [ { - "trigger": [], - "conditions": [], + "trigger": [ "N hits N", "self", "any" ], + "conditions": [ + ["N moved X distance straight toward N", "self", "(V0)", "any" ], + [ "N made attack ATTACK", "(V1)" ] + ], "effects": [{ - "target": "", - "effect": [], - "duration": "" + "target": "any", + "effect": [ "Inflict XdX TYPE damage", "(V2)", "(V3)", "(V4)" ] + }, + { + "target": "any", + "effect conditions": [ + [ "N == N", "any.OBJECT_TYPE", -1 ], + [ "N fails dc X ABILITY save by at least X", "any", "(8,PROF,STR,+,+)", "strength", 0 ] + ], + "effect": [ "set N = N", "any.PRONE", 1 ] }] } ] -- cgit v1.2.3