Help on alternative choices in dialogue

Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).
AuthorTopic: Help on alternative choices in dialogue
Warrior
Member # 2838
Profile #0
I've seen that in Blades of Avernum scenarios there are dialogues where you have to give your opinion about something and that question is just asked once. May someone tell me how is this done or is there a place where I can find a tutorial on dialogue?

Thanks

--------------------
…../|,-‘`¯¯`\(o)_\,----,,,_………
…( `\(o),,_/` ¯ : o : :: o`-, … I'm under your bed.
Posts: 118 | Registered: Wednesday, April 2 2003 08:00
Off With Their Heads
Member # 4045
Profile Homepage #1
Do this with the condition and action parts of the dialogue script. It would look something like this:

begintalknode 1;
state = 1;
personality = 1;
nextstate = 2;
condition = get_flag(0,0) == 0;
question = "Person name";
text1 = "Yes or no?";

begintalknode 2;
state = 2;
personality = 1;
nextstate = 1;
question = "Yes.";
text1 = "You just said yes.";
action = SET_SDF 0 0 1;

begintalknode 3;
state = 2;
personality = 1;
nextstate = 1;
question = "No.";
text1 = "You just said no.";
action = SET_SDF 0 0 2;


--------------------
Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens.
Smoo: Get ready to face the walls!
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!: the authorized location for all things by me
The Archive of all released BoE scenarios ever
Posts: 7968 | Registered: Saturday, February 28 2004 08:00
Warrior
Member # 2838
Profile #2
Thanks, I was also wondering you can you force the end of a dialogue. I remember there was an option for that in Blades of Exile, but I can't find it on Blades of Avernum.

--------------------
…../|,-‘`¯¯`\(o)_\,----,,,_………
…( `\(o),,_/` ¯ : o : :: o`-, … I'm under your bed.
Posts: 118 | Registered: Wednesday, April 2 2003 08:00
Off With Their Heads
Member # 4045
Profile Homepage #3
Yes. Either

action = END_TALK;

or

code =
// whatever
end();
break;

[ Wednesday, July 21, 2004 11:23: Message edited by: Kelandon ]

--------------------
Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens.
Smoo: Get ready to face the walls!
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!: the authorized location for all things by me
The Archive of all released BoE scenarios ever
Posts: 7968 | Registered: Saturday, February 28 2004 08:00