Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Tenacious Stu on Fri 07/01/2011 00:32:02

Title: Stopping the the Dialog from automatically selecting the last remaining option
Post by: Tenacious Stu on Fri 07/01/2011 00:32:02
Just a quick question with dialogue.

I have a conversation where all of the options have been turned off except one.

When this dialog is started it automatically selects the last option and displays the speech without giving the player the option to choose it.

How do you stop this? So that the single option appears, and the player still has to select it in order for the speech to show?

Thanks in advance.
Title: Re: Stopping the the Dialog from automatically selecting the last remaining option
Post by: Dualnames on Fri 07/01/2011 03:06:46
game.show_single_dialog_option=1; // If only a single dialog option is available, show it anyway (default=0)
Title: Re: Stopping the the Dialog from automatically selecting the last remaining option
Post by: Khris on Fri 07/01/2011 03:40:05
Please search the forum first, a search for "auto select last option" would have yielded this topic from a month ago (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=42308.0) as very first result.
Title: Re: Stopping the the Dialog from automatically selecting the last remaining option
Post by: Tenacious Stu on Fri 07/01/2011 03:54:20
Sorry folks

I did try searching, but I guess the key words I used were too broad. I used the word 'Automatically', which I could easily have spelt wrong  :-[. Sorry for the inconvenience.

I'll try to search more thoroughly next time to avoid clogging the Forums.
Title: Re: Stopping the the Dialog from automatically selecting the last remaining option
Post by: Khris on Fri 07/01/2011 04:07:21
No problem at all, I didn't want to give you the impression you did something wrong, sorry for that.
I'm not supposed to act like a mod anyway :)
Title: Re: Stopping the the Dialog from automatically selecting the last remaining option
Post by: Tenacious Stu on Fri 07/01/2011 05:00:39
No Worries  ;D

For what its worth, my problem is now solved  ;). I put that game variable in the GlobalScript under the game_start function and now it works how I need it to. :P