// creator  : weidu.exe (version 23100)
// argument : _NANTRI.DLG
// game		 : .
// source	 : ./override/_NANTRI.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

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

IF WEIGHT #1 /* Triggers after states #: 4 even though they appear after this state */
~Gender(LastTalkedToBy,FEMALE)
ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN BEGIN 0 // from:
  SAY #82156 /* ~Hello milady.  I trust you will find your stay at the Three Old Kegs to be as restful as any place ye have ever called home.  Old Nantrin shall see to it.  What do you need?~ */
  IF ~~ THEN REPLY #82157 /* ~What provender do you provide?~ */ DO ~StartStore("_INN0119",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #82158 /* ~We need nothing at the moment.~ */ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 4 even though they appear after this state */
~Gender(LastTalkedToBy,MALE)
ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN BEGIN 1 // from:
  SAY #82159 /* ~Hello milord.  I trust you will find your stay at the Three Old Kegs to be as restful as any place you have ever called home.  Old Nantrin shall see to it.~ */
  IF ~~ THEN REPLY #82157 /* ~What provender do you provide?~ */ DO ~StartStore("_INN0119",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #82160 /* ~We need nothing right now.~ */ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 4 even though they appear after this state */
~ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN BEGIN 2 // from:
  SAY #82161 /* ~You have the look of someone unaccustomed to the quiet life.  Well, that is what we are all about here at the Three Old Kegs.  If you are looking for otherwise you had best keep moving, because you won't find it here.~ */
  IF ~~ THEN REPLY #82162 /* ~Could you describe to us your provender?~ */ DO ~StartStore("_INN0119",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #82163 /* ~We'll just be on our way.~ */ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 4 even though they appear after this state */
~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN BEGIN 3 // from:
  SAY #82164 /* ~I tell you straight and true right now so there is no mistaking.  This is a QUIET place, and those that wish to make it otherwise shall find themselves "escorted" to the door.  If lucky, you will be able to continue on by yourself after.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 4 // from:
  SAY #82165 /* ~You are welcome to stay as long as you like, though please remember to keep it quiet.  We like our rest, here at the "Kegs."~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from:
  SAY #82166 /* ~You've outstayed your welcome! Out with you!~ */
  IF ~~ THEN EXIT
END
