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

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

IF ~~ THEN BEGIN 0 // from: 7.1 2.0
  SAY #2398 /* ~Belly up, comrades, and let Korgan flail the bladder for a spell.~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 1 // from: 15.1 7.0 2.1
  SAY #2392 /* ~Fine, lilywhites!  Return when ye have found yer courage, if ye've 'ere felt its touch!
~ */
  IF ~~ THEN DO ~SetGlobal("NoStory","GLOBAL",1)
~ EXIT
END

IF WEIGHT #0 ~NumTimesTalkedTo(0)
~ THEN BEGIN 2 // from:
  SAY #2399 /* ~Drink Hail! Wassail for all! I be curious, friends. I'm scouring for a band of desperate men to aid me in a gallant task.  Ye look like ye keep undertakers in a brisk trade. 'Ave ye courage and time fer a tale?~ [KORGAN01] */
  IF ~~ THEN REPLY #2401 /* ~We'll listen to your tale.~ */ GOTO 0
  IF ~~ THEN REPLY #2400 /* ~Thanks but no thanks. We've other matters to attend to.~ */ GOTO 1
END

IF ~~ THEN BEGIN 3 // from: 0.0
  SAY #2405 /* ~A fortnight past, me fellows and I were in the midst of obtaining an ancient text fer our patron when a skirmish visited our midst. Vile words, alas, became a lake of bloodshed.~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 4 // from: 15.0
  SAY #2407 /* ~Pimlico collects books just fer the pleasure of collecting.  Arcane, bizarre, peculiar; it matters not.~ */
  IF ~~ THEN DO ~SetGlobal("TalkedAboutPimlico","GLOBAL",1)~ GOTO 16
END

IF ~~ THEN BEGIN 5 // from: 17.0
  SAY #2403 /* ~In some hobnail's tomb over in the lower crypts of the Grave District. It's nay abandoned but rumors and half-truths only scare the young and infirm. Keeps the curious away, me guess.~ */
  IF ~~ THEN REPLY #2409 /* ~Is there something we should know about this tomb?~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #2408 /* ~Well... it'll take far more than a few shambling bags of skin and stitches to deter Korgan Bloodaxe from a king's ransom! A foolhardy jaunt into a hive of undead?  How could ye resist?~ */
  IF ~~ THEN REPLY #2500 /* ~We'll join you in plundering this crypt of its riches.~ */ GOTO 9
  IF ~Global("chapter","GLOBAL",2)
Global("ShadowWork","GLOBAL",1)~ THEN REPLY #46101 /* ~Very well.  I need to gather a large amount of gold to rescue a friend, so I'll join you.~ */ GOTO 9
  IF ~~ THEN REPLY #2501 /* ~We want nothing to do with you or your mad schemes.~ */ GOTO 10
  IF ~~ THEN REPLY #2502 /* ~We'll join you on one condition... you pay us.~ */ GOTO 11
  IF ~~ THEN REPLY #2503 /* ~We have no time at present, but may soon.~ */ GOTO 10
END

IF WEIGHT #2 /* Triggers after states #: 8 even though they appear after this state */
~Global("NoStory","GLOBAL",1)
~ THEN BEGIN 7 // from:
  SAY #2498 /* ~I hate Amn. I hate the heat, the squalor, the desperation. Everyone has the silver-tongue here. I hate the stagnant, lant-tepid brew... Oh! Friends! Ye'd hear me tale then?~ [KORGAN73] */
  IF ~~ THEN REPLY #2462 /* ~No, your tale holds no interest for us.~ */ GOTO 1
  IF ~~ THEN REPLY #2465 /* ~Yes, tell us your tale then, dwarf.~ */ GOTO 0
END

IF WEIGHT #1 ~Global("RefuseKorgan","GLOBAL",1)
~ THEN BEGIN 8 // from:
  SAY #2499 /* ~Aye, so ye'd still be interested in my proposal then? Howe'er ye've mustered yer resolve, gird your loins so I've no witness to bear to weakness. We've a job to do.~ [KORGAN72] */
  IF ~~ THEN REPLY #2512 /* ~Yes, we will join your cause and fight the good fight.~ */ GOTO 9
  IF ~~ THEN REPLY #2513 /* ~No, your cause curries no favor with us.~ */ GOTO 13
END

IF ~~ THEN BEGIN 9 // from: 11.1 11.0 8.0 6.1 6.0
  SAY #2504 /* ~Drink Hail! Then let us posthaste to the crypt and riches beyond ken!~ */
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #42181 /* ~One thing first... I should tell you that I intend to rescue an old friend of mine named Imoen, and this takes precedence over anything else.~ */ DO ~SetGlobalTimer("KorganBook","GLOBAL",TWO_DAYS)~ UNSOLVED_JOURNAL #2057 /* ~Help Korgan recover the Book of Kaza.

I have joined with Korgan Bloodaxe to gain the Book of Kaza for a collector by the name of Pimlico. It is apparently in a tomb beneath the Grave District.  One of the crypts apparently leads to a lower, older section rumored to contain undead... but also the tome.~ */ GOTO 18
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #58696 /* ~You should know... I intend to hunt down a rather powerful wizard by the name of Irenicus.  There is considerable danger involved.~ */ DO ~SetGlobalTimer("KorganBook","GLOBAL",TWO_DAYS)~ UNSOLVED_JOURNAL #2057 /* ~Help Korgan recover the Book of Kaza.

