// creator  : weidu.exe (version 23100)
// argument : _KIERES.DLG
// game		 : .
// source	 : ./override/_KIERES.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

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

IF WEIGHT #0 ~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #85110 /* ~Aargh, I be almost ready for the salts and who be botherin' me now?~ */
  IF ~~ THEN REPLY #85111 /* ~Hail, Captain. I have been sent by the League to inquire if there is anything else you'll be needing before you set sail.~ */ GOTO 1
  IF ~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN REPLY #85112 /* ~Why, the new deckhands ye requested, sirrah! And as fer meself, I be a fine slop-cook, too...~ */ GOTO 2
  IF ~ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
~ THEN REPLY #85112 /* ~Why, the new deckhands ye requested, sirrah! And as fer meself, I be a fine slop-cook, too...~ */ GOTO 3
  IF ~~ THEN REPLY #85113 /* ~Excuse me, good sir, but could you direct me to your sea charts that I might examine them awhile?~ */ GOTO 4
END

IF WEIGHT #1 ~NumberOfTimesTalkedTo(1)
Global("tranion","GLOBAL",0)
~ THEN BEGIN 1 // from: 0.0
  SAY #85114 /* ~Aye, then... A jug o' this town's hardest liquor would make for a fine departure, if ye'd be so kind.  Old De'Tranion brews a vile swill at'll do the trick.  Ye can find the old coot at the Blushing Mermaid.~ */
  IF ~~ THEN DO ~SetGlobal("tranion","GLOBAL",1)
~ UNSOLVED_JOURNAL #85115 /* ~The sea charts

I may have located the sea charts, but I need to appease Captain Tollar Kieres before I can get a good look around.  He wants some swill from a man named De'Tranion, who can be found at the Blushing Mermaid tavern in Baldur's Gate.~ */ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #85116 /* ~New deckhands be yer tale? Har, I've got more deckhands than days o' the year and I sure as salt didn't go beggin' about fer more... Ah, but ne'ermind that. I like yer face and if ye want to wash me decks and cook me slop that desperately, I can't see no harm in it. We'll just throw the lazier ones o'erboard once we leave port, har! Go on now, wander 'bout the building 'till we're ready to put ya ta work on my ship.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #85118 /* ~New deckhands be yer tale? Har, I've got more deckhands than days o' the year and I sure as salt didn't go beggin' about fer more... Come, mates, we've found ourselves a spot o' trouble that could using a cleanin'!~ */
  IF ~~ THEN DO ~Shout(2727)
Enemy()
~ SOLVED_JOURNAL #85119 /* ~The sea charts

I tried to talk my way past Captain Tollar Kieres so I could find those blasted sea charts, but he would have none of it.  Ahh well, either sneaking or fighting I'll leave no witnesses.~ */ EXIT
END

IF ~~ THEN BEGIN 4 // from: 0.3
  SAY #85120 /* ~Direct you to me sea charts, is that what yer askin'? Ho, not only be it the worst of all bad luck to let another see it 'afore ye sail, but it's also flyin' in the face of ev'ry scrap o' League policy on the matter! Quick, mates, let's garner us some corpses fer Umberlee, should the weather fall sour...~ */
  IF ~~ THEN DO ~Shout(2727)
Enemy()
~ SOLVED_JOURNAL #85119 /* ~The sea charts

I tried to talk my way past Captain Tollar Kieres so I could find those blasted sea charts, but he would have none of it.  Ahh well, either sneaking or fighting I'll leave no witnesses.~ */ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 6 even though they appear after this state */
~Global("tranion","GLOBAL",1)
!PartyHasItem("_MISC97")
~ THEN BEGIN 5 // from:
  SAY #85121 /* ~Come, ye stuffy-sacks, where be that swill of De'Tranion's!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~PartyHasItem("_MISC97")
~ THEN BEGIN 6 // from:
  SAY #85122 /* ~Ah, there be the good stuff to put a sting in yer eyes: De'Tranion's Old Baalor Ale. Cheers to the Merchant League, fer all their many kindnesses!~ */
  IF ~~ THEN REPLY #85123 /* ~Cheers to the Merchant League!~ */ DO ~TakePartyItem("_MISC97")
~ GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #85124 /* ~Aye, that's the stuff! Be a good lad and hold these sea charts fer me. I'm feeling a bit woozy...~ */
  IF ~~ THEN DO ~EraseJournalEntry(85115)
EraseJournalEntry(79739)
EraseJournalEntry(79733)
GiveItem("_MISC1C",LastTalkedToBy)
~ SOLVED_JOURNAL #85117 /* ~The sea charts

I outwitted old Captain Tollar Kieres, though I can't say it was all that difficult.  He spends a lot more time in a bottle than on the seas, I'll wager.~ */ EXIT
END

IF ~~ THEN BEGIN 8 // from:
  SAY #85125 /* ~Aye, we shan't sail for a while yet. The weather's run afoul in the pit of me stomach.~ */
  IF ~~ THEN EXIT
END
