- Joined
- Nov 7, 2005
- Messages
- 6
I'm trying to get a spell to create a spell that creates a dummy unit in the center, and then shoots out bolts(some Finger of Deaths) that create dummy units that shoot out bolts that create more dummy units that shoot out MORE bolts, etc. At the moment the spell effect does not end, and does no damage.
Code:
Soul Tear Nova 1
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Soul Tear Nova
Actions
Set Caster = (Casting unit)
Unit - Create 1 Dummy Unit for Player 1 (Red) at (Position of (Triggering unit)) facing 0.00 degrees
Trigger - Turn on Soul Tear Nova 2 <gen>
Soul Tear Nova 2
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Region centered at (Position of Caster) with size (500.00, 500.00)) matching ((Unit-type of (Picked unit)) Equal to Dummy Unit)) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Human Mortar Team - Flare (Random point in (Region centered at (Position of Caster) with size (500.00, 500.00)))
Soul Tear Nova 3
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Flare
Actions
Lightning - Create a Finger of Death lightning effect from source (Position of (Triggering unit)) to target (Target point of ability being cast)
Lightning - Create a Finger of Death lightning effect from source (Position of (Triggering unit)) to target (Target point of ability being cast)
Lightning - Create a Finger of Death lightning effect from source (Position of (Triggering unit)) to target (Target point of ability being cast)
Lightning - Create a Finger of Death lightning effect from source (Position of (Triggering unit)) to target (Target point of ability being cast)
Lightning - Create a Finger of Death lightning effect from source (Position of (Triggering unit)) to target (Target point of ability being cast)