Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: red runner on Thu 26/07/2007 20:51:01

Title: Unlocking parts of Dialog.
Post by: red runner on Thu 26/07/2007 20:51:01
I was wondering how to enable parts of a dialog AFTER another dialog is explored. Basically, I want an NPC to mention GroupX, and then make the dialog option "Tell me more about GroupX." So, basically, I guess I'm trying to figure out how to make progressive dialog.
Title: Re: Unlocking parts of Dialog.
Post by: on Thu 26/07/2007 21:13:59
That's easy. Read the manual about Dialog.SetOptionState and Dialog.GetOptionState. The first allows you to change an option to on/off/forever on/ forever off, and since this command can be called from any script you happen to write, including other dialogs, it's your tool of choice. All you need to do is prepare all the lines a dialog should hold, and then you can hide and activate them from everywhere- your example is obvious and easy to achieve, but you could also, say, have the player see a newspaper somewhere, and as soon as he reads it, he can ask Character X about something he read. All topics retain their order, so some careful planning is inevitable.

In fact, I even use it to nest three totally different dialog trees in one single Dialog. It's messy but totally possible.
Title: Re: Unlocking parts of Dialog.
Post by: red runner on Fri 27/07/2007 16:02:27
Um, ok, but what do you mean, manual?
Are you talking about the help file that came with AGS, or something on this website?

I know this sounds stupid, but I haven't seen any manual.
Title: Re: Unlocking parts of Dialog.
Post by: Khris on Fri 27/07/2007 16:09:44
Yes, Ghost is talking about the help file. It's commonly known as manual here since it explains every aspects of AGS. In detail.
Check the section Scripting -> Text display / Speech functions.

Dialog commands are explained there. Or look it up online: http://www.adventuregamestudio.co.uk/manual/Text%20display%20_%20Speech%20functions.htm
Title: Re: Unlocking parts of Dialog.
Post by: Ashen on Fri 27/07/2007 16:33:13
Do people just not read the 'Read Before Posting' thread, then?

Quote
READ THE MANUAL!

Take a look at the manual. That's what it's there for. It even has a Search feature, for crying out loud. It's the "AGS-HELP.CHM" help file ("AGS.CHM" before V2.7) that comes with AGS. Either press F1 in AGS itself, or double-click on the AGS-HELP.CHM file in the AGS main directory. (Available on-line Right Here (http://www.adventuregamestudio.co.uk/manual/))
Title: Re: Unlocking parts of Dialog.
Post by: red runner on Sat 28/07/2007 20:10:28
I can't get in to the manual. It keeps saying "Navigation to the webpage was canceled."

So my help file is broken.
Title: Re: Unlocking parts of Dialog.
Post by: strazer on Sat 28/07/2007 20:22:49
Try the solution from this thread (http://www.adventuregamestudio.co.uk/forums/index.php?topic=22875).