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

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

IF WEIGHT #5 /* Triggers after states #: 2 9 10 11 even though they appear after this state */
~NumTimesTalkedTo(0)
ReactionGT(LastTalkedToBy(),HOSTILE_UPPER)
~ THEN BEGIN 0 // from:
  SAY #8154 /* ~~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 2 9 10 11 even though they appear after this state */
~NumTimesTalkedTo(0)
ReactionLT(LastTalkedToBy(),NEUTRAL_LOWER)
~ THEN BEGIN 1 // from:
  SAY #8155 /* ~Forge~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~NumTimesTalkedTo(0)
PartyHasItem("AMUL13")
~ THEN BEGIN 2 // from:
  SAY #8156 /* ~mplayer~ */
  IF ~ReactionGT(LastTalkedToBy(),NEUTRAL_UPPER)
~ THEN REPLY #8165 /* ~An ancient adage this is, yet fitting: if you've nothing pleasant to say, Anomen, say nothing at all.~ */ DO ~SetGlobal("Amulet","GLOBAL",1)
~ GOTO 3
  IF ~ReactionLT(LastTalkedToBy(),FRIENDLY_LOWER)
~ THEN REPLY #8166 /* ~The judgement is clear.  You occasionally choose the righteous path, but have not satisfied our requirements. You are cast from this Order.~ */ DO ~SetGlobal("Amulet","GLOBAL",1)
~ GOTO 4
  IF ~~ THEN REPLY #8167 /* ~Helm of Brilliance~ */ DO ~SetGlobal("Amulet","GLOBAL",1)
~ GOTO 5
  IF ~~ THEN REPLY #8168 /* ~You cannot do this! I am not an evil man! I struggle daily in the quest for goodness.~ */ DO ~SetGlobal("Amulet","GLOBAL",1)
~ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.3 2.0
  SAY #8157 /* ~Staff of Command~ */
  IF ~~ THEN REPLY #8169 /* ~Skull of Death~ */ DO ~TakePartyItem("AMUL13")
SetGlobal("Amulet","GLOBAL",2)
~ GOTO 8
  IF ~~ THEN REPLY #8170 /* ~Zombie Change~ */ GOTO 6
  IF ~~ THEN REPLY #8171 /* ~You have slain a man in revenge. By killing Saerk you have committed an unforgivable sin. Consider yourself lucky to be able to leave with your life.~ */ GOTO 7
END

IF ~~ THEN BEGIN 4 // from: 2.1
  SAY #8158 /* ~Fennecia's Home~ */
  IF ~~ THEN REPLY #8172 /* ~A man called Garren lost a child to kidnappers. You and your party did nothing to save this child. This is an unforgiveable sin. Leave now and never return.~ */ DO ~TakePartyItem("AMUL13")
SetGlobal("Amulet","GLOBAL",2)
~ GOTO 8
  IF ~~ THEN REPLY #8173 /* ~Anomen, do not be a fool. You and your party may as well be of brigands with your reputation.  You are not worthy of trust and or knighthood. You may leave.~ */ GOTO 6
  IF ~~ THEN REPLY #8174 /* ~Rune Assassin~ */ GOTO 7
END

IF ~~ THEN BEGIN 5 // from: 2.2
  SAY #8159 /* ~start over~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from: 4.1 3.1
  SAY #8160 /* ~Polymorph abilities have been added to your Special Abilities menu~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 7 // from: 4.2 3.2
  SAY #8161 /* ~It will be a while before all is well, but for now things are stable. I might even be able to leave... if you had need of an extra hand once more.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 8 // from: 4.0 3.0
  SAY #8162 /* ~I do. Join the group and let's go.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~Global("Amulet","GLOBAL",1)
~ THEN BEGIN 9 // from:
  SAY #8163 /* ~Not as yet, but perhaps later.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~Global("HadAmulet","GLOBAL",2)
~ THEN BEGIN 10 // from:
  SAY #8164 /* ~Off to travel the world once more, I do so like seeing so much of nature, even what is constrained within the cities.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 11 // from:
  SAY #8175 /* ~Rune Assassin~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 12 // from:
  SAY #9055 /* ~Ehh, actually I have made a mistake and I will be going now. Forgive the intrusion.~ */
  IF ~~ THEN EXIT
END
