I plan on making a tutorial about adding multiplayer, but until then I can just paste you some code:
Player setup:
Simba Code:
playerNames = ['']; //Put your player's names (or nicknames, if you set them) here.
playerFile = 'default'; //Put your playerfile's name here. Default is 'default'.
desiredWorld = 0; //Enter your desired world number here.
Player init:
Simba Code:
players.setup(playerForm.PlayerNames, playerForm.playerFile);
currentPlayer := randomRange(low(playerForm.playerNames), high(playerForm.playerNames)); //randomize the player we start with
Player switching:
Simba Code:
procedure setupNextPlayer();
begin
players[currentPlayer].logout();
players.randomNext(false); //don't manually increment currentPlayer, .next() does that for us
players[currentPlayer].login();
wait(randomRange(5000, 10000));
mainscreen.setAngle(MS_ANGLE_HIGH);
exitTreasure();
end;
If you have any questions about what any of that does or how to use it, quote me or send me a PM