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

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

IF WEIGHT #1 /* Triggers after states #: 3 even though they appear after this state */
~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #17631 /* ~Well, as I said, the slavers remain at large within Athkatla, hidden at their base here in the slums. They have many children that are still enslaved.~ */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #17636 /* ~I know nothing of the defenses of the compound inside, however.  My stay there was brief and very long ago.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #17637 /* ~Very well, I will go to this compound and see if I cannot rid this city of its slavers once and for all.~ */
  IF ~~ THEN DO ~CreateCreature("ERIK",[4185.1114])
ActionOverride("Erik",Enemy())
Enemy()
~ EXIT
END

IF WEIGHT #0 ~Global("JonHit","GLOBAL",1)
~ THEN BEGIN 3 // from:
  SAY #17638 /* ~I see.  Well I shall have to think on this.  Can I see your services in the meantime?~ */
  IF ~~ THEN DO ~SetGlobal("JonHit","GLOBAL",2)
ChangeEnemyAlly(Myself,NEUTRAL)
ChangeEnemyAlly("Erik",NEUTRAL)
ClearAllActions()
ActionOverride("Erik",EscapeArea())
EscapeArea()
~ EXIT
END
