Multiple Player Help

Started by , Tue 11/05/2004 19:42:01

Previous topic - Next topic

Blane

 ??? Pardon me, but could you give me a simple way of how to have multiple characters?

EXAMPLE: You move through five rooms and when you reach the room #6 your character either
(a: just becomes useless and you play as another character in the room
(b: You talk to another character in the room he says: "I'll take over" and you play as him until you come to another person

IS THIS AT ALL POSSIBLE?
:P Note, I have consulted the manual, nothing that can help

Ashen

From the manual:

SetPlayerCharacter
SetPlayerCharacter (int char_id)

Changes the character which the player controls to CHAR_ID. You can either use the character's number, or the ID string set in the Room Editor. This function will also cause the room to change to the room which the chosen character is currently in. (It calls NewRoom with the character's room, so the change won't happen until the end of the script).
Note: The "player" global variable is not updated with the new character; so using "player.x", "player.name" and so on will change the original character, not the current player character.

Example:

SetPlayerCharacter(MAN);

will change the character that the player controls to character MAN and also change (if needed) the room to the room that the character MAN is .
I know what you're thinking ... Don't think that.

Blane

 ;D Thanks...I was going to start an RPG like game

One more Q:

Can you do fighting scenes in an Adventure RPG (Battle scenes)

Moox

[size=24]READ THE RPG STICKEY[/size]
Anything is possible with scripting

Ishmael

With enough work, you could script an AI, for like a virtual friend... with enougth knowhow, patience, and such things...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SMF spam blocked by CleanTalk