Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: aussie on Sun 30/10/2011 15:54:43

Title: How do you stop your character from saying the last dialog option automatically
Post by: aussie on Sun 30/10/2011 15:54:43
I've done a search for this in the forums, but it's kinda difficult to word it correctly.

I have this conversation where there is one single dialog option left to say. The player character says it automatically, but I want the player to actually click on it before it is said. How do you do that?

The question is pretty basic. The fact is I've done it already in the game I'm working on, but I can't remember how.  :-\

Thanks very much.
Title: Re: How do you stop your character from saying the last dialog option automatically
Post by: steptoe on Sun 30/10/2011 16:27:40
Hi

you have to have another dialog option.  Just have it say nothing, It works for me.

The dialog plays the last option automatically.

Add this (just change option number and character to suit):


@4
     character.Say("");

stop


or


@4
character:

stop


Title: Re: How do you stop your character from saying the last dialog option automatically
Post by: Khris on Sun 30/10/2011 16:41:22
Just put this in game_start:

  game.show_single_dialog_option  = 1;

It's in the game variables (http://www.adventuregamestudio.co.uk/manual/Gamevariables.htm) section.
Title: Re: How do you stop your character from saying the last dialog option automatically
Post by: Creator on Sun 30/10/2011 17:01:17
Similar to steptoe's example, I always have an "End Dialog" option with the code being something like:


@4
EGO: Well, bye.
NPC: See ya.
stop


Khris's example will stop the dialog from running the only remaining option and will, instead, make the player have to choose said option.
Title: Re: How do you stop your character from saying the last dialog option automatically
Post by: aussie on Sun 30/10/2011 17:25:53
Quote from: LeKhris on Sun 30/10/2011 16:41:22
Just put this in game_start:

 game.show_single_dialog_option  = 1;

It's in the game variables (http://www.adventuregamestudio.co.uk/manual/Gamevariables.htm) section.

I think this solution works best. Thanks!
Title: Re: How do you stop your character from saying the last dialog option automatically
Post by: Khris on Sun 30/10/2011 17:51:39
Creator: The problem is that this might be what aussie is doing already, but he doesn't want the game to automatically select the "End Dialog" option :)