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

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

IF WEIGHT #1 /* Triggers after states #: 18 even though they appear after this state */
~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #82470 /* ~'Allo mates. Calahan, I be, scourge of fish in th' seven seas. A'int seen ye before. New, ye be?~ */
  IF ~~ THEN REPLY #82471 /* ~Verily, I am here to meet a gentleman scholar by the name of Mendas.~ */ DO ~SetGlobal("CalTalk","GLOBAL",1)
~ GOTO 2
  IF ~~ THEN REPLY #82472 /* ~Indeed, it is my first visit to lovely Ulgoth's Beard; situated on the lovely Sword Coast, a short carriage ride from downtown Baldur's Gate.~ */ DO ~SetGlobal("CalTalk","GLOBAL",1)
~ GOTO 1
  IF ~~ THEN REPLY #82473 /* ~Argh, mate! Born 'n raised in th' beard, I be. Got brine in me blood an' a sea chanty on me breath.~ */ DO ~SetGlobal("CalTalk","GLOBAL",1)
~ GOTO 3
  IF ~~ THEN REPLY #82474 /* ~Watch where you stick your nose or else I'll cut it off.~ */ DO ~SetGlobal("CalTalk","GLOBAL",1)
~ GOTO 6
END

IF ~~ THEN BEGIN 1 // from: 0.1
  SAY #82475 /* ~A silver tongue ye have. Th' Beard is lovely as a mule's ass an' it smells like a ten-day-fish. Welcome, all! May th' fleas be kind an' th' ladies kinder.~ */
  IF ~~ THEN REPLY #82476 /* ~Thank you, good sir.~ */ GOTO 4
  IF ~~ THEN REPLY #46077 /* ~Huh?~ */ GOTO 5
  IF ~~ THEN REPLY #82477 /* ~I'm a little busy, at present. I cannot stay to chat.~ */ GOTO 7
END

IF ~~ THEN BEGIN 2 // from: 17.1 5.1 4.1 3.0 0.0
  SAY #82478 /* ~Mendas, eh? 'E's a grim sort. Ne'er a kind word or a 'ow's-yur-auntie?~ */
  IF ~~ THEN REPLY #82479 /* ~I assume that you know him. Perhaps you could share your perceptions of the fellow.~ */ GOTO 8
  IF ~ReactionLT(LastTalkedToBy(Myself),NEUTRAL_LOWER)
~ THEN REPLY #82480 /* ~A miserable scalliwag he be. Known him long 'ave ye?~ */ GOTO 8
  IF ~~ THEN REPLY #82481 /* ~I'll hear no unkind words regarding my employer. Away with you, sea rat!~ */ GOTO 6
  IF ~ReactionGT(LastTalkedToBy(Myself),HOSTILE_UPPER)
~ THEN REPLY #82482 /* ~He's a miserable scalliwag, he is. Known him long 'ave ye?~ */ GOTO 9
  IF ~Global("X#VicCalahan","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VicCalahan","GLOBAL",1)~ EXTERN ~_VICONJ~ 49
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #82483 /* ~'Tis a lie as sure as Mistress Mallory got the pox. I ne'er laid me eyes on yer loverly form 'afore this day.~ */
  IF ~~ THEN REPLY #82484 /* ~Ye 'ave caught me, fair and true. 'M only here t' meet a feller named Mendas.~ */ GOTO 2
  IF ~~ THEN REPLY #82485 /* ~A liar ye call me! I'll have nun a yer lip! Leave me be.~ */ GOTO 7
END

IF ~~ THEN BEGIN 4 // from: 1.0
  SAY #82486 /* ~'Tis nothin'. Ye look a mite floundered, mates. Can I be o' assistance.~ */
  IF ~~ THEN REPLY #82487 /* ~Nay, filthy one. I do well without your help.~ */ GOTO 7
  IF ~~ THEN REPLY #82488 /* ~Aye, you can. Know you Mendas of Waterdeep?~ */ GOTO 2
  IF ~~ THEN REPLY #82489 /* ~I be'n on th' road fer many a day an' I be lookin' fer th' company of th' opposite sex.~ */ GOTO 10
END

IF ~~ THEN BEGIN 5 // from: 1.1
  SAY #82490 /* ~Ne'er ye mind. Ye look a mite floundered, mates. Can I be o' assistance?~ */
  IF ~~ THEN REPLY #82487 /* ~Nay, filthy one. I do well without your help.~ */ GOTO 7
  IF ~~ THEN REPLY #82488 /* ~Aye, you can. Know you Mendas of Waterdeep?~ */ GOTO 2
  IF ~~ THEN REPLY #82489 /* ~I be'n on th' road fer many a day an' I be lookin' fer th' company of th' opposite sex.~ */ GOTO 10
END

IF ~~ THEN BEGIN 6 // from: 8.1 2.2 0.3
  SAY #82491 /* ~Darn'ta get yer pantaloons in a knot. I'll leave ye be.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 7 // from: 17.0 16.0 12.1 5.0 4.0 3.1 1.2
  SAY #82492 /* ~As ye wish. G'day, to ye.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 8 // from: 2.1 2.0
  SAY #82493 /* ~Aye, I've known 'im fer as long as he been in th' Beard. But I 'member better wi' a l'il gold in me palm.~ */
  IF ~~ THEN REPLY #82494 /* ~I see... will 20 gold suffice?~ */ GOTO 11
  IF ~~ THEN REPLY #82495 /* ~You have an unpleasant odor about you anyway. Begone!~ */ GOTO 6
  IF ~~ THEN REPLY #82496 /* ~I darn'ta 'ave any gold wi' me.~ */ GOTO 12
