Unlocking parts of Dialog.

Started by red runner, Thu 26/07/2007 20:51:01

Previous topic - Next topic

red runner

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.
"Life's too short for all this nonsense.:
  -Joseph Brophy

Ghost

#1
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.

red runner

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.
"Life's too short for all this nonsense.:
  -Joseph Brophy

Khris

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

Ashen

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)
I know what you're thinking ... Don't think that.

red runner

I can't get in to the manual. It keeps saying "Navigation to the webpage was canceled."

So my help file is broken.
"Life's too short for all this nonsense.:
  -Joseph Brophy

strazer

#6
Try the solution from this thread.

SMF spam blocked by CleanTalk