| 10-18-2003, 05:30 AM | #1 |
I'm making a battle arena map but am having problems making a 'win condition' trigger. The condition is that the team (Team1 or Team2) that kills all units (the heros and including any summoned units) from the opposing force in the arena region wins. I've tried using the "Integer Comparison": "(Number of units in (Units in ArenaRegion 001 <gen>)) Equal to 0", but it is limited in that it doesn't let you define units owned by Player or Force. I've also tried using counters, but I can only get them to work with heros and not summoned units. I've been looking and thinking of every possible method that I can come up with since last night and haven't been successful yet. I know there are similar maps out there so does anyone know how to go about doing this or have any ideas? Any help would be appreciated. Note: I don't want to use the event "Player - Player 1 (Red) leaves the game with a defeat" or anything like that because once a hero dies I want it to respawn for the next match. The condition is for winning a match. The condition for winning the game will be easy since I can just use a counter. Example, Event: Team1MatchWins = 10.00. |
| 10-18-2003, 05:38 AM | #2 |
i have go soon so i cant really think about this much. however this condition could be of some use: (Count non-structure units controlled by Player 1 (Red) (Exclude incomplete units)) Equal to 0 |
| 10-18-2003, 07:37 AM | #3 |
Add all the units to unit groups and set a trigger to add any summoned units whenever they are summoned. one for team1 and one for team2. Whenever a unit dies remove it from it's teams unit group and then check to see if the number of units in that group equals 0. If so, then the other team wins the round. I'm not exactly sure if thats what you are trying to do, but at least thats how I read it. |
| 10-18-2003, 01:52 PM | #4 |
or use the food limit :) i know it sounds dumb, but it is usefull.... try editing the summoned units food cost and see if they "cost" food when they are spawned....if it works (and i think it should), just set the triger like: event: players food = 0 condition : units controled = 0 action : whatever do you need (i can't remember the excact same words but you'll be able to find it) |
| 10-18-2003, 04:03 PM | #5 |
Okay thanks guys for all the help, I used your ideas and finally got it working the way I want it. :D |
