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

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

IF WEIGHT #3 /* Triggers after states #: 4 even though they appear after this state */
~ReactionGT(LastTalkedToBy(),NEUTRAL_UPPER)
~ THEN BEGIN 0 // from:
  SAY #766 /* ~Certainly this might not sound like a crisis to you, but I have spent my life trying to right some of the wrongs that have been done to those of lesser status.~ */
  IF ~~ THEN DO ~SetGlobal("EmersonPermission","GLOBAL",1)
SetGlobal("SpokeToEmerson","GLOBAL",1)
~ JOURNAL #5802 /* ~Escaping the Asylum

I have set the inmates free and goaded them into turning on Irenicus.  They have gone downstairs en masse, and I will have to move quickly to catch up to them.  Hopefully this will be enough to defeat the wizard... but I have the feeling this is far, far from over.~ */ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 4 even though they appear after this state */
~ReactionLT(LastTalkedToBy(),FRIENDLY_LOWER)
~ THEN BEGIN 1 // from:
  SAY #767 /* ~I assure you, you need not worry about the task ahead. You can only benefit from it, and with as little effort as you wish.~ */
  IF ~~ THEN DO ~SetGlobal("EmersonPermission","GLOBAL",1)
SetGlobal("SpokeToEmerson","GLOBAL",1)
~ JOURNAL #5801 /* ~~ */ EXIT
END

IF ~~ THEN BEGIN 2 // from:
  SAY #6133 /* ~I am no weak-willed goody-two-shoes. I take what I want, when I want it!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 3 // from:
  SAY #6134 /* ~Delver's Plate +2~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 4 // from:
  SAY #6135 /* ~Perchance I have found worthy companions. I seek to be knighted in the Most Noble Order of the Radiant Heart and I must prove my worth, first. Have you need of a strong warrior, my <LADYLORD>?~ */
  IF ~~ THEN DO ~Global("EmersonPermission","GLOBAL",1)
SetGlobal("SpokeToEmerson","GLOBAL",1)
~ JOURNAL #16558 /* ~Getting Inside the Asylum

I got into the guildhouse by hiring a courtesan... and upon realizing that I might free Claire, the courtesan was willing enough to tell me that the girl was held at the end of the hall.  The key, however, is likely on Lady Galvena's person or in her room... and the guards certainly won't let me just wander about.~ */ EXIT
END

IF ~~ THEN BEGIN 5 // from:
  SAY #8982 /* ~Well, it is here... er... I am here and we have matters that we must discuss!~ */
  IF ~~ THEN EXIT
END
