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

BEGIN ~SAHPR4~

IF ~Global("LeavingSahuagin","AR2300",2)
~ THEN BEGIN 0 // from:
  SAY #46579 /* ~You killed the rebel, Prince Villynaty, didn't you?  Ahhh, Senityili, my mother, was a fool!~ */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #46580 /* ~You are not the one who was prophesied to save us.  Indeed, you have destroyed us!  The Prince and the exiles were our last chance to keep our bloodline strong!~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #46581 /* ~You have sent us to a slow, rotting death, <PRO_RACE>!  We shall grow weak and wither under the rule of our mad king!~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #46582 /* ~I hope you are pleased with your treasure, and I pray that the damnable Illithid feast upon your brain slowly!  May Sekolah find you in a dark part of the ocean!!~ */
  IF ~~ THEN DO ~EraseJournalEntry(6467)
EraseJournalEntry(16669)
EraseJournalEntry(15809)
EraseJournalEntry(10116)
EraseJournalEntry(10109)
EraseJournalEntry(7170)
EraseJournalEntry(10931)
EraseJournalEntry(6587)
EraseJournalEntry(19432)
EscapeArea()~ SOLVED_JOURNAL #3680 /* ~The prophecy of Sekolah

The rebel leader has been killed and his heart given to the King of the Sahuagin, who was quite pleased.  He brought me to the entrance to the Underdark, which he says is my only way home, and rewarded me for the heart.  The Prince's priestess, Sallinithyl, appeared after he left, angrily telling me that I have doomed the Sahuagin to a slow death by killing the Prince... obviously I was not the chosen of Sekolah, after all.  Too bad for the Sahuagin.~ */ EXIT
END

IF ~~ THEN BEGIN 4 // from: SAHPR2:1.0
  SAY #46585 /* ~Greater perhaps than you even know.  With Ixilthetocal dead, the exiles can now return to the City-of-Caverns.  Where once our people grew weak, now they can become strong again.~ */
  IF ~!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Aerie")~ THEN GOTO 5
  IF ~IsValidForPartyDialog("Edwin")~ THEN EXTERN ~EDWINJ~ 113
  IF ~!IsValidForPartyDialog("Edwin")
IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~HAERDAJ~ 110
  IF ~!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("HaerDalis")
IsValidForPartyDialog("Aerie")~ THEN EXTERN ~AERIEJ~ 140
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #46586 /* ~Their blood will return to mix with the old, and only together can we protect our city from the advances of the illithid and the drow.  Ixilthetocal was too mad to see what he was doing.~ */
  IF ~~ THEN EXTERN ~SAHPR2~ 2
END

IF ~~ THEN BEGIN 6 // from: SAHPR2:6.0
  SAY #46652 /* ~They are, most honored Villynaty.  The most sacred Senityili was most specific in her description.~ */
  IF ~~ THEN EXTERN ~SAHPR2~ 7
END

IF ~~ THEN BEGIN 7 // from: SAHPR2:9.0
  SAY #46656 /* ~We have a heart, surface <PRO_RACE>... a heart that you can return with to Ixilthetocal and claim as Villynaty's.  The guard of the City-of-Caverns will be down, and we will be able to strike.~ */
  IF ~~ THEN EXTERN ~SAHPR2~ 10
END

IF ~~ THEN BEGIN 8 // from: SAHPR2:11.0
  SAY #46660 /* ~And the City-of-Caverns shall be saved with the return of its exiled blood.~ */
  IF ~~ THEN EXTERN ~SAHPR2~ 12
END

IF ~~ THEN BEGIN 9 // from: SAHPR2:14.0
  SAY #46673 /* ~Most honorable Villynaty... we are trying to gain the cooperation of these creatures.  We NEED their help.  Do not... do not agitate them, I beg of you!~ */
  IF ~~ THEN EXTERN ~SAHPR2~ 15
END

IF ~~ THEN BEGIN 10 // from: SAHPR2:22.0
  SAY #46729 /* ~This is the only way to save our people, <PRO_RACE>.  I pray that you are, indeed, the one promised by Sekolah... and that we shall all meet with success.~ */
  IF ~~ THEN DO ~SetGlobal("villynatyjob","GLOBAL",1)~ UNSOLVED_JOURNAL #19432 /* ~The prophecy of Sekolah

I have spoken to the rebel, Prince Villynaty, and agreed with his plan to help overthrow the mad Sahuagin King.  I am to bring the King a false heart.  Then, while the King is so greedily unprepared, Villynaty and his men will attack.  I am to wait until then before I attack the King or any of his guards.~ */ EXIT
END

IF ~~ THEN BEGIN 11 // from: SAHPR2:21.3 SAHPR2:19.3 SAHPR2:17.3 SAHPR2:16.4 SAHPR2:13.4
  SAY #46730 /* ~No!  Do not do this!  Stop, I beg of you!!~ */
  IF ~~ THEN EXTERN ~SAHPR2~ 23
END

IF ~Global("villynatyjob","GLOBAL",1)~ THEN BEGIN 12 // from:
  SAY #46747 /* ~I pray for your success, <RACE>.  You must go quickly, lest the King become aware of your meeting with Villynaty!~ */
  IF ~~ THEN EXIT
END

IF ~Global("villynatyjob","GLOBAL",2)~ THEN BEGIN 13 // from:
  SAY #46748 /* ~I shall take my mother's place and be the High Priestess for Villynaty as he restores the City-of-Caverns.  You have done well, <RACE>... may Sekolah bless you with strength for your service to us!~ */
  IF ~~ THEN EXIT
END
