Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: lucasa on Wed 20/02/2008 11:54:07

Title: Problem with threads
Post by: lucasa on Wed 20/02/2008 11:54:07
Hello, i dont undertand how threads works (i've read help yet)

I want to run something like this script:

{
conversation.start();
player.changeroom(a,b,c);
}

But player changes room BEFORE starting conversation. ¿how can i do to get the thread control?


Thanks and Sorry for my english.
Title: Re: Problem with threads
Post by: Radiant on Wed 20/02/2008 12:21:23
Use the run_script option in the dialog script to ensure the room change happens at the end of the dialog.
Title: Re: Problem with threads
Post by: Matti on Wed 20/02/2008 12:27:35
You could use the run-script x command at the end of the dialog and put the character.changeroom function in the dialog_request section in the main script.

edit: Oh, I was too late..
Title: Re: Problem with threads
Post by: lucasa on Wed 20/02/2008 12:50:07
ok! thank you very mach!