# Gw Temp

## Tutorial - 'Two-Player System' by Jaguar

An item about RPGMaker 2000 posted on

### Blurb

Psycho Gamer and Axel team up for a tutorial on creating a two-player system in your game in RM2K3, with different options for doing so!

### Body

This is a tutorial for a 2-player system…
This is our first tutorial, but it won't be our last!

You need:

• RPGMaker 2003

• 2 or 4 common events

• In every map at least one event

First step…
In all maps you use player 2, player 2 MUST be the first event you place at that map! And in every map you don't use player 2, you will have to make an invisible event first before you place other events at that map! Otherwist this won't work…

Second step…
You will have to make a choice… You must choose 1 of the following options:

1. Player 2 can walk in every direction, but you can't open the menu and you can't use the Enter or Z button…

2. Player 2 can only walk in 2 directions, but you can open the menu and use the Enter of Z button…

You can only use 1 of these options!

• When you use option 1 do all steps descripted in this tutorial!

• When you use option 2 do all steps except the 5th and the 6th!

Third step: Create the first common event.
Parallel process, don't use a start condition switch. Do the following things:

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

2. 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 a number? 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.

Fourth step: Create a second common event.
Parallel process, don't use a start condition switch. Do the following things:

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

2. 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 a sign? 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 (Do this step only if you've chosen option 1 in the second step!!!) Create a third common event.
Parallel process, don't use a start condition switch. Do the following things:

1. Do "Input Key". Choose "Enter/Space (5)" 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 "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 a sign? 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 (Do this step only if you've chosen option 1 in the second step!!!) Create a fourth common event.
Parallel process, don't use a start condition switch. Do the following things:

1. Do "Input Key". Choose "Escape (6)" only. Be sure that the other keys aren't used. Store the key code in a new variable (for example: V0004: Move player 2 - 4). Wait for the key stroke, but don't store the time in another variable.

2. 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 a sign? 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.

At last: When you teleport, be sure that player 2 is at that map in a square behind you and not on the same square you are at, and that in every map player 2 is EV0001! And don't forget: Player 2 must be in your party at every map where he's used (so when you teleport to a map where isn't a player 2, you must change your party!!!). Be sure that the graphic of EV0001 matches completely the hero at the data base!

And that's it! If you've done well, every common event must look like this:

<>Input key: V[Number of variable: Name of the variable]
<>Move event: EV0001, Move to the direction you've chosen
<>

When it doesn't work, the following things can happen:

• You haven't chosen parallel process in the common events

• You've chosen the wrong keys by Input Key

• You've forgotten the hero movement, or you've forgotten the input key

• You've placed all in the same common event

• You have made that another event walks when you push that key

• You have made that player 2 isn't in every map EV0001

• You've forgotten to place an event that's player 2

Now player 2 can walk with the numbers and signs (and if you've used option 1 in the second step, also with the Z and X button!).

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