Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: BorisZ on Thu 26/05/2005 15:20:04

Title: Dialog is non blocking action?
Post by: BorisZ on Thu 26/05/2005 15:20:04
I noticed that in the script:

RunDialog(0);
character[0].room=-1;

character changes room before dialog ends. Does this mean that RunDialog is non blocking action or am I missing something.
In the script:

DisplayMessage(0);
character[0].room=-1;

character changes room after message is displayed. Then how do I move character to another room after dialog is done?

And another question:

I have this script under repedeately execute to show status display of items/hotspots currently under mouse pointer:

    string my_buffer;
GetLocationName(mouse.x, mouse.y, my_buffer);
SetLabelText(1, 0, my_buffer);

But the problem is that when I use action (interact for instance) and then use some blocking action (MoveCharacterBlocking or something) status GUI remains displayed untill action is done, wich is very annoying. How do I solve that?
Title: Re: Dialog is non blocking action?
Post by: Ishmael on Thu 26/05/2005 15:34:00
Quote from: BorisZ on Thu 26/05/2005 15:20:04
I noticed that in the script:

RunDialog(0);
character[0].room=-1;

character changes room before dialog ends. Does this mean that RunDialog is non blocking action or am I missing something.
In the script:

DisplayMessage(0);
character[0].room=-1;

character changes room after message is displayed. Then how do I move character to another room after dialog is done?

(http://koti.mbnet.fi/tk-/img/RTFM.gif) ;)

Dialogs are ALWAYS ran LAST of the script block. You'll need to split that into two "Run Script"s or use dialog_request.
Title: Re: Dialog is non blocking action?
Post by: BorisZ on Thu 26/05/2005 15:38:45
Thanks.
Any hints about status GUI?
Title: Re: Dialog is non blocking action?
Post by: strazer on Fri 27/05/2005 05:28:56
You can put your status GUI script into the repeatedly_execute_always function which also runs during blocking actions.
Title: Re: Dialog is non blocking action?
Post by: BorisZ on Fri 27/05/2005 19:35:11
Quote from: strazer on Fri 27/05/2005 05:28:56
You can put your status GUI script into the repeatedly_execute_always function which also runs during blocking actions.
Thanks!