- Joined
- Sep 17, 2005
- Messages
- 38
I'm trying to make a spell area movement speed and attack speed bonus, just like bloodlust but area effect. And i'm stuck on the trigger. Help me please.
This is my trigger, where did i go wrong?
Haste
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Haste
(Level of Haste for (Triggering unit)) Greater than 0
Actions
Unit Group - Pick every unit in (Units within 600.00 of (Position of (Casting unit))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(((Picked unit) is A structure) Equal to False) and ((((Picked unit) is Mechanical) Equal to False) and (((Picked unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True))
Then - Actions
Unit Group - Add (Picked unit) to HasteGroup
Unit Group - Add (Triggering unit) to HasteGroup
Unit - Create (Number of units in (Units within 600.00 of (Position of (Casting unit)) matching (((Picked unit) is in HasteGroup) Equal to True))) Dummy for (Picked player) at (Position of (Picked unit)) facing 0.00 degrees
Unit - Add Bloodlust (Haste) to (Last created unit)
Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Picked unit)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Else - Actions
This is my trigger, where did i go wrong?
Haste
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Haste
(Level of Haste for (Triggering unit)) Greater than 0
Actions
Unit Group - Pick every unit in (Units within 600.00 of (Position of (Casting unit))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(((Picked unit) is A structure) Equal to False) and ((((Picked unit) is Mechanical) Equal to False) and (((Picked unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True))
Then - Actions
Unit Group - Add (Picked unit) to HasteGroup
Unit Group - Add (Triggering unit) to HasteGroup
Unit - Create (Number of units in (Units within 600.00 of (Position of (Casting unit)) matching (((Picked unit) is in HasteGroup) Equal to True))) Dummy for (Picked player) at (Position of (Picked unit)) facing 0.00 degrees
Unit - Add Bloodlust (Haste) to (Last created unit)
Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Picked unit)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Else - Actions