HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trouble with this Trigger

11-14-2003, 02:11 AM#1
Trepidity
I am trying to use a modyfied version of trigger from another thread. I also tried the version in the thread and it doesn't work for some reason. I have units placed on the map for all 8 players. I want to remove all units owned by each player that is not used(ie. open or closed, not an actual user). Here is my trigeger that runs 1 second into the game:

Unit-Group- Pick every unit in (Units in (Playable map area) matching (((Owner of(Picked unit)) slot status) Equal to Is unused)) and do (Unit - Remove(Picked unit) from the game)

For some reason I do not see, it is removing all units in the game. Does anyone know what is up? How can I fix this? Thanks so much.

-Trepidity
11-14-2003, 02:23 AM#2
Eriond
I can read it fine.... There was a thing about this.... you have to use not equal to is playing. For some reason it doesn't work when you used is unused. At least... for me it doesn't. Try that. Change Is equal to Is unused to is not equal to Is Playing
11-14-2003, 02:29 AM#3
Trepidity
Hmmmmm......
I tried changing it to that way, and I still get the same problem. This is wierd.

-Trepidity
11-14-2003, 02:32 AM#4
Eriond
Here's my removal trigger, exactly as is.

Code:
Events - Time - Elapsed game time is 0.10 seconds

Actions - Unit Group - Pick every unit in (Units in (Entire map) matching (((Owner of (Matching unit)) slot status) Equal to Is unused)) and do (Unit - Remove (Picked unit) from the game)

That should work.... lol, I'm using the unused thing.... nvm.
11-14-2003, 02:44 AM#5
Trepidity
That worked. I found the error thanks to your reply. Here was the problem:
Unit-Group- Pick every unit in (Units in (Playable map area) matching (((Owner of(Picked Unit )) slot status) Equal to Is unused)) and do (Unit - Remove(Picked unit) from the game)

The Area in bold should have been Matching Unit.
Thanks so much it works now.:ggani:

-Trepidity