ID:149929
Jan 26 2002, 8:01 am
|
|
I want to know how to make it so only 4 players my stragy game
|
If you make it part of the login, I recommend setting world.visiblity to 0 when the game is full, and setting it to 1 again when there are spots available. That way people don't see games that they can't join on the hub, which is downright annoying.
|
In response to ADDiCt
|
|
Thanks it worked but now i have a new prob im trin to make it so when thay join thy join one of the 4 teams if thare the firt person to join thay join green if thare the socind thay join bue and so one this is what i did
mob/verb/Join_Game() if(Players >= MaxPlayers) usr << "Sorry, this current game is closed." else world << "[usr] has joined the game!" Players += 1 Team() team() If green = 0 green = 1 usr.green += 1 else reurn If blue = 0 green = 1 an this gos one tell the last team no errors to it its just when u join it u join all the teams like it has u jin black u joined green all thm at the ame time |
ok all you do is make a variable, lets say... Players and MaxPlayers, then, if you want a Join verb, you do this:
mob/verb/Join_Game()
if(Players >= MaxPlayers)
usr << "Sorry, this current game is closed."
else
world << "[usr] has joined the game!"
Players += 1
You can also make this a Login procedure if you wish.
And the boards probably messed up the indentations