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

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

IF WEIGHT #2 /* Triggers after states #: 8 12 even though they appear after this state */
~ReactionGT(LastTalkedToBy(),NEUTRAL_UPPER)
~ THEN BEGIN 0 // from:
  SAY #401 /* ~Invisible~ */
  IF ~~ THEN REPLY #411 /* ~Do you wish me to come and help in there? I would like to.~ [NALIA62] */ DO ~

~ GOTO 4
  IF ~~ THEN REPLY #412 /* ~No, you should remain here.~ */ GOTO 3
END

IF WEIGHT #3 /* Triggers after states #: 8 12 even though they appear after this state */
~ReactionLT(LastTalkedToBy(),FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy(),HOSTILE_UPPER)
~ THEN BEGIN 1 // from:
  SAY #402 /* ~Colors!~ */
  IF ~~ THEN REPLY #413 /* ~Yes, I could use the help.~ */ DO ~

~ GOTO 4
  IF ~~ THEN REPLY #414 /* ~Miss Nalia? Miss Nalia de'Arnise?~ */ GOTO 3
END

IF WEIGHT #4 /* Triggers after states #: 8 12 even though they appear after this state */
~ReactionLT(LastTalkedToBy(),NEUTRAL_LOWER)
~ THEN BEGIN 2 // from:
  SAY #403 /* ~Very well, but look out for other servants. We must save all we can.~ */
  IF ~~ THEN DO ~

~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 1.1 0.1
  SAY #405 /* ~I've always said that bird magic is the most difficult.~ */
  IF ~~ THEN REPLY #6274 /* ~A refusal may jeopardize your relationship with Mae'Var. Perhaps that is your intent? I begin to wonder if you are so dedicated to this place. (Yes, wonder.)~ */ DO ~

~ GOTO 9
  IF ~~ THEN REPLY #6275 /* ~Sorry, I still refuse.~ */ DO ~SetGlobalTimer("Kivan","GLOBAL",FIVE_DAYS)
JoinParty()
~ GOTO 10
  IF ~~ THEN REPLY #6276 /* ~Fine then. I'll look into the job. Though I will perform no senseless murder.~ */ GOTO 7
END

IF ~~ THEN BEGIN 4 // from: 1.0 0.0
  SAY #406 /* ~Good. We will make short work of them, I am sure.~ */
  IF ~~ THEN DO ~

~ EXIT
END

IF ~~ THEN BEGIN 5 // from:
  SAY #407 /* ~Shouldn't this spell do something?~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from:
  SAY #408 /* ~Gems!~ */
  IF ~~ THEN REPLY #418 /* ~Projectile changed~ */ DO ~

~ GOTO 9
  IF ~~ THEN REPLY #419 /* ~Charges drained~ */ DO ~SetGlobalTimer("Kivan","GLOBAL",FIVE_DAYS)
JoinParty()
~ GOTO 10
END

IF ~~ THEN BEGIN 7 // from: 3.2
  SAY #409 /* ~Where's that music coming from?~ */
  IF ~~ THEN REPLY #420 /* ~What's this in my pocket?~ */ DO ~

~ JOURNAL #11817 /* ~Coran and the Wolfweres

I have encountered Coran, who told me that Safana has been kidnapped by a group of wolfweres.  He does not know what they intend, and has bade me come quickly to the wolfwere encampment nearby to the east.~ */ GOTO 9
  IF ~~ THEN REPLY #6280 /* ~No dice. Not a chance.~ */ DO ~SetGlobalTimer("Kivan","GLOBAL",FIVE_DAYS)
JoinParty()
~ GOTO 10
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 8 // from:
  SAY #6281 /* ~We've little else on the go, so yes we will undertake your mission.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 9 // from: 7.0 6.0 3.0
  SAY #7069 /* ~I think she warms to our company, Boo.  See how she looks longingly?~ */
  IF ~~ THEN DO ~

~ EXIT
END

IF ~~ THEN BEGIN 10 // from: 7.1 6.1 3.1
  SAY #7070 /* ~Righteous Magic~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 11 // from: KOCH:0.1
  SAY #14362 /* ~Well, there's several if ye would look, first, and not just barge into houses demandin' directions.  Someone like ye should be tryin' the Adventure Mart, methinks.~ */
  IF ~~ THEN DO ~LeaveParty()
SetDialog("Kivanp")
~ EXIT
END

IF WEIGHT #1 ~False()~ THEN BEGIN 12 // from: KOCH:0.0
  SAY #14363 /* ~Well, you can stand still and hold your sharp tongue while I rob you blind.~ */
  IF ~~ THEN DO ~LeaveParty()
EscapeArea()
~ EXIT
END
