- Joined
- Jun 22, 2004
- Messages
- 109
hey guys, ive been busy trying to make my abilities, n e ways i made an acid rain ability, basically the ability creates dummy units attacking ground in random spots in a region, then its supposed to make another dummy at that specific point, this second dummy is supposed to cast shadow strike on any nearby units withing 110 range. but it doesnt work, can n e 1 help me out?
Heres the code:
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Acid Rain
Actions
Region - Center Acid rain <gen> on (Target point of ability being cast)
For each (Integer B) from 1 to 60, do (Actions)
Loop - Actions
Unit - Create 1 Acid Rain Projectile for (Owner of (Casting unit)) at (Random point in Acid rain <gen>) facing Default building facing degrees
Unit - Order (Last created unit) to Attack Ground (Random point in Acid rain <gen>)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Wait 0.30 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(Attack Ground))
Then - Actions
Unit Group - Pick every unit in (Units within 110.00 of (Target point of issued order) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
Loop - Actions
Unit - Create 1 Acid Rain Dummy for (Owner of (Casting unit)) at (Target point of issued order) facing (Position of (Triggering unit))
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Picked unit)
Else - Actions
Do nothing
Heres the code:
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Acid Rain
Actions
Region - Center Acid rain <gen> on (Target point of ability being cast)
For each (Integer B) from 1 to 60, do (Actions)
Loop - Actions
Unit - Create 1 Acid Rain Projectile for (Owner of (Casting unit)) at (Random point in Acid rain <gen>) facing Default building facing degrees
Unit - Order (Last created unit) to Attack Ground (Random point in Acid rain <gen>)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Wait 0.30 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(Attack Ground))
Then - Actions
Unit Group - Pick every unit in (Units within 110.00 of (Target point of issued order) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)) and do (Actions)
Loop - Actions
Unit - Create 1 Acid Rain Dummy for (Owner of (Casting unit)) at (Target point of issued order) facing (Position of (Triggering unit))
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Picked unit)
Else - Actions
Do nothing