RunDialog and THEN player.ChangeRoom()

Started by KristjanMan, Thu 13/04/2006 14:23:42

Previous topic - Next topic

KristjanMan

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
Code: ags
RunDialog (0);
player.ChangeRoom(16, 120, 70);

but it wont run the dialog instead it goes straight to the room
- They are all from AGS coloringball

Ashen

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.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk