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

BEGIN ~KEVIN~

IF ~  True()
~ THEN BEGIN 0 // from:
  SAY #11260 /* ~Don't come in here! There's a basilisk loose! Get out while you're still able.~ */
  IF ~~ THEN REPLY #11263 /* ~All right, we're out of here.~ */ DO ~EscapeArea()
~ EXIT
  IF ~~ THEN REPLY #11264 /* ~How did a basilisk get into a warehouse in the center of the city?~ */ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.1
  SAY #11265 /* ~Gorpel Hind and his adventuring band, the Merry Fools, captured the beast a few weeks back. It was to be transported to Waterdeep to be shown at a carnival but the thing woke up from its magical slumber before it was supposed to! But enough talk... Ruuunnn...!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
  IF ~Global("X#KEVIN1","GLOBAL",0)
InParty("faldorn")
InMyArea("faldorn")
!StateCheck("faldorn",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#KEVIN1","GLOBAL",1)~ GOTO 2
  IF ~Global("X#KEVIN1","GLOBAL",0)
InParty("faldorn")
InMyArea("faldorn")
!StateCheck("faldorn",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#KEVIN1","GLOBAL",1)~ EXTERN ~FALDOJ~ 146
  IF ~Global("X#KEVIN1","GLOBAL",0)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
Global("P#CoranRomanceInactive","GLOBAL",1)
~ THEN DO ~SetGlobal("X#KEVIN1","GLOBAL",1)~ GOTO 4
  IF ~Global("X#KEVIN1","GLOBAL",0)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
Global("P#CoranRomanceInactive","GLOBAL",1)
~ THEN DO ~SetGlobal("X#KEVIN1","GLOBAL",1)~ EXTERN ~CORANJ~ 559
END

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

IF ~~ THEN BEGIN 3 // from: FALDOJ:146.1
  SAY #49952 /* ~Fleeee!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 4 // from: 1.3
  SAY #49950 /* ~It's almost here!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
  IF ~  InParty("faldorn")
InMyArea("faldorn")
!StateCheck("faldorn",CD_STATE_NOTVALID)
~ THEN GOTO 5
  IF ~  InParty("faldorn")
InMyArea("faldorn")
!StateCheck("faldorn",CD_STATE_NOTVALID)
~ THEN EXTERN ~FALDOJ~ 147
END

IF ~~ THEN BEGIN 5 // from: FALDOJ:147.1 4.1
  SAY #49952 /* ~Fleeee!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 6 // from:
  SAY #49950 /* ~It's almost here!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
  IF ~  InParty("faldorn")
InMyArea("faldorn")
!StateCheck("faldorn",CD_STATE_NOTVALID)
~ THEN GOTO 7
  IF ~  InParty("faldorn")
InMyArea("faldorn")
!StateCheck("faldorn",CD_STATE_NOTVALID)
~ THEN EXTERN ~FALDOJ~ 148
END

IF ~~ THEN BEGIN 7 // from: FALDOJ:148.1 6.1
  SAY #49952 /* ~Fleeee!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END
