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

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

IF WEIGHT #1 /* Triggers after states #: 2 even though they appear after this state */
~True()
~ THEN BEGIN 0 // from:
  SAY #26080 /* ~Have you need of my wares? They are the finest in all of Athkatla. At least for the price. If you need something, I will find it. I know many businesses.~ */
  IF ~~ THEN REPLY #26081 /* ~Thank you, I will take a look at what you have.~ */ EXIT
  IF ~~ THEN REPLY #26082 /* ~Not today, thank you.~ */ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 12.2 6.0 2.0 0.1
  SAY #26083 /* ~As you wish. I will be here most days.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~OR(2)
Global("TalkedToHooker1","GLOBAL",1)
PartyHasItem("MISC5G")
~ THEN BEGIN 2 // from:
  SAY #26084 /* ~What can I do for you today. You seem a bit agitated. Anything you need?~ */
  IF ~~ THEN REPLY #26085 /* ~No, thank you.~ */ GOTO 1
  IF ~PartyHasItem("MISC5G")
Global("MerchantHide","GLOBAL",0)
~ THEN REPLY #26086 /* ~I wish to know if you can identify this piece of leather. It is a little odd.~ */ GOTO 3
  IF ~Global("TalkedToHooker1","GLOBAL",1)
Global("TalkedToHooker2","GLOBAL",0)
~ THEN REPLY #26087 /* ~What do you have that smells like guril berries?~ */ GOTO 8
  IF ~~ THEN REPLY #26402 /* ~Just your usual wares, thanks.~ */ EXIT
END

IF ~~ THEN BEGIN 3 // from: 12.3 12.1 2.1
  SAY #26088 /* ~Let me see. Hmm... looks quite thick indeed. Very rare, but I have seen it before. This is elephant hide. Good for strong armor, but I rarely see it.~ */
  IF ~~ THEN REPLY #26089 /* ~Elephant hide? Where would someone get such leather?~ */ GOTO 4
  IF ~~ THEN REPLY #26090 /* ~Elephant? I've never even seen an elephant. Could you be mistaken?~ */ GOTO 7
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #26091 /* ~The obvious answer would be 'from an elephant.'  No, you are not in a joking mood, are you. Well, there are perhaps a few places one might get such hide.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 7.0 4.0
  SAY #26092 /* ~A tanner might see such hide on occasion, though it would be rare. Might be difficult to work with as well. I do not hear about such things all that often.~ */
  IF ~~ THEN DO ~SetGlobal("MerchantHide","GLOBAL",1)
~ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #26093 /* ~There's also a circus in town. I don't know if they have elephants, but the animal tamer would have certainly seen some in the past. Do you need anything else?~ */
  IF ~~ THEN REPLY #26094 /* ~No, that is all. Thank you.~ */ GOTO 1
  IF ~Global("TalkedToHooker1","GLOBAL",1)
Global("TalkedToHooker2","GLOBAL",0)
~ THEN REPLY #26095 /* ~I also wanted to ask if you knew what would smell like guril berries.~ */ GOTO 8
END

IF ~~ THEN BEGIN 7 // from: 3.1
  SAY #26096 /* ~If you've never seen one then how would you know? I may not see it often, but such hide is hard to mistake. But there are very few places to get such hide.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 8 // from: 6.1 2.2
  SAY #26097 /* ~Locally?  Well, let me think. I know of three things with that smell. Guril berries are one, and the bark of the oak is similar. And solik berries, too.~ */
  IF ~~ THEN REPLY #26098 /* ~What would these things be used for locally?~ */ GOTO 9
  IF ~~ THEN REPLY #26099 /* ~Where would these be found? What good are they?~ */ GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.1 8.0
  SAY #26100 /* ~Well, I do a brisk business in guril berries. They are used in folk remedies, turned into topical salves for...*ahem*... intimate afflictions.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #26101 /* ~Oak bark is used to make tannin, I believe. Natural curative agent for working with skins. Been in use for centuries.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #26102 /* ~Solik berries are used in a local bakery, for their signature mumbleberry pie. Very tasty, but they are closed now. It is the berry's off-season.~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #26103 /* ~I have some of each if you wish. Free of charge, because it's been a slow day. Was there anything else?~ */
  IF ~!PartyHasItem("MISC5H")
!PartyHasItem("MISC5I")
~ THEN REPLY #26104 /* ~No, thank you.~ */ GOTO 13
  IF ~PartyHasItem("MISC5G")
PartyHasItem("MISC5I")
PartyHasItem("MISC5H")
~ THEN REPLY #26105 /* ~I wanted to ask about this leather, and where it might have come from.~ */ GOTO 3
  IF ~Global("TalkedToHooker2","GLOBAL",1)
~ THEN REPLY #26107 /* ~No, thank you.~ */ GOTO 1
  IF ~PartyHasItem("MISC5G")
!PartyHasItem("MISC5H")
!PartyHasItem("MISC5I")
~ THEN REPLY #26108 /* ~I wanted to ask about this leather, and where it might have come from.~ */ DO ~GiveItem("MISC5H",LastTalkedToBy)
GiveItem("MISC5I",LastTalkedToBy)
~ GOTO 3
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #26106 /* ~As you wish. I will be here if you wish to return.~ */
  IF ~~ THEN DO ~GiveItem("MISC5H",LastTalkedToBy)
GiveItem("MISC5I",LastTalkedToBy)
~ EXIT
END
