Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: KristjanMan on Thu 13/04/2006 14:23:42

Title: RunDialog and THEN player.ChangeRoom()
Post by: KristjanMan on Thu 13/04/2006 14:23:42
Hey! I'm using AGS 2.7 and I want to ask how to make it like that that when i finish the dialog the player go to the other room? right now i have RunDialog (0);
player.ChangeRoom(16, 120, 70);

but it wont run the dialog instead it goes straight to the room
Title: Re: RunDialog and THEN player.ChangeRoom()
Post by: Ashen on Thu 13/04/2006 14:49:20
Use the Search function. This has been asked so may times before...

It comes down  to this bit in the manual:
QuoteNOTE: The conversation will not start immediately; instead, it will be run when the current script function finishes executing.

Basically, you need to put everything you want to happen after the dialogue (just the ChangeRoom command here) in a seperate Run Script command.