Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Calin Leafshade on Thu 12/08/2010 01:45:25

Title: Checking if any dialog options are currently being displayed
Post by: Calin Leafshade on Thu 12/08/2010 01:45:25
Is it possible to check if some dialog options are being displayed whilst in a dialog?

Title: Re: Checking if any dialog options are currently being displayed
Post by: frogfrost on Thu 12/08/2010 02:20:41
Yeah, if you have a custom renderer for your dialog, you have to iterate through each option, so then you can know which ones are being show (since you're explicitly rendering them on screen).
Title: Re: Checking if any dialog options are currently being displayed
Post by: Calin Leafshade on Thu 12/08/2010 04:06:35
hmm sorry I worded my question badly

Try again:

Is is possible to see if the dialog options are being displayed to the player.

i.e you re in a dialog but no one is talking and no other script functions are being run and its asking the player to choose an option.
Title: Re: Checking if any dialog options are currently being displayed
Post by: Dualnames on Thu 12/08/2010 04:50:39
My guess would be either script the event yourself, or just use a custom dialog GUI and repeatedly check always whether its on or not.
Title: Re: Checking if any dialog options are currently being displayed
Post by: Atelier on Thu 12/08/2010 09:44:20
You could do something with Dialog.DisplayOptions(), then set a bool to true after it's been called. Then just check that bool for whatever it is.