Hello, I'm trying to create a spell that picks units within a designated range of a target and does damage
I am very new to unit groups and "picked unit" function and i'm not really sure how it all works tbh.
this is what i have so far, but it doesn't Deal 4 damage every 0.2 seconds to units within 400 range of the caster (who is able to move and cast)
CASTING;
THE EFFECT; (initially off)
P.S. I intend to add other things to the damage and i'm not just trying to make immolation or something similar.
Thanks!
I am very new to unit groups and "picked unit" function and i'm not really sure how it all works tbh.
this is what i have so far, but it doesn't Deal 4 damage every 0.2 seconds to units within 400 range of the caster (who is able to move and cast)
CASTING;
Trigger:
- Eon Blue Apocalypse Cast
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Eon Blue Apocalypse [Tool]
- Actions
- Set EB_Caster = (Triggering unit)
- Trigger - Turn on Eon Blue Apocalypse Effect <gen>
- Wait 5.00 seconds
- Trigger - Turn off Eon Blue Apocalypse Effect <gen>
- Events
THE EFFECT; (initially off)
Trigger:
- Eon Blue Apocalypse Effect
- Events
- Time - Every 0.20 seconds of game time
- Conditions
- (EB_Caster is alive) Equal to True
- Actions
- Unit Group - Pick every unit in (Units within 300.00 of (Position of EB_Caster) matching (((Triggering unit) is alive) Equal to True)) and do (Actions)
- Loop - Actions
- Unit - Cause EB_Caster to damage (Picked unit), dealing 4.00 damage of attack type Spells and damage type Unknown
- Loop - Actions
- Unit Group - Pick every unit in (Units within 300.00 of (Position of EB_Caster) matching (((Triggering unit) is alive) Equal to True)) and do (Actions)
- Events
P.S. I intend to add other things to the damage and i'm not just trying to make immolation or something similar.
Thanks!