Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: DoorKnobHandle on Mon 20/10/2003 21:34:53

Title: A "Blocking" Dialog???
Post by: DoorKnobHandle on Mon 20/10/2003 21:34:53
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?
Title: Re:A "Blocking" Dialog???
Post by: Pumaman on Mon 20/10/2003 22:01:42
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.
Title: Re:A "Blocking" Dialog???
Post by: DoorKnobHandle on Mon 20/10/2003 22:06:12
THX! Now I got it!
Title: Re:A "Blocking" Dialog???
Post by: DoorKnobHandle on Mon 20/10/2003 23:33:12
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!
Title: Re:A "Blocking" Dialog???
Post by: Pumaman on Tue 21/10/2003 20:29:04
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.
Title: Re:A "Blocking" Dialog???
Post by: DoorKnobHandle on Fri 24/10/2003 21:51:04
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!
Title: Re:A "Blocking" Dialog???
Post by: Pumaman on Fri 24/10/2003 22:03:38
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?