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

BEGIN ~KAYPAL01~

IF ~NumTimesTalkedTo(0)
OR(2)
!InParty("Keldorn")
!See("Keldorn")~ THEN BEGIN 0 // from:
  SAY #31774 /* ~So, you wish to join us <CHARNAME>? My men have spoken highly of you.~ */
  IF ~~ THEN REPLY #31779 /* ~No, I have changed my mind.~ */ GOTO 1
  IF ~~ THEN REPLY #31778 /* ~Yes, I shall join you.~ */ DO ~AddexperienceParty(7250)~ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #31783 /* ~Fool!  You cannot refuse my offer and live.~ */
  IF ~Dead("kaypall")~ THEN DO ~SetGlobal("KaylAnargAttack","GLOBAL",1)
Enemy()~ EXIT
  IF ~!Dead("kaypall")~ THEN EXTERN ~KAYPAL02~ 27
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #31786 /* ~You lie.  There is no way that you could have retrieved the cup so easily.  I still have ears within the Order and I know the task that Ryan Trawl has asked of you.~ */
  IF ~Dead("kaypall")~ THEN GOTO 3
  IF ~!Dead("kaypall")~ THEN EXTERN ~KAYPAL02~ 26
END

IF ~~ THEN BEGIN 3 // from: KAYPAL02:26.0 5.0 2.0
  SAY #31788 /* ~You've come to slay me.  Draw your swords and do your best.~ */
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Anomen")~ THEN DO ~SetGlobal("KaylAnargAttack","GLOBAL",1)
Enemy()~ EXIT
  IF ~IsValidForPartyDialog("Keldorn")~ THEN DO ~SetGlobal("KaylAnargAttack","GLOBAL",1)
Enemy()~ EXTERN ~KELDORJ~ 133
  IF ~!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Anomen")~ THEN DO ~SetGlobal("KaylAnargAttack","GLOBAL",1)
Enemy()~ EXTERN ~ANOMENJ~ 201
END

IF ~~ THEN BEGIN 4 // from: KAYPAL02:27.0
  SAY #59885 /* ~You trust too easily still, Reynald.  We cannot allow ourselves to be exposed!~ */
  IF ~~ THEN EXTERN ~KAYPAL02~ 28
END

IF ~NumTimesTalkedTo(0)
InParty("Keldorn")
See("Keldorn")~ THEN BEGIN 5 // from:
  SAY #59886 /* ~You are a fool to bring Keldorn before me.  Do you think I would not recognize him, even after all this time?  I still have ears in the Order... I know why you are here, Sir Keldorn.~ */
  IF ~Dead("kaypall")~ THEN GOTO 3
  IF ~!Dead("kaypall")~ THEN EXTERN ~KAYPAL02~ 26
END
