Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ian80 on Sat 24/01/2004 22:27:00

Title: Placing an NPC into a room midgame.
Post by: ian80 on Sat 24/01/2004 22:27:00
Hi again. I'm just full of questions today...

I want to place a character into a room after a certain event occurs. However, I can't find the script code for adding a new character to a room.
Title: Re:Placing an NPC into a room midgame.
Post by: Scorpiorus on Sat 24/01/2004 23:51:26
There is no script function but a special global variable named character[...].room:

character[MAN].room = 7;

will place the character MAN to the room number 7
Title: Re:Placing an NPC into a room midgame.
Post by: ian80 on Sun 25/01/2004 02:48:52
Thanks again.