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

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

IF WEIGHT #2 /* Triggers after states #: 4 5 even though they appear after this state */
~  NumberOfTimesTalkedTo(0)
ReactionGT(LastTalkedToBy(Myself),NEUTRAL_UPPER)
~ THEN BEGIN 0 // from:
  SAY #8142 /* ~Well, hello there. I fear you have "mistaken" my unlocked door as an invitation to enter. Forgive me if this was misleading, as it was not my intent to allow entry to just any stranger off the street. Please accept my apologies, but I should appreciate it if you would leave. Mine husband is one of the guards and I should think he would be perturbed if there were people milling about his house when he got home.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 4 5 even though they appear after this state */
~  NumberOfTimesTalkedTo(0)
ReactionLT(LastTalkedToBy(Myself),FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy(Myself),HOSTILE_UPPER)
~ THEN BEGIN 1 // from:
  SAY #8143 /* ~I should not like to appear rude, but you have entered mine house without permission. I hardly think merely having an unlocked door is an invitation. Leave, lest my husband extricate you himself when he returns from guard duty.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 4 5 even though they appear after this state */
~  NumberOfTimesTalkedTo(0)
ReactionLT(LastTalkedToBy(Myself),NEUTRAL_LOWER)
~ THEN BEGIN 2 // from:
  SAY #8144 /* ~You must be a considerable fool to enter this house uninvited. Best that you should leave, because if I call the guard there is a good chance my husband will be with them. No doubt he would expel you from his own house with... extra vigor.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 4 5 even though they appear after this state */
~  NumberOfTimesTalkedTo(1)
~ THEN BEGIN 3 // from:
  SAY #8145 /* ~My husband should be here soon; I would suggest that you leave.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 4 // from:
  SAY #8146 /* ~I wish I could run away with you darling, but my husband can be such a jealous man. I wouldn't want to arouse his wrath. Take this ring, with which you may always remember me.~ */
  IF ~~ THEN DO ~GiveItem("RING11",LastTalkedToBy)
~ EXIT
END

IF WEIGHT #1 ~  Dead("FLAMHUSB")
~ THEN BEGIN 5 // from:
  SAY #9063 /* ~Get away from me!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 ~  NumTimesTalkedToGT(1)
~ THEN BEGIN 6 // from:
  SAY #15755 /* ~I told you my husband would be here!~ */
  IF ~  Exists("FLAMINGE")
~ THEN EXIT
  IF ~  !Exists("FLAMINGE")
~ THEN DO ~CreateCreature("FLAMHUSB",[490.458],S)
~ EXIT
END
