Warcraft III resources & community, 2003–2006 · archived

Where should i place this SCRIPT

7 posts
#1

Where should i place this SCRIPT

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
#2
thats not a script, its just a GUI trigger converted to text (which isnt the same as JASS :P) u will have to create it urself
#3
Could you make an example of how to do it please?
#4
the reason its giving you an error is that it should be

set bj_wantDestroyGroup = true

not just bj_wantDestroyGroup = true

also, if you were asking about where to place it, it goes in a Custom Script action.
#5
Thank you PurplePoot :P My last question is where in the trigger it should be placed? In the loop action or completely outside the if/then/else?
#6
if u have the create unit group action in a loop, the removal must be in a loop to

but purplepoot, how can u put that in the custom script?
its just a normal trigger.. or am i wrong now?
#7
by placing it in a Custom Script tag?

how else would you? x.x

it should go RIGHT above the Unit Group stuff