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

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

IF WEIGHT #0 ~NumTimesTalkedTo(0)
OR(2)
!See("Anomen")
!InParty("Anomen")
!Global("AnomenDecide","GLOBAL",2)
~ THEN BEGIN 0 // from:
  SAY #25503 /* ~Excuse me, <SIRMAAM>, but this is a private estate.  I'm afraid you will have to leave immediately.~ */
  IF ~!GlobalGT("AnomenCor","GLOBAL",0)~ THEN REPLY #25504 /* ~Whose estate is this?~ */ GOTO 1
  IF ~~ THEN REPLY #25505 /* ~You're going to have to force me, because I intend on going where I like.~ */ GOTO 2
  IF ~~ THEN REPLY #25506 /* ~All right, I'm going.~ */ GOTO 3
  IF ~GlobalGT("AnomenCor","GLOBAL",0)~ THEN REPLY #61173 /* ~Whose estate is this?~ */ GOTO 6
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #25507 /* ~This is the estate of the merchant Saerk yn Muham el Farrahd, if you must know.  The merchant and his family are not home at the present, so please leave at once.~ */
  IF ~~ THEN DO ~SetGlobalTimer("SaerkGuards","GLOBAL",10)
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #25508 /* ~As you wish.  Men!  Intruders!!~ */
  IF ~~ THEN DO ~SetGlobalTimer("SaerkGuards","GLOBAL",1)
CreateCreatureOffscreen("sguard4",0)
CreateCreatureOffscreen("sguard4",0)
CreateCreatureOffscreen("sguard4",0)
CreateCreatureOffscreen("sguard4",0)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #25509 /* ~Quickly, now.  The merchant does not appreciate unwelcome visitors.~ */
  IF ~~ THEN DO ~SetGlobalTimer("SaerkGuards","GLOBAL",10)
~ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 5 even though they appear after this state */
~NumTimesTalkedTo(0)
See("Anomen")
InParty("Anomen")
Global("AnomenDecide","GLOBAL",2)~ THEN BEGIN 4 // from:
  SAY #25510 /* ~The Delryn whelp?!  Men!  Come at once!  Intruders!!~ */
  IF ~~ THEN DO ~Enemy()
SetGlobalTimer("SaerkGuards","GLOBAL",1)
CreateCreatureOffscreen("sguard4",0)
CreateCreatureOffscreen("sguard4",0)
CreateCreatureOffscreen("sguard4",0)
CreateCreatureOffscreen("sguard4",0)
~ EXIT
END

IF WEIGHT #1 ~NumTimesTalkedTo(0)
OR(2)
!See("Anomen")
!InParty("Anomen")
Global("AnomenDecide","GLOBAL",2)
~ THEN BEGIN 5 // from:
  SAY #25511 /* ~Men!  Come at once!  Intruders!!~ */
  IF ~~ THEN DO ~Enemy()
SetGlobalTimer("SaerkGuards","GLOBAL",1)
CreateCreatureOffscreen("sguard4",0)
CreateCreatureOffscreen("sguard4",0)
CreateCreatureOffscreen("sguard4",0)
CreateCreatureOffscreen("sguard4",0)~ EXIT
END

IF ~~ THEN BEGIN 6 // from: 0.3
  SAY #61174 /* ~The estate is waiting for its inheritors, <SIRMAAM>, with the merchant's murder and everything.  You shall have to leave at once, regardless.~ */
  IF ~~ THEN DO ~SetGlobalTimer("SaerkGuards","GLOBAL",10)~ EXIT
END

IF WEIGHT #3 ~NumTimesTalkedTo(0)
See("Anomen")
InParty("Anomen")
!Global("AnomenDecide","GLOBAL",2)~ THEN BEGIN 7 // from:
  SAY #61203 /* ~The Delryn whelp?!  You've no business, here, Anomen Delryn!  Take your friends and leave at once!~ */
  IF ~

~ THEN DO ~SetGlobalTimer("SaerkGuards","GLOBAL",10)~ EXTERN ~ANOMENJ~ 309
END
