- Joined
- May 7, 2007
- Messages
- 278
I'm trying to create a custom gui spell called Black Hole for my hero arena. What it does, is it summons a unit at the target point, and every second moves every unit within 300 range into the black hole, however, this isnt working. What I have done, is created 2 different triggers, and spells, (one spell to summon the black hole, one to bring all units into the black hole)
Here are the triggers:
This is the trigger that makes the dummy unit cast the spell:
EDIT: Solved. Can't have Locust on the unit in order to be able to cast spells.
Here are the triggers:
-
Dark Vortex
-
Events
- Unit - A unit Begins casting an ability
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) Equal to shadow void dummy cast
-
Then - Actions
- Unit Group - Pick every unit in (Units within 300.00 of (Position of (Casting unit)) matching (((Picked unit) is A structure) Equal to False)) and do (Unit - Move (Picked unit) instantly to (Position of (Casting unit)))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
This is the trigger that makes the dummy unit cast the spell:
-
CastDark
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Dummy [Black Hole))) and do (Actions)
-
Loop - Actions
- Unit - Order (Picked unit) to Orc Tauren Chieftain - War Stomp
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Dummy [Black Hole))) and do (Actions)
-
Events
EDIT: Solved. Can't have Locust on the unit in order to be able to cast spells.
Last edited: