// creator  : weidu.exe (version 23600)
// argument : MERCHG.DLG
// game     : .
// source   : ./DATA/DIALOG.BIF
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

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

IF WEIGHT #3 /* Triggers after states #: 4 5 6 even though they appear after this state */
~  ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
~ THEN BEGIN 0 // from:
  SAY #7703 /* ~Greetings, <SIRMAAM>. I hope your stay at the Merchants' League Estate is profitable.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 4 5 6 even though they appear after this state */
~  ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN BEGIN 1 // from:
  SAY #7704 /* ~Hello <SIRMAAM>. If I'm not being too forward, might I suggest something?~ */
  IF ~  !Global("HelpBrandilar","GLOBAL",3)
~ THEN REPLY #7708 /* ~Sure, continue.~ */ GOTO 3
  IF ~~ THEN REPLY #7709 /* ~Shut up, guard!~ */ GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.1
  SAY #7705 /* ~Yes, <SIRMAAM>!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 3 // from: 1.0
  SAY #7706 /* ~If I've guessed correctly, you're here to investigate Zorl and Irlentree. I think you should contact my superior, Brandilar. He might be able to help you.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 /* Triggers after states #: 5 6 even though they appear after this state */
~  Global("ZorlDopple","GLOBAL",1)
~ THEN BEGIN 4 // from:
  SAY #7707 /* ~Nothing to see here, <SIRMAAM>!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 5 // from:
  SAY #7710 /* ~If I were you, friend, I'd go talk with Brandilar.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~  Global("Captured","GLOBAL",1)
~ THEN BEGIN 6 // from:
  SAY #9163 /* ~You're not welcome here!~ */
  IF ~~ THEN EXIT
END
