Activating dialog options through dialog.

Started by Duckbutcher, Thu 07/09/2006 15:12:49

Previous topic - Next topic

Duckbutcher

Hi there,

Just a quick question - I'm not really up on the scripting side of AGS yet, so how would I go about activating a dialog option in one dialog by choosing an option in another dialog?

For example:

If I go to character 1 and say 'Do you have some jam?', he says 'no, but I believe character 2 does', I want to then be able to go to character 2 and say 'Character 1 says you have some jam'.

The only way I can do it so far is by activating the dialog option after the dialog with character 1. This is obviously no use bedcause it activates the option with character 2, even if I didn't ask character 1 about the jam.

Does that make sense?

Ashen

Wiki Entry: Running regular code in dialogs

You have to use the normal SetDialogOption / Dialog.SetOptionState command that way.
I know what you're thinking ... Don't think that.

Duckbutcher


SMF spam blocked by CleanTalk