- Joined
- Oct 4, 2011
- Messages
- 226
Hi this ability is based on thunderclap, what i want to do with it is have a wide 1000 aoe effect, and do some base damage (easy) and then create a unit for the casting unit at the point of every enemy caught in the aoe, the summoned unit then is ordered to attack the unit it was summoned for. but then my trigger to remove the units summoned will not work and i don't know how to fix this. Thanks for any help.
-
SKELLYULT
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Ultimate
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Ultimate for (Casting unit)) Equal to 1
-
Then - Actions
- Set SKELLYULT_UNITG = (Units within 1000.00 of (Position of (Casting unit)) matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is dead) Equal to False))))
-
Unit Group - Pick every unit in SKELLYULT_UNITG and do (Actions)
-
Loop - Actions
- Unit - Cause (Casting unit) to damage (Picked unit), dealing 50.00 damage of attack type Spells and damage type Mind
- Unit - Create 1 Rifleman for (Owner of (Casting unit)) at (Position of (Picked unit)) facing (Angle from (Position of (Last created unit)) to (Position of (Picked unit))) degrees
- Unit Group - Add (Last created unit) to SkellyUltSummoned_UnitG
- Unit - Order (Last created unit) to Attack (Picked unit)
- Wait 1.75 seconds
-
Unit Group - Pick every unit in SkellyUltSummoned_UnitG and do (Actions)
-
Loop - Actions
- Unit - Remove (Picked unit) from the game
-
Loop - Actions
- Custom script: call DestroyGroup(udg_SKELLYULT_UNITG)
- Custom script: call DestroyGroup(udg_SkellyUltSummoned_UnitG)
-
Loop - Actions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events