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

BEGIN ~CEDERIL~

IF ~NumTimesTalkedTo(0)
InParty("Cernd")
AreaCheckObject("AR1004","CERND")
!Dead("cernd")
!StateCheck("Cernd",STATE_SLEEPING)
~ THEN BEGIN 0 // from:
  SAY #8709 /* ~Who disturbs? I have guests that will not tolerate interruptions!  Glut should have known this!~ [DERILX02] */
  IF ~~ THEN EXTERN ~CERNDJ~ 43
END

IF ~~ THEN BEGIN 1 // from: CERNDJ:43.0
  SAY #8979 /* ~You? And who might you be? There is something about your eyes that I recognize. Who are you?~ */
  IF ~~ THEN EXTERN ~CERNDJ~ 44
END

IF ~~ THEN BEGIN 2 // from: CERNDJ:44.0
  SAY #8981 /* ~Well, I know that name, although those that knew you call you several others.  By their description I would have not expected you to ever return.~ */
  IF ~~ THEN EXTERN ~CERNDJ~ 45
END

IF ~~ THEN BEGIN 3 // from: CERNDJ:45.0
  SAY #8983 /* ~I think not. I am done with you and your kin. What is it you think we must speak of? I am sure I will find your answer amusing.~ */
  IF ~~ THEN EXTERN ~CERNDJ~ 46
END

IF ~~ THEN BEGIN 4 // from: CERNDJ:46.0
  SAY #8985 /* ~Ah, she is long since gone.  If I began ignoring her while she was still here, why can't you release yourself after years? Best you learn to control yourself.~ */
  IF ~~ THEN GOTO 29
END

IF ~~ THEN BEGIN 5 // from: CERNDJ:47.0
  SAY #8987 /* ~No, you do not, do you? No one has told you and you have not been here. What claim have you?~ */
  IF ~~ THEN EXTERN ~CERNDJ~ 48
END

IF ~~ THEN BEGIN 6 // from: CERNDJ:49.0
  SAY #8994 /* ~Ha ha!  I buy the guards when I need to! Besides, how sure are you? Perhaps she took her own life, pining for your return, weeping over your picture...~ */
  IF ~~ THEN EXTERN ~CERNDJ~ 50
END

IF ~~ THEN BEGIN 7 // from: CERNDJ:50.0
  SAY #8996 /* ~Crying for the day her brave Cernd would return and take her away...~ */
  IF ~~ THEN EXTERN ~CERNDJ~ 51
END

IF ~~ THEN BEGIN 8 // from: CERNDJ:51.0
  SAY #8998 /* ~Until she could take it no more and, whispering your name, sipped a hemlock-laced wine, ending her torture. Or maybe I pushed her down the stairs. Take your pick.~ */
  IF ~~ THEN EXTERN ~CERNDJ~ 52
END

IF ~~ THEN BEGIN 9 // from: CERNDJ:52.0 CERNDJ:48.3
  SAY #9002 /* ~It would have been better for you to find a non-violent solution, but now I have entertainment for my guests. Come to my side, my comrades; enjoy the spectacle.~ */
  IF ~~ THEN DO ~CreateCreature("CeLich",[355.569],12)
Enemy()~ EXIT
END

IF ~Global("DerilHalfHealth","LOCALS",1)~ THEN BEGIN 10 // from:
  SAY #9003 /* ~Help me, comrades. To my aid!~ [DERILX06] */
  IF ~~ THEN EXTERN ~CELICH~ 0
END

IF ~~ THEN BEGIN 11 // from: CELICH:0.0
  SAY #9005 /* ~As you will. I am WORTHY!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 12 // from: CERNDJ:53.0
  SAY #9008 /* ~You should have followed their lead, Cernd.  You will provide a fine amusement for my guests.  The rest of you had best leave.  This no longer concerns you.~ */
  IF ~~ THEN DO ~ActionOverride("Cernd",LeaveParty())
