Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: wpowell on Sat 07/07/2007 14:20:06

Title: How do I go from the 1st room I created to the second room created?
Post by: wpowell on Sat 07/07/2007 14:20:06
I am making this game called William in the USA but I don't know how to get my character from room 1 to room 2. I tried everything I could think of but nothing worked. This is my first game. So I need help it is not even mentioned in the AGS Tutorial. Thanks.


Title: Re: How do I go from the 1st room I created to the second room created?
Post by: Akatosh on Sat 07/07/2007 15:19:28
Try the player.ChangeRoom command, probably?
Title: Re: How do I go from the 1st room I created to the second room created?
Post by: LeChuck on Sat 07/07/2007 15:33:34
I don't think that's even remotely possible.


Seriously though, throw a region on the part of the room you want to trigger the change room command, then edit that region's script file. Type in player.ChangeRoom(room number) and you're all set. That's the basic version.
Title: Re: How do I go from the 1st room I created to the second room created?
Post by: Akatosh on Sat 07/07/2007 15:49:38
Anyway, to save Ashen some work:

It's also mentioned  in the BFAQ (http://americangirlscouts.org/agswiki/Character_functions_and_properties#Character.ChangeRoom) and the manual.
Title: Re: How do I go from the 1st room I created to the second room created?
Post by: Ashen on Sun 08/07/2007 18:11:44
Akatosh, that's not the BFAQ, it's just a Wiki-fied version of the manual, but thanks anyway :)
The tutorial in the manual deals with Interactions, even if it doesn't mention the exact one you want (not that it's that obscurely named). There's also the Interaction Editor command - I know I adise people not to use them, but it does give the script equivilant.