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

BEGIN ~PIRMUR08~ 1 // non-zero flags may indicate non-pausing dialogue
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #1 /* Triggers after states #: 6 even though they appear after this state */
~NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
  SAY #54542 /* ~Eh? Who do you think you are walking about the Lady's place as if you own it?~ */
  IF ~PartyHasItem("miscan")~ THEN REPLY #54543 /* ~I'm a new employee from Athkatla.~ */ GOTO 1
  IF ~!PartyHasItem("miscan")~ THEN REPLY #54544 /* ~I'm a new employee from Athkatla.~ */ GOTO 2
  IF ~~ THEN REPLY #54545 /* ~Sorry, I'll leave.~ */ EXTERN ~PIRMUR04~ 5
  IF ~~ THEN REPLY #54546 /* ~I'm merely a new recruit. What is behind these doors that you guard?~ */ GOTO 4
  IF ~~ THEN REPLY #54547 /* ~I'm just a customer.~ */ GOTO 3
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #54548 /* ~You have one of the Lady's Medallions? Yes... this does seem to be real. Still, I haven't heard anything about a new employee coming in.~ */
  IF ~~ THEN EXTERN ~PIRMUR04~ 0
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #54590 /* ~Hah! Any employee of Galvena's would wear her symbol. Kill this fool! Rerdes! Intruders!~ */
  IF ~~ THEN DO ~SetGlobal("SpawnCaptain","GLOBAL",1)
CreateCreature("pirmur05",[323.261],2)
OpenDoor("Door01")
SetGlobal("GalvenaHostile","GLOBAL",1)~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 0.4
  SAY #54591 /* ~Well get back to your room! You're not to wander the house without an escort. Go!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4 // from: 0.3
  SAY #54592 /* ~The Lady's Chambers and the cells where malcontents and troublemakers are kept.~ */
  IF ~~ THEN REPLY #54593 /* ~I would like to enter, please.~ */ EXTERN ~PIRMUR04~ 4
  IF ~~ THEN REPLY #54594 /* ~I am looking for a girl named Claire. Do you know where she is?~ */ EXTERN ~PIRMUR04~ 6
  IF ~~ THEN REPLY #54595 /* ~Thank you. I will leave you be.~ */ EXTERN ~PIRMUR04~ 5
END

IF WEIGHT #2 /* Triggers after states #: 6 even though they appear after this state */
~True()~ THEN BEGIN 5 // from:
  SAY #54597 /* ~I've had enough of you. Get out of my sight.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("SleepingPotionPlot","GLOBAL",3)~ THEN BEGIN 6 // from:
  SAY #54598 /* ~Well look who's come by again. Ready for a little fun, girl? Our shift could end whenever you wish.~ */
  IF ~~ THEN EXTERN ~PIRMUR04~ 12
END

IF ~~ THEN BEGIN 7 // from: PIRMUR04:13.0
  SAY #54602 /* ~Mmmm. This is good. 'Tis a pleasant aftertaste...~ */
  IF ~~ THEN EXTERN ~PIRMUR04~ 14
END

IF ~~ THEN BEGIN 8 // from: PIRMUR04:14.0
  SAY #54604 /* ~I too... I... uhhhh...~ */
  IF ~~ THEN DO ~SetGlobal("GuardSleep","GLOBAL",1)
SetGlobal("SleepingPotionPlot","GLOBAL",4)
ActionOverride("pirmur04",ChangeAnimationNoEffect("pirmur12"))
ChangeAnimationNoEffect("pirmur12")
~ EXIT
END