StartCutSceneMode()
StartCutScene("cut77a")
EraseJournalEntry(6594)
EraseJournalEntry(10127)
EraseJournalEntry(23340)
EraseJournalEntry(23492)~ SOLVED_JOURNAL #6447 /* ~Cernd's Child

I refused to help Cernd fight Deril.  It did not go well.~ */ EXIT
END

IF ~~ THEN BEGIN 13 // from: CERNDJ:55.0 22.3
  SAY #9015 /* ~That would be a mistake on your part! I'll not tolerate your ultimatums!~ */
  IF ~~ THEN EXTERN ~CELICH~ 2
END

IF ~~ THEN BEGIN 14 // from: CELICH:2.0
  SAY #9017 /* ~There... there is no delay, Lagole. I was just dispatching some... some servants. You! Take this brat and get out of my sight! I have no time for this now!~ */
  IF ~~ THEN DO ~GiveItemCreate("MISC8T","Cernd",0,0,0)~ GOTO 15
END

IF ~~ THEN BEGIN 15 // from: 14.0
  SAY #9018 /* ~This is not over! I will deal with you later!~ [DERILX08] */
  IF ~~ THEN DO ~SetGlobalTimer("DerilLichTimer","GLOBAL",THREE_DAYS)
SetGlobal("DerilLich","GLOBAL",1)
ActionOverride("CeLich",ReallyForceSpell(Myself,DRYAD_TELEPORT))
ReallyForceSpell(Myself,DRYAD_TELEPORT)~ EXIT
END

IF ~NumTimesTalkedTo(0)
OR(3)
!InParty("Cernd")
!AreaCheckObject("AR1004","CERND")
Dead("Cernd")
~ THEN BEGIN 16 // from:
  SAY #9039 /* ~Who has disturbed my meeting? My guests will not tolerate interruptions!~ */
  IF ~~ THEN REPLY #9040 /* ~Oh, stow it! I have come for Cernd's child and you will hand it over!~ */ GOTO 17
  IF ~~ THEN REPLY #9041 /* ~I am terribly sorry for this, as I am sorry for the loss of your servant. I always pity the messenger.~ */ GOTO 18
  IF ~~ THEN REPLY #9042 /* ~You would be Deril, would you not? We have business to discuss.~ */ GOTO 20
  IF ~~ THEN REPLY #9056 /* ~Sorry, my mistake. I'll just be going now.~ */ GOTO 21
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #9043 /* ~Cernd? Where have I heard that name? Ah yes, the lout that left his wife to me. I was puzzled; his former friends call him many other things. Amusing, isn't it?~ */
  IF ~~ THEN GOTO 22
END

IF ~~ THEN BEGIN 18 // from: 16.1
  SAY #9050 /* ~Weep not for the servant. I will rebuild him at my leisure. You, however, I shall leave in pieces. Who are you and what do you wish here?~ */
  IF ~~ THEN REPLY #9051 /* ~If you are Deril, then we have business to discuss.~ */ GOTO 20
  IF ~~ THEN REPLY #9052 /* ~A simple matter, really, over the child of an acquaintance of mine. Cernd is his name.~ */ GOTO 19
  IF ~~ THEN REPLY #9055 /* ~Ehh, actually I have made a mistake and I will be going now. Forgive the intrusion.~ */ GOTO 21
END

IF ~~ THEN BEGIN 19 // from: 20.0 18.1
  SAY #9053 /* ~Is he the man that left his wife to me? She is gone, forgotten even before her death. If I can manage such indifference why can this 'Cernd' not move on?~ */
  IF ~~ THEN GOTO 22
END

