The Ability:
Sprays enemy units with quills dealing 60 damage in a 625 AoE. Deals 30 extra damage for every time the unit was struck by a quill in the last 14 seconds.
Other Information:
Originally I couldn't exactly figure out how to go about making the trigger work in general; thankfully, a kind fellow by the name of 'Accname' helped me figure out where to start. Unfortunately... I'm still having issues getting the stacking damage to reset. I've tried everything and can't quite get the reset working. I'm not quite sure what i've been doing wrong; my script looks a little like this (It's GUI)
Variables used in trigger:
'damage' controls the amount of damage dealt for ease of access
'timeshit' controls the amount of times targets were hit by the spell, allowing the stacking damage
'timer' controls the timer which I assumed would be the proper way to keep track of the time, but I am probably missing a crucial system or something to make it alot less finicky.
Any help is greatly appreciated.
Sprays enemy units with quills dealing 60 damage in a 625 AoE. Deals 30 extra damage for every time the unit was struck by a quill in the last 14 seconds.
Other Information:
Originally I couldn't exactly figure out how to go about making the trigger work in general; thankfully, a kind fellow by the name of 'Accname' helped me figure out where to start. Unfortunately... I'm still having issues getting the stacking damage to reset. I've tried everything and can't quite get the reset working. I'm not quite sure what i've been doing wrong; my script looks a little like this (It's GUI)
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Fan of Knives
- Actions
-
Unit Group - Pick every unit in (Units within 650 of (Position of (Triggering unit)) and do (Actions)
-
If (All conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Owner of (Picked unit)) is an enemy of Player 1 (Red)) Equal to True
- ((Picked unit) is A structure) Equal to False
-
Then - Actions
- Set damage = (40.00 + (30.00 x (Real(timeshit[(Custom value of (Picked unit))
- Unit - Cause (Triggering unit) to damage (Picked unit), dealing damage damage of attack type Hero and damage type Normal
- Set timeshit[(Custom value of (Picked unit))] = (timeshit[(Custom value of (Picked unit))] + 1)
- Countdown Timer - Start timer[(Custom value of (Picked unit))] as a One-shot timer that will expire in 14.00 seconds
- Wait until ((Remaining time of timer[(Custom value of (Picked unit))] Less than or equal to 0), checking every 1.00 seconds
- Set timeshit[(Custom value of (Picked unit))]=0
- Else - Actions
-
If - Conditions
-
If (All conditions are True) then do (Then Actions) else do (Else Actions)
Variables used in trigger:
'damage' controls the amount of damage dealt for ease of access
'timeshit' controls the amount of times targets were hit by the spell, allowing the stacking damage
'timer' controls the timer which I assumed would be the proper way to keep track of the time, but I am probably missing a crucial system or something to make it alot less finicky.
Any help is greatly appreciated.
Last edited: