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

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

IF WEIGHT #0 ~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #18294 /* ~Leaving so soon?  How... unfortunate.  You realize the reward the Cowled Wizards can offer for completing this task is considerable.  Can I change your mind, hm?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~NumTimesTalkedTo(1)
~ THEN BEGIN 1 // from:
  SAY #18295 /* ~Well, that depends.  Exactly what kind of reward are you talking about?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~NumTimesTalkedTo(2)
~ THEN BEGIN 2 // from:
  SAY #18296 /* ~You ask me to commit to a task I know nothing of.  You are asking too much.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 4 5 6 even though they appear after this state */
~True()
~ THEN BEGIN 3 // from:
  SAY #18300 /* ~That is true.  I shall be on my way, then.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~NumTimesTalkedTo(3)
~ THEN BEGIN 4 // from:
  SAY #11879 /* ~You poor creature, I can do nothing for you.~ */
  IF ~~ THEN JOURNAL #11880 /* ~Nalia Abducted By Isaea Roenall

I brought all the evidence I had collected on Isaea Roenall's corruption to his commander's attention, warranting both Nalia's release and an investigation into the arrogant noble's dealings.  I wonder if I will hear of the result... he certainly deserves whatever he gets.~ */ EXIT
END

IF WEIGHT #4 ~PartyHasItem("Book54")
~ THEN BEGIN 5 // from:
  SAY #11881 /* ~I beg your forgiveness, Master, but did you not leave the cell key at the table in the jailor's room?~ */
  IF ~~ THEN DO ~AddexperienceParty(1000)
TakePartyItem("BOOK54")
~ JOURNAL #11882 /* ~~ */ EXIT
END

IF WEIGHT #5 ~Dead("Doomsayer")
PartyHasItem("MISC82")
PartyHasItem("MISC48")
~ THEN BEGIN 6 // from:
  SAY #22696 /* ~Th-thank you, my Lord.  I wish you well.~ */
  IF ~~ THEN DO ~TakePartyItem("MISC82")
TakePartyItem("MISC48")
GiveItemCreate("SW1H19",LastTalkedToBy)
~ EXIT
END
