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

BEGIN ~_AERRAGH~

IF ~GlobalGT("DAERRAGH","GLOBAL",2)
~ THEN BEGIN 0 // from:
  SAY #76470 /* ~Ah, ye fools, ye really shouldn't have disturbed my grave site.  It was not easy faking my own death and I'll not have it ruined by your meddling! Face ye your own death and the hell-flames that go with it!~ */
  IF ~~ THEN DO ~ForceSpell(Myself,DAERRAGH)
~ EXIT
END

IF ~True()
~ THEN BEGIN 1 // from:
  SAY #76471 /* ~Never do that again, or my wrath will be great indeed!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
  IF ~Global("X#AERRAGH1","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AERRAGH1","GLOBAL",1)~ GOTO 2
  IF ~Global("X#AERRAGH1","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AERRAGH1","GLOBAL",1)~ EXTERN ~_SHARTJ~ 191
  IF ~Global("X#AERRAGH1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AERRAGH1","GLOBAL",1)~ GOTO 4
  IF ~Global("X#AERRAGH1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AERRAGH1","GLOBAL",1)~ EXTERN ~_XANJ~ 280
END

IF ~~ THEN BEGIN 2 // from: 1.1
  SAY #98378 /* ~Begone!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from:
  SAY #98378 /* ~Begone!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 4 // from: 1.3
  SAY #81325 /* ~Indeed.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
  IF ~  InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN GOTO 5
  IF ~  InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN EXTERN ~_SHARTJ~ 192
END

IF ~~ THEN BEGIN 5 // from: 4.1
  SAY #98378 /* ~Begone!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 6 // from:
  SAY #81325 /* ~Indeed.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
  IF ~  InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN GOTO 7
  IF ~  InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN EXTERN ~_SHARTJ~ 193
END

IF ~~ THEN BEGIN 7 // from: 6.1
  SAY #98378 /* ~Begone!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END
