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

BEGIN ~_DOOMSAY~

IF ~PartyHasItem("_MISC48")
~ THEN BEGIN 0 // from:
  SAY #86670 /* ~IthNal cOR dan osa KOZAH! Rrrackne dall'a osa KOZAH!~ */
  IF ~~ THEN REPLY #86671 /* ~Speak common, you abomination! I cannot fathom your words!~ */ GOTO 2
  IF ~~ THEN REPLY #86672 /* ~Speak your gibberish as you will; the end will be the same. Die, you unnatural beast!~ */ GOTO 1
  IF ~~ THEN REPLY #86673 /* ~What are you trying to say? Speak, and I shall see if I can help you.~ */ GOTO 3
END

IF ~~ THEN BEGIN 1 // from: 0.1
  SAY #86674 /* ~Sssstormss shall bring doom to theeee... Idollll so commandsssss... Echtah tuln no osa KOZAH!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~Global("X#XanDoomsayer1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer1","GLOBAL",1)~ GOTO 5
  IF ~Global("X#XanDoomsayer1","GLOBAL",0)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer1","GLOBAL",1)~ EXTERN ~_XANJ~ 124
  IF ~Global("X#XanDoomsayer1","GLOBAL",0)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer1","GLOBAL",1)~ EXTERN ~_CORANJ~ 109
  IF ~Global("X#XanDoomsayer1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer1","GLOBAL",1)~ EXTERN ~_XANJ~ 126
END

IF ~~ THEN BEGIN 2 // from: 0.0
  SAY #86675 /* ~Nottt for theeee to underssstand... neeeed only dieeee while youuu hold... idolll does soo commannnnd... Eltor anSle osa KOZAH!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~Global("X#XanDoomsayer2","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer2","GLOBAL",1)~ GOTO 9
  IF ~Global("X#XanDoomsayer2","GLOBAL",0)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer2","GLOBAL",1)~ EXTERN ~_XANJ~ 128
  IF ~Global("X#XanDoomsayer2","GLOBAL",0)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer2","GLOBAL",1)~ EXTERN ~_CORANJ~ 111
  IF ~Global("X#XanDoomsayer2","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer2","GLOBAL",1)~ EXTERN ~_XANJ~ 130
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #86676 /* ~Hhhellp? Nooo hhhelp for theee... only sleeeep... eternity sleeeeep of one forgotttt... deathh of godsss... idol take theeee wwwwhile you hold... I reclaimmm! Oro lan t'ola osa KOZAH!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~Global("X#XanDoomsayer3","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer3","GLOBAL",1)~ GOTO 13
  IF ~Global("X#XanDoomsayer3","GLOBAL",0)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer3","GLOBAL",1)~ EXTERN ~_XANJ~ 132
  IF ~Global("X#XanDoomsayer3","GLOBAL",0)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer3","GLOBAL",1)~ EXTERN ~_CORANJ~ 113
  IF ~Global("X#XanDoomsayer3","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer3","GLOBAL",1)~ EXTERN ~_XANJ~ 134
END

IF ~True()
~ THEN BEGIN 4 // from:
  SAY #86677 /* ~IthNal cOR dan osa KOZAH! Rrrackne dall'a osa KOZAH!  The idol... will find the idol...~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 1.1
  SAY #99736 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 6 // from:
  SAY #99736 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: _CORANJ:109.1
  SAY #99736 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 8 // from: _CORANJ:110.1
  SAY #99736 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 2.1
  SAY #99736 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 10 // from:
  SAY #99736 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 11 // from: _CORANJ:111.1
  SAY #99736 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 12 // from: _CORANJ:112.1
  SAY #99736 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 3.1
  SAY #99736 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 14 // from:
  SAY #99736 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 15 // from: _CORANJ:113.1
  SAY #99736 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 16 // from: _CORANJ:114.1
  SAY #99736 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END
