// creator  : weidu.exe (version 23600)
// argument : KIVANP.DLG
// game     : .
// source   : ./override/KIVANP.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

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

IF WEIGHT #1 /* Triggers after states #: 6 even though they appear after this state */
~  HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
~ THEN BEGIN 0 // from:
  SAY #15812 /* ~I am glad to rid myself of such burdensome companions.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
EscapeArea()
~ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 6 even though they appear after this state */
~  !HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
Global("KickedOut","LOCALS",0)
~ THEN BEGIN 1 // from:
  SAY #15813 /* ~It is a good time for us to go our separate ways. Perhaps we shall meet again.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
~ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 6 even though they appear after this state */
~  !HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
Global("KickedOut","LOCALS",1)
~ THEN BEGIN 2 // from:
  SAY #15844 /* ~It is good that you have returned, for there is much important work left to be done.~ */
  IF ~~ THEN REPLY #15845 /* ~Work that shall have to wait, I'm afraid. I do not wish to have you back just yet.~ */ GOTO 3
  IF ~~ THEN REPLY #15846 /* ~I would tend to agree. Perhaps we should rejoin and continue on our way.~ */ GOTO 4
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #15847 /* ~That is your decision to make, but I won't wait an eternity.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
ChangeAIScript("",DEFAULT)
~ EXIT
END

IF ~~ THEN BEGIN 4 // from: 2.1
  SAY #15848 /* ~A wise choice. Lead on.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",0)
JoinParty()
~ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 6 even though they appear after this state */
~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 5 // from:
  SAY #16634 /* ~All I can tell you friend, is that you must help me gain revenge. The evil ogre Tazok killed my lover, Deheriana. He must suffer for that act, and I will ensure that he does!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~  Global("X#XQSlavesExchanged","GLOBAL",1)
~ THEN BEGIN 6 // from:
  SAY #48348 /* ~Shevarash, give us strength!~ */
  IF ~~ THEN EXIT
END
