A "Blocking" Dialog???

Started by DoorKnobHandle, Mon 20/10/2003 21:34:53

Previous topic - Next topic

DoorKnobHandle

How can you make dialogs become a kind of "blocking"?

I have a dialog and after that a MoveCharacter Command. But only the startup of the dialog is made and then the character is moving, while youre choosing the topic e. g.

how can you fix this?

Pumaman

As the manual says,
QuoteNOTE: The conversation will not start immediately; instead, it will be run when the current script function finishes executing.

Therefore, any other commands in your script will be executed before the dialog starts.

The solution is to move your MoveCharacter code to be executed after the dialog finishes.

DoorKnobHandle

#2
THX! Now I got it!

DoorKnobHandle

Sorry for my stupid noob questions, but could anyone give me an example how to script it?

I tried it with a var but it didn't work!

Pumaman

Well, the best way is probably to put a  run-script  command in your dialog script when the conversation ends, and then do the MoveCharacter from within the dialog_request.

A bit of a fiddle, I know.

DoorKnobHandle

Sorry for warming up this old thread but I think, that something like a "blocking" dialog would be a good thing in upcoming newer versions of AGS!

Pumaman

This could be done, but would prevent you using any run-scripts inside the dialog script (since the calling script would still be running in the background). Would people find this useful?

SMF spam blocked by CleanTalk