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

BEGIN ~GORCH~ 4 // non-zero flags may indicate non-pausing dialogue

IF ~!Dead("Gorch")
~ THEN BEGIN 0 // from:
  SAY #21673 /* ~Aha... do come in, come in.  Take a look around, if you wish.  I am Gorch, the humble proprietor of this modest establishment.~ */
  IF ~~ THEN REPLY #21674 /* ~What is it that you sell?~ */ GOTO 1
  IF ~~ THEN REPLY #21675 /* ~Let me see what you have available.~ */ GOTO 2
  IF ~~ THEN REPLY #21676 /* ~What is beyond that door at the back?~ */ GOTO 3
  IF ~PartyHasItem("MISC4T")
~ THEN REPLY #21677 /* ~I am not here to buy anything.  I am here to see Mae'Var.~ */ GOTO 4
  IF ~~ THEN REPLY #21678 /* ~Never mind, I'm on my way out.~ */ GOTO 6
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #21679 /* ~I sell many things... things sold to me by those in need.  From trinkets to heirlooms, Gorch has everything of taste and necessity that you may desire.~ */
  IF ~~ THEN REPLY #21680 /* ~I see.  Let me see what you have available, then.~ */ GOTO 2
  IF ~~ THEN REPLY #21681 /* ~Tell me what is beyond that door at the back?~ */ GOTO 3
  IF ~PartyHasItem("MISC4T")
~ THEN REPLY #21682 /* ~I am not here to buy anything.  I wish to see Mae'Var.~ */ GOTO 4
  IF ~~ THEN REPLY #21683 /* ~Never mind, I'm on my way out.~ */ GOTO 6
END

IF ~~ THEN BEGIN 2 // from: 3.0 1.0 0.1
  SAY #21684 /* ~Naturally, Gorch is here to please.  Might you be interested in this elegant hat?  Quite the fashion in Waterdeep... No?  Well, by all means,  look about.~ */
  IF ~~ THEN DO ~StartStore("gorch",LastTalkedToBy())
~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 1.1 0.2
  SAY #21685 /* ~Oh?  That door?  Just the entry to my own humble abode.  Let me show you a fine piece of Sembian jewelry, imparted to me by an unfortunate merchant.~ */
  IF ~~ THEN REPLY #21686 /* ~Very well, show me what you have.~ */ GOTO 2
  IF ~PartyHasItem("MISC4T")
~ THEN REPLY #21687 /* ~I'm not here to buy anything.  I'm here to see Mae'Var.~ */ GOTO 4
  IF ~~ THEN REPLY #21688 /* ~Excuse me, I'll be on my way.~ */ GOTO 6
END

IF ~~ THEN BEGIN 4 // from: 3.1 1.2 0.3
  SAY #21689 /* ~Ah... why did you not simply say so earlier?  You have something written for me, yes, hm?~ */
  IF ~~ THEN DO ~Unlock("DOOR01")
Unlock("DOOR02")
TakePartyItem("MISC4T")
~ GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #21690 /* ~Hm... um-hmmn... yes.  Everything appears to be in order.  You can see Mae'Var... through the door in the back.  So nice to meet you, my good friend.~ */
  IF ~~ THEN DO ~Unlock("DOOR01")
Unlock("DOOR02")
SetGlobal("GorchOpen","GLOBAL",2)
~ UNSOLVED_JOURNAL #34198 /* ~Find proof of Mae'Var's treachery.

I have gained access to Mae'Var's guild through Gorch, his storefront operator.  There is a door in the back of the store that apparently leads to the rest of the guildhouse.  So far so good...~ */ EXIT
END

IF ~~ THEN BEGIN 6 // from: 3.2 1.3 0.4
  SAY #21691 /* ~Are you sure you do not wish to see this lovely Calimshan necklace?  It was sold to me by a woman of the finest figure.  No?  As you wish.~ */
  IF ~~ THEN EXIT
END

IF ~Dead("Gorch")
~ THEN BEGIN 7 // from:
  SAY #21692 /* ~You!  You are a fool to have returned here!  Leave this place while you still possess the ability to do so!~ */
  IF ~~ THEN EXIT
END