END

IF ~~ THEN BEGIN 9 // from: 12.0 11.0 2.3
  SAY #82497 /* ~Mendas came t' th' Beard this season past. Bought ol' Svenson's place, he did. He claimt t' be from Waterdeep, but I known fellers fr' th' City o' Splendors an' they can speak th' common tongue as good as I done.~ */
  IF ~~ THEN REPLY #82498 /* ~"... as well as I do," you mean.~ */ UNSOLVED_JOURNAL #82499 /* ~The reclusive scholar

Mendas came to Ulgoth's Beard last season.  He claims to be from Waterdeep, but Calahan knows other people there, and they lack the same accent.  He must be from somewhere else, at least originally.~ */ GOTO 13
END

IF ~~ THEN BEGIN 10 // from: 17.2 5.2 4.2
  SAY #82500 /* ~If yer tastes run t' women, then Mistress Mallory be a willin' partner. O'course she gots Amnian Amorous Affliction.~ */
  IF ~~ THEN REPLY #82501 /* ~Amnian Amorous Affliction?~ */ GOTO 14
END

IF ~~ THEN BEGIN 11 // from: 8.0
  SAY #82502 /* ~Aye, it will.~ */
  IF ~~ THEN REPLY #82503 /* ~Go ahead, then.~ */ DO ~TakePartyGold(20)
~ GOTO 9
END

IF ~~ THEN BEGIN 12 // from: 8.2
  SAY #82504 /* ~Mendas? Who th' 'ell is Mendas?~ */
  IF ~~ THEN REPLY #82505 /* ~I get the point. Here's 20 gold.~ */ DO ~TakePartyGold(20)
~ GOTO 9
  IF ~~ THEN REPLY #61472 /* ~Forget it.~ */ GOTO 7
END

IF ~~ THEN BEGIN 13 // from: 9.0
  SAY #82506 /* ~Nay, better. Wherever 'e's from, Mendas darn'ta like t' mix with us common folk. 'E keeps to 'imself in his house, for th' most part. 'E leaves for a few days every month, is all. 'Tis all I be knowin', I'm afraid.~ */
  IF ~~ THEN REPLY #82507 /* ~My thanks, Calahan. You've been very helpful. May the fish always bite for you.~ */ DO ~SetGlobal("CalDone","GLOBAL",1)
~ UNSOLVED_JOURNAL #82508 /* ~The reclusive scholar

A salty sea-dog by the name of Calahan tells us that Mendas, the scholar from Waterdeep, keeps to himself and is away several days a month on business.~ */ GOTO 15
  IF ~~ THEN REPLY #82509 /* ~A bloody miracle worker, ye be. Many thanks to ye and may th' fish find yer bait most delectable.~ */ DO ~SetGlobal("CalDone","GLOBAL",1)
~ UNSOLVED_JOURNAL #82508 /* ~The reclusive scholar

A salty sea-dog by the name of Calahan tells us that Mendas, the scholar from Waterdeep, keeps to himself and is away several days a month on business.~ */ GOTO 15
END

IF ~~ THEN BEGIN 14 // from: 10.0
  SAY #82510 /* ~Th' pox.~ */
  IF ~~ THEN REPLY #41371 /* ~I see.~ */ GOTO 16
END

IF ~~ THEN BEGIN 15 // from: 13.1 13.0
  SAY #82511 /* ~'Tis th' least a lad could do. G'day to ye all.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 16 // from: 14.0
  SAY #82512 /* ~Argh... If yer tastes be runnin' to the menfolk, there be Scotty McAverstein. 'E's got th' pox, too. From Mistress Mallory, ye understand. 'Tis a terrible tale.
~ */
  IF ~~ THEN REPLY #82513 /* ~Ne'er ye mind then, mate. 'Eard enough, I 'ave.~ */ GOTO 7
END

IF WEIGHT #2 /* Triggers after states #: 18 even though they appear after this state */
~Global("CalTalk","GLOBAL",1)
~ THEN BEGIN 17 // from:
  SAY #82514 /* ~Ye look a mite floundered, mates. Can I be o' assistance?~ */
  IF ~~ THEN REPLY #82487 /* ~Nay, filthy one. I do well without your help.~ */ GOTO 7
  IF ~~ THEN REPLY #82488 /* ~Aye, you can. Know you Mendas of Waterdeep?~ */ GOTO 2
  IF ~~ THEN REPLY #82489 /* ~I be'n on th' road fer many a day an' I be lookin' fer th' company of th' opposite sex.~ */ GOTO 10
END

IF WEIGHT #0 ~Global("CalDone","GLOBAL",1)
~ THEN BEGIN 18 // from:
  SAY #82515 /* ~I know nothing more that will help ye.~ */
  IF ~~ THEN EXIT
END
