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

BEGIN ~PPJOYE2~
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #0 ~Global("JoyeMove","GLOBAL",0)
!Global("Coffin1","AR1513",2)~ THEN BEGIN 0 // from:
  SAY #56631 /* ~Your work is but half done, <CHARNAME>. Please help me! Kill me...~ */
  IF ~~ THEN DO ~SetGlobal("JoyeMove","GLOBAL",1)
MoveToPointNoInterrupt([1608.1864])
Face(0)
StartDialogueNoSet([PC])~ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 12 even though they appear after this state */
~Global("JoyeMove","GLOBAL",1)
!Global("Coffin1","AR1513",2)~ THEN BEGIN 1 // from:
  SAY #56632 /* ~Aaagh... Hurry! You cannot understand the horror of it! My soul... Helm protect me... it BURNS!!!~ */
  IF ~~ THEN DO ~SetGlobal("JoyeMove","GLOBAL",2)
ReallyForceSpell(Myself,DACE_FLAME)
~ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 12 even though they appear after this state */
~Global("JoyeMove","GLOBAL",2)
!Global("Coffin1","AR1513",2)
!Global("deadjoye","AR1513",1)~ THEN BEGIN 2 // from:
  SAY #56636 /* ~Please <CHARNAME>!~ */
  IF ~~ THEN REPLY #56638 /* ~What is happening to you? I have just killed you!~ */ GOTO 3
  IF ~~ THEN REPLY #56639 /* ~You shall get no help from me. Suffer for all I care, vampire.~ */ GOTO 5
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #56640 /* ~No, not death but torture, half death. The bitch Bodhi has cursed me with vampirism. I am... I am a monster. Only my soul is my own but the horror is too much!~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #56643 /* ~I cannot control my desires... blood... I think I've gone mad. My body speaks but it is not I who decides the words. The body that lies in that coffin is not me. It is my prison.~ */
  IF ~~ THEN REPLY #56663 /* ~What can I do to help you?~ */ GOTO 5
  IF ~~ THEN REPLY #56664 /* ~I care not. I will offer no assistance to a vampire.~ */ GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.1 4.0 2.1
  SAY #56665 /* ~YOU MUST KILL ME! Kill the body in the coffin! I am but a victim of Bodhi's schemes. Please finish the job! Free me!~ */
  IF ~~ THEN REPLY #56666 /* ~How can I free you?~ */ GOTO 8
  IF ~~ THEN REPLY #56667 /* ~I will not.~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.1
  SAY #56668 /* ~Then this place is as much your tomb as it is mine. If my body, that... that thing... does not die, you shall never escape. Only my hand shall open the way. Thus has Bodhi ordained it.~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #56669 /* ~Curse you!~ */
  IF ~~ THEN DO ~ForceSpell(Myself,CLERIC_FLAME_STRIKE)~ EXIT
END

IF ~~ THEN BEGIN 8 // from: 5.0
  SAY #56670 /* ~Get a stake, a wooden stake to end the curse.  The shaman of the kobolds has one! He fears me. My... desires have forced me to feed upon his tribe.~ */
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #56671 /* ~There is a secret room near the Tome of Madness. Within, the shaman worships the shard, now grown. Use the stake to kill my body and get the hand.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #56672 /* ~The hand is half of the key! The crystal is the other! You shall know both when you find them. Find them not and you will die here.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #56673 /* ~Go then and find the stake! Hurry, please! The beast within eats at my soul!~ */
  IF ~~ THEN DO ~ReallyForceSpell(Myself,DACE_FLAME)
~ UNSOLVED_JOURNAL #61348 /* ~The Dace Apparition

The tortured soul of Dace Sontan has appeared to me, begging me to destroy the vampire that he has become. I am to find a wooden stake from a Kobold Shaman in a secret area near the 'Tome of Madness' and return to Dace's coffin and finish him.~ */ EXIT
END

IF WEIGHT #1 ~Global("Coffin1","AR1513",2)
Global("deadjoye","AR1513",1)~ THEN BEGIN 12 // from:
  SAY #58555 /* ~I thank you... <CHARNAME>... I am free in death... I must rest...~ */
  IF ~~ THEN DO ~EraseJournalEntry(61348)
SetGlobal("AsylumDaceGone","GLOBAL",1)
CreateVisualEffectObject("spholy",Myself)
PlaySound("EFF_P15")
DestroySelf()~ SOLVED_JOURNAL #61352 /* ~The Dace Apparition

After I staked the body of Dace Sontan, his soul has been freed from the curse of vampirism.~ */ EXIT
END
