| 10-30-2002, 12:14 PM | #1 |
Guest | Hey all, I've been working on a sheep tag sort of map lately. I've been having problems with the victory triggers. Here is my trigger, but I don't know why it doesn't work: EVENT: Time - Every 5 Second of Game Time CONDITION: (Number of Units in (Units of Type Child)) Equal to 0 ACTION: Player Group - Pick Every Player in blah, blah, blah, victory. Player Group - Pick Every Player in blah, blah, blah, defeat. I'm pretty sure my problem rests in my condition, because it doesn't look right, but it should work. Anyway, if you don't catch what I'm trying to do, here it is: I want to make it so when there are no units of type Child left on the map, the other team wins. Anybody know how to accomplish this? |
| 10-30-2002, 01:44 PM | #2 |
Yes the condition is wrong, Number of Units "IN" Units of Type Child will never = anything becuase it is looking to count the number of units In something. What you need is something like: Number of Units in Playable map of type Child = 0 (i dont have the editor in front of me so i cant give exact code, but this is the basic idea you want) |
| 10-30-2002, 03:57 PM | #3 |
Guest | Alright, I tried that, and it didn't work. This was the condition: (Number of Units in (Units in(Playable Map Area) matching ((Unit-Type of Matching Unit)) Equal to Child Equal to 0. That's it roughly. |
