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

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

IF WEIGHT #4 /* Triggers after states #: 4 5 6 7 even though they appear after this state */
~True()~ THEN BEGIN 0 // from:
  SAY #16012 /* ~Yes, show me what you have.~ */
  IF ~PartyHasItem("")
~ THEN REPLY #16014 /* ~Greetings to thee, fair customer.  Perter bids thee welcome to his shop and good fortune upon thy negotiations.~ */ DO ~~ GOTO 1
  IF ~~ THEN REPLY #16013 /* ~No, I'm not interested.~ */ DO ~~ GOTO 2
  IF ~Global("HelpFuller","GLOBAL",0)~ THEN REPLY #16017 /* ~I'm actually not interested in anything.  Good day.~ */ GOTO 3
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #16015 /* ~What do you sell here?~ */
  IF ~~ THEN DO ~~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #16016 /* ~Let me see what you have in stock.~ */
  IF ~~ THEN DO ~~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #16018 /* ~Ah, 'tis a most dismal misfortune.  Until the next time, Perter bids thee farewell.~ */
  IF ~~ THEN DO ~SetGlobal("HelpFuller","GLOBAL",2)~ JOURNAL #16019 /* ~~ */ EXIT
END

IF WEIGHT #0 ~!HasItem("BOLT01",LastTalkedToBy)
Global("HelpFuller","GLOBAL",2)
~ THEN BEGIN 4 // from:
  SAY #16020 /* ~I am renowned for my quality fletching, and as a fair bowyer as well.  Dost thou care to peruse my inventory of fine missile weapons?~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #1 ~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
Global("HelpFuller","GLOBAL",2)
~ THEN BEGIN 5 // from:
  SAY #16021 /* ~Excellent!  Perter bids thee to take careful notice of his selection of finely fletched arrows on the far wall.  Come, I will take thee through them.~ */
  IF ~~ THEN DO ~AddexperienceParty(50)
TakePartyItem("BOLT01")
GiveItem("DAGG02",LastTalkedToBy)
SetGlobal("HelpFuller","GLOBAL",1)
~ JOURNAL #16527 /* ~~ */ EXIT
END

IF WEIGHT #2 ~ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
Global("HelpFuller","GLOBAL",2)
~ THEN BEGIN 6 // from:
  SAY #16022 /* ~Certainly.  Let me see what you have.~ */
  IF ~~ THEN DO ~TakePartyItem("BOLT01")
AddexperienceParty(50)
GivePartyGold(10)
SetGlobal("HelpFuller","GLOBAL",1)
~ JOURNAL #16528 /* ~~ */ EXIT
END

IF WEIGHT #3 ~False()~ THEN BEGIN 7 // from:
  SAY #16033 /* ~Not at all.  I am <GABBER>.~ */
  IF ~~ THEN DO ~~ EXIT
END
