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

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

IF WEIGHT #2 /* Triggers after states #: 2 4 even though they appear after this state */
~PartyGoldLT(100)
Global("FirebeadDone","GLOBAL",0)
~ THEN BEGIN 0 // from:
  SAY #14991 /* ~(sigh)  Why do I always get the poor ones tugging at my pantaloons?~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToFirebead","GLOBAL",1)
~ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 2 4 even though they appear after this state */
~!PartyGoldLT(100)
Global("FirebeadDone","GLOBAL",0)
~ THEN BEGIN 1 // from:
  SAY #14993 /* ~I assume you'll try to speak to me once again when you acquire some prestige and character, yes?~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToFirebead","GLOBAL",1)
~ JOURNAL #15730 /* ~~ */ EXIT
END

IF WEIGHT #0 ~PartyHasItem("BOOK40")
Global("TalkedToFirebead","GLOBAL",1)
Global("FirebeadDone","GLOBAL",0)
~ THEN BEGIN 2 // from:
  SAY #14994 /* ~Ah!  Keldorn, is it not?  Your reputation for bravery and nobility precedes you.  How fare things in the Order?~ */
  IF ~~ THEN DO ~AddexperienceParty(300)
ReputationInc(1)
TakePartyItem("BOOK40")
GiveItem("BOOK36",LastTalkedToBy)
SetGlobal("FirebeadDone","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 3 // from:
  SAY #14995 /* ~Things go as well as can be expected, my lord.  Thank you for your kind words.~ */
  IF ~~ THEN DO ~TakePartyItem("BOOK40")
GiveItem("BOOK55",LastTalkedToBy)
SetGlobal("FirebeadDone","GLOBAL",1)
~ EXIT
END

IF WEIGHT #1 ~False()
~ THEN BEGIN 4 // from:
  SAY #14996 /* ~Let me see.  You are one of that troupe I was brought to recently.  Quite good... for local entertainment, anyway.~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #4 ~Global("FirebeadDone","GLOBAL",0)
~ THEN BEGIN 5 // from:
  SAY #14997 /* ~Nothing brings me more joy, my dear nobleman, that to pierce the humdrum veil of your life with song and poem.  I always yearn for appreciation of my art from those with only a yen for their coin.~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #5 ~True()
~ THEN BEGIN 6 // from:
  SAY #14998 /* ~Why thank you!  How expressive he is, see?~ */
  IF ~~ THEN DO ~~ EXIT
END
