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

BEGIN ~CEGLUT~

IF ~Global("TalkedToCerndNanny","GLOBAL",1)
See("Cernd")
InParty("Cernd")
!StateCheck("Cernd",STATE_SLEEPING)
!Dead("Cernd")~ THEN BEGIN 0 // from:
  SAY #8966 /* ~I see you. I got special eyes just for the likes of you. Who are you? You ain't got business here.~ */
  IF ~~ THEN EXTERN ~CERNDJ~ 37
END

IF ~~ THEN BEGIN 1 // from: CERNDJ:37.0
  SAY #8968 /* ~He don't speak to no one. You will leave.~ */
  IF ~~ THEN EXTERN ~CERNDJ~ 38
END

IF ~~ THEN BEGIN 2 // from: CERNDJ:38.0
  SAY #8970 /* ~Well, you sure sound like his other guests. He doesn't like to be disturbed, but I will tell him you are here. Maybe you are just late for the party, or whatever.~ */
  IF ~~ THEN EXTERN ~CERNDJ~ 39
END

IF ~Global("TalkedToCerndNanny","GLOBAL",1)
OR(3)
!See("Cernd")
!InParty("Cernd")
Dead("Cernd")~ THEN BEGIN 3 // from:
  SAY #9019 /* ~I see you. I got special eyes just for the likes of you. Who would you be? Ain't supposed to be anyone here. Get out.~ */
  IF ~CheckStatGT(LastTalkedToBy,13,CHR)~ THEN REPLY #9020 /* ~Come now, it wouldn't do for you to keep us here. Your master is waiting for us. Get Deril and be quick about it. You know how unforgiving he is.~ */ GOTO 4
  IF ~CheckStatLT(LastTalkedToBy,14,CHR)~ THEN REPLY #9021 /* ~Come now, it wouldn't do for you to keep us here. Your master is waiting for us. Get Deril and be quick about it. You know how he loves company.~ */ GOTO 5
  IF ~~ THEN REPLY #9022 /* ~You will move your carcass and get Deril right quick, I will not wait a second longer than I have to! I'd hate to ruin his carpets with your sorry lifeblood!~ */ GOTO 6
  IF ~PartyGoldGT(99)~ THEN REPLY #9023 /* ~Come now, maybe I could pad your income just a tad, and you'd be a good lad and go get Deril? Say, 100 gold?~ */ GOTO 7
  IF ~PartyGoldGT(999)~ THEN REPLY #9027 /* ~You're a man who looks like they could use a few extra coins. How about I pay you to let me in and you go get Deril? Good idea? Let's say, oh, 1,000 gold?~ */ DO ~TakePartyGold(1000)~ GOTO 8
  IF ~~ THEN REPLY #9035 /* ~Sorry, I'll be going.~ */ GOTO 9
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #9024 /* ~I suppose... You don't move though. Lot's of guests come today, so maybe you are guests too. First ones to use the door though.~ */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("cut87a")
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 3.1
  SAY #9025 /* ~You don't know him none. Deril is one big... er... he don't enjoy no one's company. You get lost.~ */
  IF ~PartyGoldGT(999)~ THEN REPLY #9030 /* ~Well, how about 1,000 gold then? Will that work?~ */ DO ~TakePartyGold(1000)~ GOTO 8
  IF ~~ THEN REPLY #9031 /* ~Does he enjoy cleaning his servents off the walls, because I'm about to reduce you to a fine red mist!~ */ GOTO 10
  IF ~~ THEN REPLY #9037 /* ~Sorry, I'm on my way.~ */ GOTO 9
END

IF ~~ THEN BEGIN 6 // from: 3.2
  SAY #9026 /* ~Well, you sure sound like his other guests. He doesn't like to be disturbed, but I will tell him you are here. Maybe you are just late for the party, or whatever.~ */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("cut87a")
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 3.3
  SAY #9028 /* ~That ain't half enough to buy my life. You get lost.~ */
  IF ~PartyGoldGT(999)~ THEN REPLY #9032 /* ~Well, how about 1,000 gold then? Will that work?~ */ DO ~TakePartyGold(1000)~ GOTO 8
  IF ~~ THEN REPLY #9033 /* ~It's getting closer in value as we speak, because it's about to get a lot shorter! Let me pass!~ */ GOTO 10
  IF ~~ THEN REPLY #9034 /* ~Sorry, I'm on my way.~ */ GOTO 9
END

IF ~~ THEN BEGIN 8 // from: 7.0 5.0 3.4
  SAY #9029 /* ~A thou... You betcha! I goes and gets him! Just you waits!~ */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("cut87a")
~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 7.2 5.2 3.5
  SAY #9036 /* ~Good t'ing too. Don' come back!~ */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("cut87a")
~ EXIT
END

IF ~~ THEN BEGIN 10 // from: 7.1 5.1
  SAY #9038 /* ~Den you bring it on! Deril make me strong for fools like you's! You shoulda left! Now you gonna die!~ */
  IF ~~ THEN DO ~SetGlobal("SpawnDeril","GLOBAL",1)
Enemy()~ EXIT
END
