| 12-19-2005, 07:38 PM | #1 |
I tried to make a spell to bind all nearby enemy units with shackles. I put as event "A Unit - Finishes casting an ability" and it worked but i wanted to make it channeled. I changed the event to "A Unit - Starting channelling an ability" and now it binds only one unit. I tried to find the spot that the trigger stops and it stops after the invisible unit casts shackles to the picked unit. Please I know this is a very common problem... But i didn't find a solution... P.S. Sorry for my bad english :D |
| 12-19-2005, 07:39 PM | #2 |
Showing the trigger might help .... |
| 12-19-2005, 07:56 PM | #3 | |
ok solved! Quote:
|
| 12-19-2005, 08:09 PM | #4 |
I replied before test it... so... that doesn't really helps with channel... The trigger: Code:
MassShackles
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mass Shackles
Actions
Unit Group - Pick every unit in (Units within 800.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
((Owner of (Casting unit)) is an ally of (Owner of (Picked unit))) Equal to True
Then - Actions
Else - Actions
Unit - Create 1 Unit for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Custom script: call UnitAddAbilityBJ( 'Aloc', GetLastCreatedUnit() )
Custom script: call SetUnitPathing( GetLastCreatedUnit(), false )
Unit - Make (Last created unit) Invulnerable
Unit - Add Shackles (Mass) to (Last created unit)
Unit - Order (Last created unit) to Human Dragonhawk Rider - Aerial Shackles (Picked unit) |
