What could be done is:
onMinigameSpawn increment integer
onMinigameLeave decrement integer
onMinigameDeath decrement integer
5 minutes after the game is started:
OnMinigameSpawn player kill
Okay, i see what your saying. So, the order of events would be like this:
-Assume that respawn is off, and each player can only spawn and die once-
When the minigame resets, a variable called "playing" would be set to 0
have that onminigamespawn event incriment "playing" by one, to set the variable equal to the number of players playing
have that onminigamedeath event decriment "playing" by one, to set the variable equal to the number of players subtracted by the dead ones.
have that onminigamedeath event decriment "playing" by one, to set the variable equal to the number of players subtracted by the disconnected ones.
Have a zone/plate at the elevator/helicopter/boat/safehouse
have Onplayerenterzone incriment a variable called "touching" by one, to set the variable equal to the number of players inside/touching the brick
have Onplayerleavezone decriment "touching" by one, to set the variable equal to the number of players inside/touching the brick subtracted by the ones who walked out.
have onplayerenterzone check to see if the variable "touching" is equal to the variable "playing"
have onvariable true set server music to
http://www.youtube.com/watch?v=SRnYnggDHHkhave onvariable true set zombie spawns to "NONE"
have onvariable true set minigame center print "You've escaped!"
Excellent idea, but i think there are a few small issues:
Firstly and most importantly, if a player dies, then disconnects, this subtracts two from the variable "playing".
If there were five players, , and one dies before he reaches the finish and quits (or ragequits), "playing" would be set to 3
Then when the four remaining players approached the finish, the game would end when only 3 entered the elevator/helicopter/boat/safehouse
Secondly, as i mentioned before, if four of the five players are inside the chopper and the fifth is killed, a player needs to re-enter the chopper to do another check.I could make a brick that checks if "playing" = "touching" whenever a player dies to solve that, never mind
Thirdly, I have no idea why you suggested putting an event to kill players 5 minutes after they spawn
ALSO:
two possible solutions:
A: motivate them to use teamwork by simply requiring everyone to be alive
B: you work out something with the spawns and deaths of players in the mini game to determine the number of players
A: you can have the most functional, supportive team and still lose someone at the last hurdle. "simply requiring them to be alive" wont make them immortal.
B:
work out something ....Thanks for the tip.