Dialog is non blocking action?

Started by BorisZ, Thu 26/05/2005 15:20:04

Previous topic - Next topic

BorisZ

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?

Ishmael

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?

;)

Dialogs are ALWAYS ran LAST of the script block. You'll need to split that into two "Run Script"s or use dialog_request.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

BorisZ

Thanks.
Any hints about status GUI?

strazer

You can put your status GUI script into the repeatedly_execute_always function which also runs during blocking actions.

BorisZ

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!

SMF spam blocked by CleanTalk