| 03-24-2005, 03:26 PM | #1 |
If i have 2 teams of players, how can i make it so that one team wins once they have accumilated a certain number of kills between them? So far i can only get this to work for specific players scores instead of the entire teams kills added together. |
| 03-24-2005, 03:52 PM | #2 |
You will need two variables, team1score and team2score. Every time a team scores, either add it to the team 1's score or the other teams score. Then when it gets above a certain value, end the game with a victory for every player on the team. If you need help then post. |
| 03-24-2005, 03:59 PM | #3 |
so the score would be Interger variables, right? and is this the right action: Actions (set variable) Set Team1score = Team1score+1 |
| 03-24-2005, 04:10 PM | #4 |
Yep, you've got it =) |
| 03-24-2005, 04:45 PM | #5 |
okay, but now i need to make a optional variation, how do i get it so that after a set amount of time, whoever has the highest score wins? how do you compare the two variables? |
| 03-24-2005, 11:11 PM | #6 |
From scratch: -E: - gametimer expires -A: - If - Player 1 Kills + Player 2 Kills + ... > Player 6 Kills + Player 8 Kills + .... - Then - Victory for Force 1 - Defeat for Force 2 - Else - If - Player 1 Kills + Player 2 Kills + ... < Player 6 Kills + Player 8 Kills + .... - Then - Victory for Force 2 - Defeat for Force 1 - Else - Victory For Force 1 - Victory For Force 2 |
