Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: barefoot on Wed 25/11/2009 13:53:44

Title: Region: Go to another room
Post by: barefoot on Wed 25/11/2009 13:53:44
Hi

ive set up a Region and want to transport my character to another room.

ive just started using the 3.1 version...  obviously its more on scripting then previous issues... Can anyone give me a hint at the script line to go to room 2 after player walks onto region in room 1.

Thanks

Qikfire
Title: Re: Region: Go to another room
Post by: Gilbert on Wed 25/11/2009 13:56:19
Character.ChangeRoom() (http://www.adventuregamestudio.co.uk/manual/Character.ChangeRoom.htm)
Title: Re: Region: Go to another room
Post by: barefoot on Wed 25/11/2009 13:57:38
yar

player.ChangeRoom(2, 11, 383);

it'll take a while to get to grips with the scripting, but thats half the fun...

thanks...

Qikfire
Title: Re: Region: Go to another room
Post by: Khris on Wed 25/11/2009 14:44:11
I recommend reading through the script section of the manual once. The commands are split in groups, so if you want to do something to, say, an object, the command you have to use will with great probability be something like ObjectName.Command(...); or ObjectName.Property = NewValue;

It takes some time but will get easier down the road.