RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Multyplayer(not mmorpg)

Started by Grie Velorn, April 07, 2007, 08:43:54 AM

0 Members and 1 Guest are viewing this topic.

Grie Velorn

okay this is mainly for RM 2k(3) but if people want i can post the rmxp verson

Screen Shots:


okay so what this is is a multiplayer but insted of it being over the internet you play off one key board so here's the coding:

<>Variable: V[0001: X position hero] Set, Hero, X coord.
<>Variable: V[0002: Y position hero] Set, Hero, Y coord.
<>Variable: V[0003: X position player 2] Set, Player 2, X coord.
<>Variable: V[0004: Y position player 2] Set, Player 2, Y coord.
<>Input key: V[0005: Player 2 walks]
<>If: V[0005: Player 2 walks], 11
...<>Variable: V[0006: X hero + – X player2] Set, Hero, X coord.
...<>Variable: V[0006: X hero + – X player2] –, 8
...<>If: V[0006: X hero + – X player2], V[0003], (<)
......<>Move event: Player 2 , Move left
......<>
...
......<>Move event: Player 2 , Face left
......<>
...
...

...<>If: V[0005: player 2 walks], 12
......<>Variable: V[0007: Y hero + – Y player2] Set, Hero, Y coord.
......<>Variable: V[0007: Y hero + – Y player2] +, 6
......<>If: V[0007: Y hero + – Y player2], V[0004] (>)
.........<>Move event: Player 2, Move down
.........<>
......
.........<>Move event: Player 2, Face down
.........<>
......
......<>
...
......<>If: V[0005: Player 2 walks], 13
.........<>Variable: V[0007: Y hero + – Y player2] Set, Hero, Y coord.
.........<>Variable: V[0007: Y hero + – Y player2] –, 6
.........<>If: V[0007: Y hero + – Y player2], V[0004], (<)
............<>Move event: Player 2, Move up
............<>
.........
............<>Move event: Player 2, Face up
............<>
.........
.........<>
......
.........If: V[0005: Player 2 walks], 14
............<>Variable: V[0006: X hero + – X player2] Set, Hero, X coord.
............<>Variable: V[0006: X hero + – X player2] +, 9
............<>If: V[0006: X hero + – X player2], V[0003] (>)
...............<>Move event: Player 2 , Move right
...............<>
............
...............<>Move event: Player 2 , Face right
...............<>
............

You just make the same common event for player 3. You just have to change
the variables. Create new variables (X coord, Y coord, X hero + – X player3, Y hero + – Y player3 and Player 3 walks).
the input keys. Just give him the keys 6, 7, 8, 9, and 0 for example.
the move event. Do not let player 2 walk, but player 3.
And do the very same for player 4.


If you want an event player 2 can "open", just set it to "on hero's touch" and "below hero". In the event commands, you just do:
<>Input key: V[0005: Player 2 walks]
<>If: V[0005: Player 2 walks], 15

hope you enjoy!



Ruhani777

this seems good +rep for you if you give us a screenshot ::)

Grie Velorn




Falcon

Sounds interesting, but doesn't that just mean you have another player walking around, not able to interact with events or anything?

I think someone on .org made a spit screen muliplayer script, you may want to get ideas from that.

Snailer

I posted it once..
Wondering where it went >.<


Ruhani777

wtf is this .org you speak of?

and yes i would glady like too see the xp version :P


modern algebra



Grie Velorn

okay xp version its alot easyer i think so here it is:
well first i need to know whats the "enter password" command thing for xp then i can show you the other version