Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Arcanius on Mon 16/02/2009 03:53:02

Title: Help with changing room from dialog
Post by: Arcanius on Mon 16/02/2009 03:53:02
Hi there, I'm making a game, and at one part of it, I have Ego getting quizzed by a character. I want to make it so that if Ego gets the right answer, he is taken to another room....

@1
Gregory: "That's not correct, sorry, the people then took baths very rarely, only one or two every year!"
stop
@2
Gregory: "That's correct, I'll take you to William shortly"
//Teleport EGO to room 18
@3
Gregory: "That's not correct, go find out, and I'll quiz you again later on."
stop
@4
Gregory: "You got very close to seeing William again, try to find out, and I'll gladly quiz you again"
stop

The quiz is about Elizabethan times and Shakespeare  ;D

Is there any way that i could do this?
Title: Re: Help with changing room from dialog
Post by: Trent R on Mon 16/02/2009 04:34:27
Same as the normal scripting command player.ChangeRoom(18) . But since you're in a dialog script, you have to put spaces in front of it so that it knows it's a normal command, not something a character says.


~Trent
Title: Re: Help with changing room from dialog
Post by: Arcanius on Mon 16/02/2009 16:09:17
Thanks a lot for the quick reply, i would never have guessed that it was that simple :D