IF ~~ THEN BEGIN 20 // from: 18.0 16.2
  SAY #9047 /* ~And what business would that be? Enlighten me. Perhaps it will prove amusing. I highly doubt it, but perhaps.~ */
  IF ~~ THEN REPLY #9048 /* ~It is the small matter of a child, the child of an acquaintance of mine. Cernd is his name.~ */ GOTO 19
  IF ~~ THEN REPLY #9054 /* ~Actually, I think I've made a bit of a mistake and I'll be going now.~ */ GOTO 21
END

IF ~~ THEN BEGIN 21 // from: 20.1 18.2 16.3
  SAY #9057 /* ~Too late for that; I can't appear weak to my guests. Fortunately my comrades enjoy a bit of sport. Come! See these foolish creatures dispatched by my hand!~ */
  IF ~~ THEN DO ~CreateCreatureDoor("CeLich",[355.569],12)
Wait(1)
Enemy()~ EXIT
END

IF ~~ THEN BEGIN 22 // from: 19.0 17.0
  SAY #9058 /* ~As for the child, it is around here somewhere. The servants feed it from time to time.  At least I think they do, I hear it mewling on occasion. Why you think you are entitled to it? What do you intend to do here?~ [DERILX07] */
  IF ~PartyGoldGT(9999)~ THEN REPLY #9059 /* ~I intend to offer you a fortune for the child's return. How does ten thousand gold strike you?~ */ GOTO 23
  IF ~~ THEN REPLY #9060 /* ~I have come to retrieve the child, and I shall take it by force if I have to!~ */ GOTO 27
  IF ~~ THEN REPLY #9061 /* ~I will call the guards if you don't hand it over. They might be interested that you may have killed its mother, Galia.~ */ GOTO 24
  IF ~~ THEN REPLY #9062 /* ~I will make noise, so much that no matter your bribe, the guards will have to investigate you, your history, your company...~ */ DO ~CreateCreature("CeLich",[355.569],12)~ GOTO 13
END

IF ~~ THEN BEGIN 23 // from: 22.0
  SAY #9049 /* ~Do I look like I need gold? And what do you mean by 'return.' Has the father ever seen it?  Does he know its name? Do you? Actually, I may have forgotten it myself.~ */
  IF ~~ THEN GOTO 28
END

IF ~~ THEN BEGIN 24 // from: 22.2
  SAY #9063 /* ~MIGHT and MAY? You call that a case? Do you think such a story would hold up? It has been more than a year, long enough to cover the tracks of any alleged crime.~ */
  IF ~~ THEN GOTO 25
END

IF ~~ THEN BEGIN 25 // from: 24.0
  SAY #9064 /* ~Besides, perhaps she took her own life. Maybe she pined for her beloved to return. "Oh where oh where is Cernd", whom I do not see even now.~ */
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26 // from: 25.0
  SAY #9065 /* ~Perhaps it grew tiresome, just as your company has, and whispering 'Cernd' she sipped hemlock-laced wine... or perhaps I pushed her down the stairs. Take your pick.~ */
  IF ~~ THEN GOTO 28
END

IF ~~ THEN BEGIN 27 // from: 22.1
  SAY #9066 /* ~Then you shall have to. Oh, did I mention my company? Come, my comrades, and see these creatures dispatched! I will prove my worth here!~ */
  IF ~~ THEN DO ~CreateCreatureDoor("CeLich",[355.569],12)
Wait(1)
Enemy()~ EXIT
END

IF ~~ THEN BEGIN 28 // from: 26.0 23.0
  SAY #9067 /* ~Regardless, I tire of this game. You have come under the banner of another, and you shall die for it. Come, my comrades, see me prove my worth!~ */
  IF ~~ THEN DO ~CreateCreatureDoor("CeLich",[355.569],12)
Wait(1)
Enemy()~ EXIT
END

IF ~~ THEN BEGIN 29 // from: 4.0
  SAY #61109 /* ~As for the boy, that must be why I recognize your eyes. He has never known you. What claim have you to him? Do you even know of his name?~ */
  IF ~~ THEN EXTERN ~CERNDJ~ 47
END
