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

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

IF WEIGHT #2 /* Triggers after states #: 7 16 even though they appear after this state */
~True()
~ THEN BEGIN 0 // from:
  SAY #1372 /* ~Forgive my outburst as well, I am...(cough)... I am not myself. Come, we must go. I will see that slaver pay for this.~ */
  IF ~~ THEN REPLY #1385 /* ~Greater Yuan-Ti~ */ GOTO 2
  IF ~Global("HelpLothander","GLOBAL",1)
Global("ReturnedBook","GLOBAL",0)
~ THEN REPLY #1386 /* ~You do have a certain invective creativity, Korgan. Now, if only you could direct that skill for invention into something more cerebral, less bravado.~ */ GOTO 3
  IF ~Global("HelpLothander","GLOBAL",1)
Global("ReturnedBook","GLOBAL",0)
~ THEN REPLY #1387 /* ~Greater Yuan-Ti~ */ GOTO 4
  IF ~Global("BOYBODY","GLOBAL",0)
Global("HelpTremain","GLOBAL",1)
~ THEN REPLY #16579 /* ~Very true, <CHARNAME>, but I am Harper, as you know.  They ask that I bring you.  I will not make you go, and I will not leave you, but eventually we must.~ */ GOTO 13
END

IF ~~ THEN BEGIN 1 // from:
  SAY #1373 /* ~You!?  How did you find me?!  Blast, that Harper wench is cagey, but she is not with you?  Then my plan worked, she has withered and died!  I hope she suffered!~ [BARONP06] */
  IF ~~ THEN REPLY #1388 /* ~My red-cloaked sparrow-hawk, I could barely catch my sleep last night with all your arcane muttering.~ [HAERDA51] */ GOTO 2
  IF ~~ THEN REPLY #1389 /* ~CHAPTER SIX

As much as you have traveled, these last few feet to the surface have seemed the longest trek by far.  Your relief at seeing the light of the sky is palpable, even though you were not really fleeing the black of the Underdark, rather the constant treachery.  Unfortunately, even though the setting has changed, your immediate future still looks to be far from peaceful.  This area has been the staging ground for many recent battles, and judging from the faces of the beleaguered elven soldiers that now approach, there may be more to come.~ [CHAPT06] */ GOTO 3
  IF ~~ THEN REPLY #1390 /* ~Aye, I could write a play and you would be my entire cast and extras...~ */ GOTO 4
END

IF ~~ THEN BEGIN 2 // from: 1.0 0.0
  SAY #1374 /* ~Aye, I promise, dove.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 3 // from: 1.1 0.1
  SAY #1375 /* ~Not half as much as you are going to. You are too much of a bastard to live!~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 4 // from: 1.2 0.2
  SAY #1376 /* ~She is alive, and you ARE going to remove the curse because I am asking ever so nicely.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0 3.0
  SAY #1377 /* ~I have come to bargain with you. She still lives, so what do you want in exchange for removing your curse?~ */
  IF ~~ THEN REPLY #1391 /* ~Haerry, I have an idea for a play.~ [JANJAN50] */ EXIT
  IF ~~ THEN REPLY #1392 /* ~Please, Jan, my name is Haer'Dalis.~ [HAERDA60] */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.1
  SAY #1378 /* ~I am here to ask you to remove the curse. You have suffered and she has suffered. Lives need not be wasted.~ */
  IF ~~ THEN DO ~SetGlobal("HelpJalantha","GLOBAL",1)
~ JOURNAL #7038 /* ~~ */ EXIT
END

IF WEIGHT #0 ~PartyHasItem("BOOK08")
~ THEN BEGIN 7 // from:
  SAY #1379 /* ~Firkraag Prison Key~ */
  IF ~~ THEN REPLY #1393 /* ~You see, Haerry, Angus the Giant Beaver is ousted from house and home by the Bullywug bullies to embark on an epic quest that takes him to the next pond.~ */ DO ~GiveItem("SCRLJALA",LastTalkedToBy)
~ GOTO 9
  IF ~~ THEN REPLY #1394 /* ~Yes, epic. Go on.~ */ GOTO 10
  IF ~~ THEN REPLY #1395 /* ~No, no, no, this is only the beginning.  Along the way, he encounters Gurgen the Hormonal Moose and a friendship quickly develops between the two, seeing them through times of great trial and tribulation, though the friendship also caused a great deal of trial and tribulation, as you can well imagine.~ */ GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.2
  SAY #1380 /* ~Chieftain DigDag~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 9 // from: 7.0
  SAY #1381 /* ~Firkraag Prison Key~ */
  IF ~~ THEN REPLY #1396 /* ~You! That Harper wench led you right to me then... but she is slung over a shoulder like so much baggage! My plan has worked; she is dead! I hope she suffered!~ [BARONP07] */ DO ~TakePartyItem("BOOK08")
~ GOTO 12
  IF ~~ THEN REPLY #1397 /* ~Not half as much as you are going to. You are too much of a bastard to live!~ */ GOTO 11
END

IF ~~ THEN BEGIN 10 // from: 7.1
  SAY #1382 /* ~Chieftain DigDag~ */
  IF ~~ THEN DO ~TakePartyItem("BOOK08")
GiveItem("SCRLJALA",LastTalkedToBy)
SetGlobal("ReturnedBook","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 11 // from: 9.1
  SAY #1383 /* ~Yuan-Ti~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 12 // from: 9.0
  SAY #1384 /* ~My hound, my hound, my dog of war... do not invite death to come knocking at your door.  I am sure there be plenty of diversions awaiting your keen edge, anon.~ [HAERDA61] */
  IF ~~ THEN DO ~SetGlobal("ReturnedBook","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 0.3
  SAY #16580 /* ~Harpers will wait an eternity for vengeance or justice, though defining the two is sometimes difficult.  They made it clear I was to bring you to them.~ */
  IF ~~ THEN REPLY #16581 /* ~Certainly, you've piqued my interest.~ */ EXIT
  IF ~PartyGoldGT(1999)
~ THEN REPLY #16582 /* ~Certainly, you've piqued my interest.~ */ GOTO 15
END

IF ~~ THEN BEGIN 14 // from:
  SAY #16583 /* ~Please, do not make this difficult.  I have a duty to take you, and I will not rest easy until we have gone. I will not force you, but eventually we must go.~ */
  IF ~~ THEN DO ~Shout(1)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 15 // from: 13.1
  SAY #16584 /* ~Certainly, you've piqued my interest.~ */
  IF ~~ THEN DO ~SetGlobal("BOYBODY","GLOBAL",1)
GiveItem("MISC54",LastTalkedToBy)
TakePartyGold(2000)
~ EXIT
END

IF WEIGHT #1 ~False()~ THEN BEGIN 16 // from:
  SAY #17323 /* ~Hello to you again, my friend.  I see you have not yet found the key.  Is there a problem?~ */
  IF ~~ THEN EXIT
END