I have joined with Korgan Bloodaxe to gain the Book of Kaza for a collector by the name of Pimlico. It is apparently in a tomb beneath the Grave District.  One of the crypts apparently leads to a lower, older section rumored to contain undead... but also the tome.~ */ GOTO 21
  IF ~~ THEN REPLY #42182 /* ~Fine, let's go.~ */ DO ~SetGlobalTimer("KorganBook","GLOBAL",TWO_DAYS)
JoinParty()~ UNSOLVED_JOURNAL #2057 /* ~Help Korgan recover the Book of Kaza.

I have joined with Korgan Bloodaxe to gain the Book of Kaza for a collector by the name of Pimlico. It is apparently in a tomb beneath the Grave District.  One of the crypts apparently leads to a lower, older section rumored to contain undead... but also the tome.~ */ EXIT
END

IF ~~ THEN BEGIN 10 // from: 6.4 6.2
  SAY #2505 /* ~Fine then, bowelhives! I'll be stirring dirt in the lavoratory if ye change yer middling minds. Then about the tavern, should ye ponder further.~ */
  IF ~~ THEN DO ~SetGlobal("RefuseKorgan","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 11 // from: 6.3
  SAY #2506 /* ~Nay, longlimbs. Ye're forcing me to be a bastard, and while that may be easy, free is the price. Leave it or take it.~ */
  IF ~OR(2)
!Global("chapter","GLOBAL",2)
!Global("ShadowWork","GLOBAL",1)~ THEN REPLY #2507 /* ~Fine, then.  Free it is.  So long as we get a portion of the treasure.~ */ GOTO 9
  IF ~Global("chapter","GLOBAL",2)
Global("ShadowWork","GLOBAL",1)~ THEN REPLY #46103 /* ~Fine, then.  Free it is.  So long as we get a portion of the treasure to help Imoen.~ */ GOTO 9
  IF ~~ THEN REPLY #2508 /* ~How do you say in Dwarvish "We want money"?~ */ GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.2
  SAY #2509 /* ~I were sorely mistaken to think I'd find heroes amongst yer sorry lot.  No pay, only rewards. I'll be herein should ye change that greedhead mind.~ */
  IF ~~ THEN DO ~SetGlobal("RefuseKorgan","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 8.1
  SAY #2514 /* ~I'll be stewing prunes o'er a few spiced meads while you ponder.  Perhaps we'll speak again, and ye will have grown some courage to replace the fear that cancers ye.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 14 // from: 3.0
  SAY #17725 /* ~So it goes the sacred grimoire ne'er made it to our benefactor's hand. And now he awaits its arrival with a zeal reserved for a grog-blossom in an alekeg.~ */
  IF ~~ THEN GOTO 15
END

IF ~~ THEN BEGIN 15 // from: 14.0
  SAY #17726 /* ~The scuttlebutt is the pay is handsome and worthy of note--sacks of loot and odd magics. The volume sits not far from 'ere and the bibliomaniac he paces the floor in the meantime.~ */
  IF ~~ THEN REPLY #2404 /* ~Who is this book collector?  Why his interest in this particular timeworn manual?~ */ GOTO 4
  IF ~~ THEN REPLY #2410 /* ~We've heard enough of your tale, bugger off now.~ */ GOTO 1
END

IF ~~ THEN BEGIN 16 // from: 4.0
  SAY #17729 /* ~Upon hearin' of a curious map, chart or book 'e's traveled countless leagues to obtain it, fearful of entrusting his commission to anyone else. This were his first outside hire.~ */
  IF ~~ THEN GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #17730 /* ~As fer the book itself, it nay matters to me what lays 'twixt its skins. I'll not risk knowing I've bled for Elminster's memoirs or a Drizzt loblolly recipe. 'Tis called the Book of Kaza.~ */
  IF ~~ THEN REPLY #17731 /* ~Where is the book then, Korgan?~ */ GOTO 5
END

IF ~~ THEN BEGIN 18 // from: 9.0
  SAY #42183 /* ~Harumph.  So long as we be headin' to the tomb, I have nay a care what ye does afterwards to find yer girlie.  Mmm... what does the lass need rescuing from, if ye be tellin'?~ */
  IF ~~ THEN REPLY #42184 /* ~She's being held prisoner by the Cowled Wizards, and I'm not about to leave her there.~ */ GOTO 19
  IF ~~ THEN REPLY #42186 /* ~That's none of your concern.~ */ GOTO 20
END

IF ~~ THEN BEGIN 19 // from: 18.0
  SAY #42185 /* ~Har!  I've nay a liking fer base dabblers in the blacker arts.  Mayhap I might be joinin' ye to slaughter a few of the bastards, eh?  But yon book comes first!~ */
  IF ~~ THEN DO ~JoinParty()~ EXIT
END

IF ~~ THEN BEGIN 20 // from: 18.1
  SAY #42187 /* ~Aye, so it's like that, is it?  We gather yon book, first, then... and if ye still wishes me to be helpin' ye with the girlie, I'll decide it then!  But off we go!~ */
  IF ~~ THEN DO ~JoinParty()~ EXIT
END

IF ~~ THEN BEGIN 21 // from: 9.1
  SAY #58697 /* ~So long as ye helps me plunder me tomb as I ask, I'll join ye in skinning yer mage, if it pleases ye.  The mage'll be no danger with an axe in his belly, sure enough.~ */
  IF ~~ THEN DO ~JoinParty()~ EXIT
END
