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

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

IF WEIGHT #2 /* Triggers after states #: 2 3 even though they appear after this state */
~HappinessLT(Myself,0)
~ THEN BEGIN 0 // from:
  SAY #16635 /* ~Oh... I see.  Of course, my Lord.  I... hope my companionship will please you.~ */
  IF ~~ THEN DO ~LeaveParty()
Enemy()
~ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 2 3 even though they appear after this state */
~True()
~ THEN BEGIN 1 // from:
  SAY #16636 /* ~Bless you, my Lord.  It is too much to hope for, but I wish you well.~ */
  IF ~~ THEN DO ~LeaveParty()
SetDialog("KivanP")
~ EXIT
END

IF WEIGHT #0 ~GlobalTimerExpired("Kivan","GLOBAL")
Global("FindBandits","GLOBAL",0)
~ THEN BEGIN 2 // from:
  SAY #17225 /* ~Green is my preference.~ */
  IF ~~ THEN DO ~SetGlobalTimer("Kivan","GLOBAL",FIVE_DAYS)
SetGlobal("FindBandits","GLOBAL",1)
~ EXIT
END

IF WEIGHT #1 ~GlobalTimerExpired("Kivan","GLOBAL")
Global("FindBandits","GLOBAL",1)
~ THEN BEGIN 3 // from:
  SAY #17226 /* ~Black is preferable to any other.~ */
  IF ~~ THEN DO ~LeaveParty()
EscapeArea()
~ EXIT
END
