Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Tue 11/05/2004 19:42:01

Title: Multiple Player Help
Post by: on Tue 11/05/2004 19:42:01
 ??? 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
Title: Re: Multiple Player Help
Post by: Ashen on Tue 11/05/2004 19:50:47
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 .
Title: Re: Multiple Player Help
Post by: on Wed 12/05/2004 01:33:18
 ;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)
Title: Re: Multiple Player Help
Post by: Moox on Wed 12/05/2004 01:44:31
[size=24]READ THE RPG STICKEY[/size]
Anything is possible with scripting
Title: Re: Multiple Player Help
Post by: Ishmael on Wed 12/05/2004 12:00:15
With enough work, you could script an AI, for like a virtual friend... with enougth knowhow, patience, and such things...