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

BEGIN ~SARSPIR~

IF ~Global("SarSpirit","AR5006",1)~ THEN BEGIN 0 // from:
  SAY #70964 /* ~You see a ghostly apparition of an emaciated old man wearing tattered rags.  He tries to speak, but no words come out.  With a look of sorrow in his eyes, he clutches his temples as if in agony, then vanishes.~ */
  IF ~~ THEN DO ~MoveViewObject(Myself,0)
SetGlobal("SarSpirit","AR5006",2)
CreateVisualEffectObject("SPDEATH3",Myself)
DestroySelf()
~ EXIT
END

IF ~Global("SarSpirit","AR5006",3)~ THEN BEGIN 1 // from:
  SAY #70965 /* ~Once again the ghostly apparition of an old beggar manifests itself before you.  He traces his spectral fingers around his neck as if trying to pantomime putting on a necklace.  He points to the doors of the nearby cells, then vanishes once more.~ */
  IF ~~ THEN DO ~MoveViewObject(Myself,0)
SetGlobal("SarSpirit","AR5006",4)
CreateVisualEffectObject("SPDEATH3",Myself)
DestroySelf()
~ UNSOLVED_JOURNAL #73958 /* ~The Ghostly Apparition

I encountered a spirit of an old man in the prison.  He is unable to communicate, but is obviously trying to.  From what I can gather, his gravesite has been defiled in some manner.  Perhaps some elven holy water or something similar would put this spirit at peace... although he also seems to be miming for some kind of necklace... or perhaps it's something to do with his head... as well.~ */ EXIT
END

IF ~Global("SarSpirit","AR5006",5)~ THEN BEGIN 2 // from:
  SAY #70969 /* ~The spirit of the long forgotten prisoner materializes beside his defiled gravesite.  He points at the once blessed ground with imploring eyes before vanishing once more.  If you had some Elven Holy Water you could sanctify the defiled grave.~ */
  IF ~~ THEN DO ~MoveViewObject(Myself,0)
SetGlobal("SarSpirit","AR5006",6)
CreateVisualEffectObject("SPDEATH3",Myself)
DestroySelf()
~ EXIT
END

IF ~Global("SarSpirit","AR5006",7)~ THEN BEGIN 3 // from:
  SAY #70971 /* ~You sprinkle a few drops of Elven Holy Water on the grave.  The spirit appears once more, though its expression is now one of peace rather than anguish.  It motions that it wants you to follow it.~ */
  IF ~~ THEN DO ~EraseJournalEntry(73958)
ClearAllActions()
MoveViewObject(Myself,0)
SetGlobal("SarSpirit","AR5006",8)
StartCutSceneMode()
StartCutScene("cut224a")
~ SOLVED_JOURNAL #73959 /* ~The Ghostly Apparition

Putting the ghost's skull and necklace into the shallow grave, as well as using some elven holy water, seems to have put the spirit at peace.  It repaid me by opening a door which had been unopenable previously.~ */ EXIT
END
