// creator  : weidu.exe (version 23600)
// argument : DOOMSAY.DLG
// game     : .
// source   : ./override/DOOMSAY.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~DOOMSAY~

IF ~  PartyHasItem("MISC48")
~ THEN BEGIN 0 // from:
  SAY #10983 /* ~IthNal cOR dan osa KOZAH! Rrrackne dall'a osa KOZAH!~ */
  IF ~~ THEN REPLY #10984 /* ~Speak common, you abomination! I cannot fathom your words!~ */ GOTO 2
  IF ~~ THEN REPLY #10985 /* ~Speak your gibberish as you will: the end will be the same. Die, you unnatural beast!~ */ GOTO 1
  IF ~~ THEN REPLY #10988 /* ~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 #10989 /* ~Sssstormss shall bring doom to theeee... Idollll so commandsssss... Echtah tuln no osa KOZAH!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
  IF ~Global("X#XanDoomsayer1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer1","GLOBAL",1)~ GOTO 6
  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~ 116
  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~ 92
  IF ~Global("X#XanDoomsayer1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer1","GLOBAL",1)~ EXTERN ~XANJ~ 118
END

IF ~~ THEN BEGIN 2 // from: 0.0
  SAY #10990 /* ~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 ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
  IF ~Global("X#XanDoomsayer2","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer2","GLOBAL",1)~ GOTO 10
  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~ 120
  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~ 94
  IF ~Global("X#XanDoomsayer2","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer2","GLOBAL",1)~ EXTERN ~XANJ~ 122
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #10991 /* ~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 ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
  IF ~Global("X#XanDoomsayer3","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer3","GLOBAL",1)~ GOTO 14
  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~ 124
  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~ 96
  IF ~Global("X#XanDoomsayer3","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanDoomsayer3","GLOBAL",1)~ EXTERN ~XANJ~ 126
END

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

IF ~~ THEN BEGIN 5 // from:
  SAY #10989 /* ~Sssstormss shall bring doom to theeee... Idollll so commandsssss... Echtah tuln no osa KOZAH!~ */
  IF ~~ THEN EXTERN ~GALLOR~ 16
END

IF ~~ THEN BEGIN 6 // from: 1.2
  SAY #46386 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
END

IF ~~ THEN BEGIN 7 // from:
  SAY #46386 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
END

IF ~~ THEN BEGIN 8 // from: CORANJ:92.2
  SAY #46386 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
END

IF ~~ THEN BEGIN 9 // from: CORANJ:93.2
  SAY #46386 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
END

IF ~~ THEN BEGIN 10 // from: 2.2
  SAY #46386 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
END

IF ~~ THEN BEGIN 11 // from:
  SAY #46386 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
END

IF ~~ THEN BEGIN 12 // from: CORANJ:94.2
  SAY #46386 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
END

IF ~~ THEN BEGIN 13 // from: CORANJ:95.2
  SAY #46386 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
END

IF ~~ THEN BEGIN 14 // from: 3.2
  SAY #46386 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
END

IF ~~ THEN BEGIN 15 // from:
  SAY #46386 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
END

IF ~~ THEN BEGIN 16 // from: CORANJ:96.2
  SAY #46386 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
END

IF ~~ THEN BEGIN 17 // from: CORANJ:97.2
  SAY #46386 /* ~Doom to theeeeee!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
  IF ~  See("Gallor")
~ THEN DO ~Enemy()
ActionOverride("Gallor",ChangeAIScript("WTASIGHT",DEFAULT))
~ EXTERN ~GALLOR~ 19
END
