Help with changing room from dialog

Started by Arcanius, Mon 16/02/2009 03:53:02

Previous topic - Next topic

Arcanius

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?

Trent R

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
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

Arcanius

Thanks a lot for the quick reply, i would never have guessed that it was that simple :D

SMF spam blocked by CleanTalk