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

BEGIN ~PPAPHRIL~

IF ~~ THEN BEGIN 0 // from: PPIRENI1:20.0
  SAY #44645 /* ~All around... all around! Behind! Above! ALL AROUND!! Aaah!~ [PPAPHR06] */
  IF ~!IsValidForPartyDialogue("JAHEIRA")
!IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("CERND")~ THEN EXTERN ~PPIRENI1~ 21
  IF ~IsValidForPartyDialogue("JAHEIRA")~ THEN EXTERN ~JAHEIRAJ~ 452
  IF ~IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("JAHEIRA")~ THEN EXTERN ~HAERDAJ~ 104
  IF ~IsValidForPartyDialogue("CERND")
!IsValidForPartyDialogue("JAHEIRA")
!IsValidForPartyDialogue("HAERDALIS")~ THEN EXTERN ~CERNDJ~ 104
END

IF ~NumTimesTalkedTo(0)~ THEN BEGIN 1 // from:
  SAY #44689 /* ~What? What do you want? I see you! I see you all!~ [PPAPHR02] */
  IF ~~ THEN REPLY #44690 /* ~What? What do you see?~ */ GOTO 2
  IF ~~ THEN REPLY #44691 /* ~Can you see a way out of this place?~ */ GOTO 5
  IF ~~ THEN REPLY #44692 /* ~What have they done to you here?~ */ GOTO 6
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #44694 /* ~Everything... everyone! Across the planes! All the time! My eyes do not close when closed!~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #44696 /* ~And they are next to you, and me, and everyone! Always! More and more creatures from everywhere and everywhen!~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #44698 /* ~Never alone, even when alone. You just cannot see!~ [PPAPHR07] */
  IF ~!IsValidForPartyDialogue("JAHEIRA")
!IsValidForPartyDialogue("EDWIN")
!IsValidForPartyDialogue("ANOMEN")~ THEN EXIT
  IF ~IsValidForPartyDialogue("JAHEIRA")~ THEN EXTERN ~JAHEIRAJ~ 462
  IF ~!IsValidForPartyDialogue("JAHEIRA")
IsValidForPartyDialogue("EDWIN")~ THEN EXTERN ~EDWINJ~ 110
  IF ~!IsValidForPartyDialogue("JAHEIRA")
!IsValidForPartyDialogue("EDWIN")
IsValidForPartyDialogue("ANOMEN")~ THEN EXTERN ~ANOMENJ~ 268
END

IF ~~ THEN BEGIN 5 // from: 1.1
  SAY #44700 /* ~I see through the walls, for there are no walls when you are somewhere else! I walk through them all, and they walk through me!~ */
  IF ~!IsValidForPartyDialogue("JAHEIRA")
!IsValidForPartyDialogue("EDWIN")
!IsValidForPartyDialogue("ANOMEN")~ THEN EXIT
  IF ~IsValidForPartyDialogue("JAHEIRA")~ THEN EXTERN ~JAHEIRAJ~ 462
  IF ~!IsValidForPartyDialogue("JAHEIRA")
IsValidForPartyDialogue("EDWIN")~ THEN EXTERN ~EDWINJ~ 110
  IF ~!IsValidForPartyDialogue("JAHEIRA")
!IsValidForPartyDialogue("EDWIN")
IsValidForPartyDialogue("ANOMEN")~ THEN EXTERN ~ANOMENJ~ 268
END

IF ~~ THEN BEGIN 6 // from: 1.2
  SAY #44702 /* ~Questions, tests, questions, tests. Are they here, or are they there? I don't know... I don't know if you are here, or you are there.~ */
  IF ~!IsValidForPartyDialogue("JAHEIRA")
!IsValidForPartyDialogue("EDWIN")
!IsValidForPartyDialogue("ANOMEN")~ THEN EXIT
  IF ~IsValidForPartyDialogue("JAHEIRA")~ THEN EXTERN ~JAHEIRAJ~ 462
  IF ~!IsValidForPartyDialogue("JAHEIRA")
IsValidForPartyDialogue("EDWIN")~ THEN EXTERN ~EDWINJ~ 110
  IF ~!IsValidForPartyDialogue("JAHEIRA")
!IsValidForPartyDialogue("EDWIN")
IsValidForPartyDialogue("ANOMEN")~ THEN EXTERN ~ANOMENJ~ 268
END

IF ~True()
~ THEN BEGIN 7 // from:
  SAY #55727 /* ~I can see things... things beyond the veil. It's all the same to my eyes.~ [PPAPHR08] */
  IF ~RandomNumGT(1000,0)
RandomNumLT(1000,201)~ THEN GOTO 9
  IF ~RandomNumGT(1000,200)
RandomNumLT(1000,301)~ THEN GOTO 10
  IF ~RandomNumGT(1000,300)
RandomNumLT(1000,801)~ THEN GOTO 11
  IF ~RandomNumGT(1000,800)
RandomNumLT(1000,901)~ THEN GOTO 8
  IF ~RandomNumGT(1000,900)
RandomNumLT(1000,1000)
~ THEN GOTO 12
  IF ~RandomNum(1000,1000)
~ THEN GOTO 13
END

IF ~~ THEN BEGIN 8 // from: 7.3
  SAY #55730 /* ~I see... a city of changing streets under the Lady of Pain. My eyes... pluck out my eyes.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 9 // from: 7.0
  SAY #55731 /* ~I see kingdoms in the mind that seem so real. Are they are real to those living there? I don't know.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 10 // from: 7.1
  SAY #55732 /* ~I see... through the layers of reality... there is the strangest of fillings between.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 11 // from: 7.2
  SAY #55733 /* ~Do you wish to see! I can show you for a moment! Touch nothing! Make not a sound! See what lies between!~ */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("Cut58a")
~ EXIT
END

IF ~~ THEN BEGIN 12 // from: 7.4
  SAY #55734 /* ~I see... a walking corpse... he speaks... to a pillar of skulls? See, it is madness!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 13 // from: 7.5
  SAY #55735 /* ~I see... a place... coming soon... where there is... never winter... where people have control... over their own stories. Yes, it's a shameless plug from Aphril Foreshadow.~ */
  IF ~~ THEN EXIT
END
