Gw Temp

Menu

Tutorial - 'Multiplayer System' by Guest

An item about RPGMaker 2000 posted on

Blurb

Axel and Psycho Gamer expand upon their last tutorial's possibilities, explaining how to allow as many as four different players to participate in an RM2K3 game.

Body

This tutorial will show you how to make a multiplayer game! With this you can play up to 4 players at the same time! Or you can make it that you can control another event!



You need:



First step…

Make sure that in every map player 2 is event 0001 and in every map player 3 is event 0002 and in every map player 4 is event 0003! And in every map where player 2 or 3 or 4 doesn't play, you must make an event without a graphic for them (so event 0001 and 0002 and 0003 must be an invisible event without any function). Otherwise this won't work!



Second step…

Create the first common event (A new one!).

Parallel process, don't use a start condition switch. Do the following things:

First, you must know in what direction player 2 can walk with the button number 1. (for example: with number 1 can player 2 walk to the left). What do you want? Then do the following:


  1. Do "Input Key". Choose "numbers 0-9 (10-19)" only or "signs /,*,-,+,." only. Be sure that the other keys aren't used. Store the key code in a new variable (for ex-ample: V0001: Move player 2 - 1). Wait for the key stroke, but don't store the time in another variable.


  2. >Do "conditional branch" for checking if that variable is exactly 11.


  3. Do "Move event". Always use the event "EV0001" (this must be player 2 in every map!!!). Put the frequency as quick as you want. Do you remember in which direction you want that player 2 walks when you push the button number 1? Let EV0001 move in that direction. Don't use the "Loop actions", but do use the "Ignore if Unable to move" choice. When you did all this, you're ready for the next step.




Third step…

Create the second common event (a new one!)

Parallel process, don't use a start condition switch. Do the following things:


  1. Do "Input Key". Choose "numbers 0-9 (10-19)" only or "signs /,*,-,+,." only. Be sure that the other keys aren't used. Store the key code in a new variable (for ex-ample: V0002: Move player 2 - 2). Wait for the key stroke, but don't store the time in another variable.


  2. Do "conditional branch" for checking if that variable is exactly 12.


  3. Do "Move event". Always use the event "EV0001" (this must be player 2 in every map!). Put the frequency as quick as you want. Make a choice: In what direction do you want that player 2 walks when you push the button number 2? Let EV0001 move in that direction. Don't use the "Loop actions", but do use the "Ignore if Un-able to move" choice. When you did all this, you're ready for the next step.




Fourth step…

Create the third common event (a new one!)

Parallel process, don't use a start condition switch. Do the following things:


  1. Do "Input Key". Choose "numbers 0-9 (10-19)" only or "signs /,*,-,+,." only. Be sure that the other keys aren't used. Store the key code in a new variable (for example: V0003: Move player 2 - 3). Wait for the key stroke, but don't store the time in another variable.


  2. Do "conditional branch" for checking if that variable is exactly 13.


  3. Do "Move event". Always use the event "EV0001" (this must be player 2 in every map!!!). Put the frequency as quick as you want. Make a choice: In what direction do you want that player 2 walks when you push the button number 3? Let EV0001 move in that direction. Don't use the "Loop actions", but do use the "Ignore if Unable to move" choice. When you did all this, you're ready for the next step.




Fifth step…

Create the fourth common event (a new one!)

Parallel process, don't use a start condition switch. Do the following things:


  1. Do "Input Key". Choose "numbers 0-9 (10-19)" only or "signs /,*,-,+,." only. Be sure that the other keys aren't used. Store the key code in a new variable (for ex-ample: V0004: Move player 2 - 4). Wait for the key stroke, but don't store the time in another variable.


  2. Do "conditional branch" for checking if that variable is exactly 14.


  3. Do "Move event". Always use the event "EV0001" (this must be player 2 in every map!). Put the frequency as quick as you want. Make a choice: In what direction do you want that player 2 walks when you push the button number 4? Let EV0001 move in that direction. Don't use the "Loop actions", but do use the "Ignore if Unable to move" choice. When you did all this, you're ready for the next step.




Sixth step… Only do this when player 3 is in the game

Just repeat the second, third, fourth and fifth step, only now for player 3, with other buttons and variables, and event 0002.



Seventh step… Only do this when player 4 is in the game

Just repeat the second, third, fourth and fifth step, only now for player 4, with other buttons and variables, and event 0003.



This should work. Now you've got 4, 8 or 12 common events, which all must look something like this:



<>Input Key: V[0001: Let a player walk]

<>If: V[0001:Let a player walk], 11

~@<>Move event: EV0001, Move Left

~@<>



~@<>



<>



And then you can play up to 4 players at the same time! And don't forget that the event you take control of doesn't have to be a party member! If the event is a stone, you can control it, for example.



This tutorial is made by Pshycho Gamer and Axel. If you have any questions, please let us know!