HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Pick Every Unit Triggers and then Deselect

01-30-2004, 12:15 AM#1
FallenDarkness
Unit Group - Pick every unit in (Units within 1000.00 of (Position of (Triggering unit)) matching (((Matching unit) is A structure) Equal to False)) and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 1000.00))


I have this action though I also selects the Lord of Magic, the guys that casts it, and I cant figure a way to make it deselect all buildings and deselect him though it would select his allies units, allied heros, and enemy units and heros, though no buildings. How do I do this?
01-30-2004, 12:24 AM#2
dexllgamer
Might you be able to add all the units to a group? Then remove the casting unit from the group before you do the intended action to the group. Just a thought, not sure if this will introduce to much lag or not.

Oh well, just thought i would through it out there.

C YA.
01-30-2004, 12:59 AM#3
Extrarius
For matching, use an 'AND' and for one half pick the 'not a structure' thing you already have and for the other half put 'matching unit is not equal to casting unit' or something like that
01-31-2004, 04:36 PM#4
FallenDarkness
Unit Group - Pick every unit in (Units within 1000.00 of (Position of (Triggering unit)) matching (((Matching unit) is A structure) Equal to False)) and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 1000.00))

That is what I have so far, but I cant find a AND for the structure part. Where might I get it in the trigger?
01-31-2004, 05:30 PM#5
Extrarius
When you click on the section where you pick the matching part, near the end of the list of conditions it will have AND
Then you can pick what goes on each half of the 'AND'
01-31-2004, 05:42 PM#6
FallenDarkness
Though I cant find a condition that is like (Matching Unit is Triggering Unit) Equal to False.