- Joined
- Feb 27, 2006
- Messages
- 49
Where do i place this script--->bj_wantDestroyGroup = true in this trigger? When i try to save there comes an error and the trigger gets disabled. Please tell me or show where to place the script :?
Soul Repression
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Soul Repression
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Soul Repression for (Casting unit)) Equal to 1
Then - Actions
Unit Group - Pick every unit in (Units in (Region centered at (Target point of ability being cast) with size (300.00, 300.00)) matching (((Picked unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) belongs to an ally of (Owner of (Casting unit))) Not equal to True
((Picked unit) is dead) Not equal to True
((Picked unit) is A structure) Not equal to True
((Picked unit) is A Hero) Not equal to True
Then - Actions
Set L = (Position of (Casting unit))
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
Special Effect - Destroy (Last created special effect)
Unit - Create 1 Dummy - Unit for (Owner of (Casting unit)) at L facing Default building facing degrees
Unit - Order (Last created unit) to Neutral Fire Lord - Soul Burn (Picked unit)
Custom script: call RemoveLocation(udg_L)
Else - Actions
Soul Repression
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Soul Repression
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Soul Repression for (Casting unit)) Equal to 1
Then - Actions
Unit Group - Pick every unit in (Units in (Region centered at (Target point of ability being cast) with size (300.00, 300.00)) matching (((Picked unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) belongs to an ally of (Owner of (Casting unit))) Not equal to True
((Picked unit) is dead) Not equal to True
((Picked unit) is A structure) Not equal to True
((Picked unit) is A Hero) Not equal to True
Then - Actions
Set L = (Position of (Casting unit))
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
Special Effect - Destroy (Last created special effect)
Unit - Create 1 Dummy - Unit for (Owner of (Casting unit)) at L facing Default building facing degrees
Unit - Order (Last created unit) to Neutral Fire Lord - Soul Burn (Picked unit)
Custom script: call RemoveLocation(udg_L)
Else - Actions