HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help on Unit Group in Spells

12-19-2005, 07:38 PM#1
plasmodioum
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
Zoxc
Showing the trigger might help ....
12-19-2005, 07:56 PM#3
plasmodioum
ok solved!

Quote:
Originally Posted by 1)ragonspawn
Now for the Event. Use the Event 'A Unit Starts the Effect of an Ability'. We don't use 'A Unit Begins Casting an Ability' because that fires right when the caster is ordered to do something. The one we use fires when the caster actually start the ability.
12-19-2005, 08:09 PM#4
plasmodioum
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)