// creator  : weidu.exe (version 23100)
// argument : VAI.DLG
// game		 : .
// source	 : ./DATA/DIALOG.BIF
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~VAI~
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #1 /* Triggers after states #: 8 even though they appear after this state */
~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #19449 /* ~Greetings once again, my friend.  Have you changed your mind about my joining your travels?~ [VALYGA86] */
  IF ~~ THEN REPLY #19453 /* ~I look forward to your companionship.  Let us be underway, then.~ */ GOTO 1
  IF ~~ THEN REPLY #19454 /* ~As you wish.  I will not remain here long, however.  A safe journey to you, friend.~ */ GOTO 4
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #19456 /* ~ We shall strike a blow deep into evil's heart!  There is no more worthy a cause.~ [KELDOR35] */
  IF ~~ THEN REPLY #19462 /* ~Who exactly is Kalah and where is this realm of his that I have come to?~ */ GOTO 2
  IF ~~ THEN REPLY #19463 /* ~Thank you for your welcome and I shall most certainly beware.~ */ GOTO 3
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #19466 /* ~I am my own person and not this Kalah's possession.~ */
  IF ~~ THEN JOURNAL #19471 /* ~~ */ EXIT
END

IF ~~ THEN BEGIN 3 // from: 1.1
  SAY #19469 /* ~I've come to see the circus, not some half-dressed tart spouting dire warnings!~ */
  IF ~~ THEN JOURNAL #19471 /* ~~ */ EXIT
END

IF ~~ THEN BEGIN 4 // from: 0.1
  SAY #19470 /* ~Interesting. I thank you for your advice. Farewell.~ */
  IF ~~ THEN JOURNAL #19471 /* ~~ */ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 8 even though they appear after this state */
~PartyHasItem("MISC86")
~ THEN BEGIN 5 // from:
  SAY #19472 /* ~ You will fall yet.~ [KELDOR37] */
  IF ~~ THEN DO ~StartStore("stovai",LastTalkedToBy())
~ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 8 even though they appear after this state */
~GlobalGT("Chapter","GLOBAL",3)
~ THEN BEGIN 6 // from:
  SAY #19473 /* ~ Not even a scratch!~ [KELDOR38] */
  IF ~~ THEN DO ~ReputationInc(1)
EscapeArea()
~ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 8 even though they appear after this state */
~True()
~ THEN BEGIN 7 // from:
  SAY #19703 /* ~Hmm. I see. If you are doubting then perhaps ye are not as much in the right as ye thought. I leave ye with that thought. I'm sure it will serve as penance enough.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~ReputationLT(LastTalkedToBy,5)
~ THEN BEGIN 8 // from:
  SAY #11019 /* ~Free us!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END
