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

BEGIN ~SBWENCH~ 2 // non-zero flags may indicate non-pausing dialogue
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #1 /* Triggers after states #: 6 even though they appear after this state */
~RandomNum(6,1)~ THEN BEGIN 0 // from:
  SAY #23585 /* ~Whatever the Thumb tells you about me, don't believe a word.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 /* Triggers after states #: 6 even though they appear after this state */
~RandomNum(6,2)~ THEN BEGIN 1 // from:
  SAY #23587 /* ~The Thumb's full of a lot of stories, but he was really just a fisherman.  Got his hand cut off in a drunken brawl and won the bar in a bet, so I understand.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 6 even though they appear after this state */
~RandomNum(6,3)~ THEN BEGIN 2 // from:
  SAY #23590 /* ~I don't know why we get so many young nobles slumming here... you'd think they'd be smart enough to keep out of the Docks.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 6 even though they appear after this state */
~RandomNum(6,4)~ THEN BEGIN 3 // from:
  SAY #23593 /* ~If you'd like to order something, you should talk to the Thumb.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 6 even though they appear after this state */
~RandomNum(6,5)~ THEN BEGIN 4 // from:
  SAY #23594 /* ~If he tries to sell you the apple blossom elven wine, don't let him.  It's mine.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 6 even though they appear after this state */
~RandomNum(6,6)~ THEN BEGIN 5 // from:
  SAY #23598 /* ~Please don't bother me.  I have enough trouble trying to keep a hook from constantly lifting my skirt.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~IsValidForPartyDialog("Edwin")
Global("GracieEdwin","LOCALS",0)~ THEN BEGIN 6 // from:
  SAY #49619 /* ~Oh!  Sweetie!  You came back!  I haven't seen you in ages!~ */
  IF ~~ THEN DO ~SetGlobal("GracieEdwin","LOCALS",1)~ EXTERN ~EDWINJ~ 72
END

IF ~~ THEN BEGIN 7 // from:
  SAY #49621 /* ~Mistaken?  Ohhh, you can't fool me, silly!  I'd recognize that cute little beard of yours anywhere, Eddie!~ */
  IF ~~ THEN EXTERN ~EDWINJ~ 73
END

IF ~~ THEN BEGIN 8 // from:
  SAY #49623 /* ~Don't be silly, Eddie!  (giggle!)  Oh, are you here with friends?  Everyone says what a brute you are, but I know your softer, sweeter side and I'll tell anyone who says different!~ */
  IF ~~ THEN EXTERN ~EDWINJ~ 74
END

IF ~~ THEN BEGIN 9 // from:
  SAY #49624 /* ~Well.  If that's the way you want to play it, then FINE.~ */
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Korgan")~ THEN DO ~RunAwayFrom("Edwin",25)~ EXIT
  IF ~IsValidForPartyDialog("Jaheira")~ THEN DO ~RunAwayFrom("Edwin",25)~ EXTERN ~JAHEIRAJ~ 405
  IF ~!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Jan")~ THEN DO ~RunAwayFrom("Edwin",25)~ EXTERN ~JANJ~ 117
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Jan")
IsValidForPartyDialog("HaerDalis")~ THEN DO ~RunAwayFrom("Edwin",25)~ EXTERN ~HAERDAJ~ 83
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("HaerDalis")
IsValidForPartyDialog("Korgan")~ THEN DO ~RunAwayFrom("Edwin",25)~ EXTERN ~KORGANJ~ 96
END
