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

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

IF WEIGHT #2 /* Triggers after states #: 3 4 even though they appear after this state */
~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #8792 /* ~I've no wish to seem unwelcoming, but I dislike armed people entering my home uninvited. Please exit the way you came in.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 3 4 even though they appear after this state */
~  NumberOfTimesTalkedTo(1)
~ THEN BEGIN 1 // from:
  SAY #8793 /* ~I've no desire to call the guards, but I will if I must.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 3 4 even though they appear after this state */
~  NumberOfTimesTalkedTo(2)
~ THEN BEGIN 2 // from:
  SAY #8794 /* ~Perhaps I would not mind your company quite so much if I had actually invited you. Please leave my home.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~  StateCheck(Myself,STATE_CHARMED)
CheckStatGT(Myself,0,GOLD)
~ THEN BEGIN 3 // from:
  SAY #8795 /* ~I don't leave my home much, so there's little I know about what goes on within the city. Why don't you take this gold piece and enjoy yourself at the market square; there's all sorts of things to do there.~ */
  IF ~~ THEN DO ~GivePartyGold(1)
~ EXIT
END

IF WEIGHT #1 ~  ReputationLT(Player1,3)
~ THEN BEGIN 4 // from:
  SAY #9175 /* ~Leave me! You've outstayed your welcome!~ */
  IF ~~ THEN EXIT
END
