Warcraft III resources & community, 2003–2006 · archived

What is wrong ?

4 posts
#1

What is wrong ?

It looks simple:

Unit - A unit Starts the effect of an ability

(Ability being cast) Equal to Cluster Rockets

Unit Group - Pick every unit in (Units within 80.00 of (Target point of ability being cast)) 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
((Picked unit) is A Hero) Equal to False
((Picked unit) is alive) Equal to True
Then - Actions
Unit - Change ownership of (Picked unit) to (Owner of (Casting unit)) and Change color
Unit - Change color of (Picked unit) to Green
Wait 10.00 seconds
Unit - Change ownership of (Picked unit) to (Previous owner) and Change color
Else - Actions
Do nothing

It changes the units in the area to owner of casting unit, then it doesnt change them back to previous owner. Corrections ?
#2
It'll forget who the previous owner was during that time. You'd have to use variables, and that would only work if you're certain it won't be cast again during these 10 seconds.

It's only a matter of time before someone says JASS
#3
but it doesnt work even if change it to neutral hostile instead of prev owner
#4
Yeah, I hate the WAIT action in this World Editor coz it forgets all the units in the actions before the WAIT action and we will have to use variables.