HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Victory Script

08-28-2015, 10:48 PM#1
JeffNielson
Sorry, I can't figure out how to do this. I found a Victory/Defeat Script to replace the default one. It is successful at triggering defeat criteria and I am happy with that. I am trying to write one that will trigger Victory when all other teams are defeated. Thanks, Jeff
08-29-2015, 06:59 AM#2
Anitarf
You should store the number of teams in an integer variable at the start of the game. Then, whenever you defeat a team, decrease that variable by 1. When that variable equals 1, you have only 1 team left, so just end the game in victory for all remaining players.