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

BEGIN ~FINSOL01~

IF ~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #67810 /* ~Enough, Amelyssan.  The gods have decreed: this contest is over.~ [SOLAR74] */
  IF ~~ THEN EXTERN ~FINMEL01~ 11
END

IF ~~ THEN BEGIN 1 // from: FINMEL01:11.0
  SAY #67812 /* ~You are no god, priestess of Bhaal.  You play with stolen energies that make you immortal, that give you great power... but that does not make you a god.~ [SOLAR75] */
  IF ~~ THEN EXTERN ~FINMEL01~ 12
END

IF ~~ THEN BEGIN 2 // from: FINMEL01:12.0
  SAY #67814 /* ~But you cannot die, so long as the essences are within you.  Even now, however, they struggle to flee from your weakened frame.  You are defeated, and destiny belongs to the victor.~ [SOLAR76] */
  IF ~~ THEN EXTERN ~FINMEL01~ 13
END

IF ~~ THEN BEGIN 3 // from: FINMEL01:13.0
  SAY #67816 /* ~You will do nothing, Amelyssan, but accept your fate.~ [SOLAR77] */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("cut233h")
~ EXIT
END

IF ~NumTimesTalkedTo(1)
~ THEN BEGIN 4 // from:
  SAY #67817 /* ~The time that was mentioned has come, godchild.  There is a choice before you... you have prevailed against all that have assailed you, and now you must decide your fate.~ [SOLAR78] */
  IF ~OR(2)
!InParty("Imoen2")
Dead("Imoen2")~ THEN GOTO 5
  IF ~InParty("Imoen2")
!Dead("Imoen2")~ THEN GOTO 6
END

IF ~~ THEN BEGIN 5 // from: 8.0 4.0
  SAY #67818 /* ~The vast majority of the soul essences of the children of Bhaal, Lord of Murder, now belong to you and you alone.  You must now decide what to do with this power... be wise, the choice is irrevocable.~ [SOLAR79] */
  IF ~~ THEN REPLY #67828 /* ~What are my options?~ */ GOTO 12
  IF ~~ THEN REPLY #67829 /* ~Shove your wisdom... I fought to get here and I earned my place.~ */ GOTO 9
  IF ~InParty("Imoen2")
!Dead("Imoen2")~ THEN REPLY #67831 /* ~Can I give up the taint easily like Imoen did?~ */ GOTO 10
  IF ~OR(2)
!InParty("Imoen2")
Dead("Imoen2")~ THEN REPLY #67840 /* ~Am I able to give up the essences?  Is it that easy?~ */ GOTO 10
  IF ~~ THEN REPLY #67835 /* ~Why?  What's going to happen to me?~ */ GOTO 11
END

IF ~~ THEN BEGIN 6 // from: 4.1
  SAY #67819 /* ~Only one other spawn of the dead god remains... the sibling who fought at your side.  Her portion of the essence is not large, but she must make a choice.~ [SOLAR80] */
  IF ~~ THEN EXTERN ~IMOEN25J~ 14
END

IF ~~ THEN BEGIN 7 // from:
  SAY #67823 /* ~Do you intend to keep that essence, godchild?  Or will you surrender it to your elder sibling?~ [SOLAR81] */
  IF ~~ THEN EXTERN ~IMOEN25J~ 13
END

IF ~~ THEN BEGIN 8 // from:
  SAY #67824 /* ~As you wish, Imoen, so it is done.  The only decision that remains, then, belongs to your sibling.~ [SOLAR82] */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 9 // from: 5.1
  SAY #67836 /* ~That you did.  I did say that your destiny was there for the taking, did I not?  That does not make the decision any simpler, however... I will tell you your options.~ [SOLAR83] */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 10 // from: 5.3 5.2
  SAY #67837 /* ~You may surrender that which you have always possessed.  The rest still remains within Amelyssan and must be dealt with... and there will always be consequences.  I shall tell you your options.~ [SOLAR84] */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 11 // from: 5.4
  SAY #67838 /* ~There are consequences with all decisions.  This one, however, is unique in its scope.  I will attempt to explain it as best I can.~ [SOLAR85] */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0 10.0 9.0 5.0
  SAY #67839 /* ~First, you may choose to surrender that portion of the essence which remains with you.  It shall be given to Amelyssan... and her soul, with all the essence it contains, shall be destroyed.~ [SOLAR86] */
  IF ~!Alignment(Player1,MASK_EVIL)~ THEN GOTO 13
  IF ~Alignment(Player1,MASK_EVIL)~ THEN GOTO 14
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #67841 /* ~You may think this brutal, but Amelyssan has welded the essence to her own soul, foolishly, and there is no other way.  The price of ambition is always high.~ [SOLAR87] */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.0 12.1
  SAY #67842 /* ~Surrendering the essence will allow the gods to remove its evil taint and hide it well within the halls of Mount Celestial, forever preventing it from soiling further souls.~ [SOLAR88] */
  IF ~~ THEN GOTO 15
END

IF ~~ THEN BEGIN 15 // from: 14.0
  SAY #67843 /* ~You, Bhaalspawn, would be made a mortal... free to continue your life with a destiny of your own choosing.  The manipulations of gods will no longer be your concern and your soul will be untainted.~ [SOLAR89] */
  IF ~~ THEN REPLY #67844 /* ~And my other choice?~ */ GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 15.0
  SAY #67854 /* ~Once Amelyssan's soul is destroyed and the essence released you may accept it into yourself, if you want it, and the Throne of Bhaal will be yours to command.~ [SOLAR90] */
  IF ~GlobalLT("PPEvilChoices","GLOBAL",2)
~ THEN GOTO 17
  IF ~GlobalGT("PPEvilChoices","GLOBAL",1)
GlobalLT("PPEvilChoices","GLOBAL",4)
~ THEN GOTO 20
  IF ~GlobalGT("PPEvilChoices","GLOBAL",3)
GlobalLT("PPEvilChoices","GLOBAL",6)
~ THEN GOTO 23
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #67855 /* ~You have fought against the taint of your father with great vigilance.  It is most impressive... impressive enough that I would be willing to remain by your side.~ [SOLAR91] */
  IF ~~ THEN GOTO 18
END

IF ~~ THEN BEGIN 18 // from: 17.0
  SAY #67856 /* ~The power you may claim will bring new enemies, and the attentions of evil gods such as Cyric, who usurped your sire's godly role by the edict of Ao the Overfather.~ [SOLAR92] */
  IF ~~ THEN GOTO 19
END

IF ~~ THEN BEGIN 19 // from: 18.0
  SAY #67857 /* ~I will fight by your side and help you achieve whatever destiny awaits in the planes.  Your future is unknown even to the gods, although it will certainly be a great one.~ [SOLAR93] */
  IF ~~ THEN GOTO 27
END

IF ~~ THEN BEGIN 20 // from: 16.1
  SAY #67858 /* ~The taint of evil within the totality of Bhaal's essence is great... greater than anything you have ever known.  It remains to be seen whether you will resist this evil, or embrace it.~ [SOLAR94] */
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 21 // from: 20.0
  SAY #67859 /* ~Regardless, you will receive new enemies from amongst the gods... surely Cyric, who usurped your sire's role at the edict of Ao the Overfather, would gain an interest in your powers.~ [SOLAR95] */
  IF ~~ THEN GOTO 22
END

IF ~~ THEN BEGIN 22 // from: 21.0
  SAY #67860 /* ~Your future is unwritten, but once chosen, the gods know that it will be of significance to the universe.  You will have few allies, and your trials will not end anytime soon.~ [SOLAR96] */
  IF ~~ THEN GOTO 27
END

IF ~~ THEN BEGIN 23 // from: 16.2
  SAY #67861 /* ~No doubt you are willing to embrace the sheer evil of Bhaal's essence.  Certainly you have ambition to rival Bhaal or his priestess... and you shall assuredly meet the same folly.  You disgust me.~ [SOLAR97] */
  IF ~~ THEN GOTO 24
END

IF ~~ THEN BEGIN 24 // from: 23.0
  SAY #67862 /* ~The power is yours to command, but it shall also bring godly enemies.  Surely Cyric, the usurper of your sire's divine role by edict of Ao the Overfather, will gain an interest in your progress.~ [SOLAR98] */
  IF ~~ THEN GOTO 25
END

IF ~~ THEN BEGIN 25 // from: 24.0
  SAY #67863 /* ~Your future is unwritten, but once chosen, the gods know that it will be of significance to the universe. Know, as well, that one does not achieve godhood by simple act of will.~ [SOLAR99] */
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26 // from: 25.0
  SAY #67864 /* ~You will have great power among the planes... but your evil taint will cause you to walk your path always alone, and good will ceaselessly counter your plans.~ [SOLAR100] */
  IF ~~ THEN GOTO 27
END

IF ~~ THEN BEGIN 27 // from: 26.0 22.0 19.0
  SAY #67865 /* ~The choice is difficult, but these are your two options, Bhaalspawn.  This is where your destiny is realized, and your future begins.~ [SOLAR101] */
  IF ~True()~ THEN GOTO 28
  IF ~IsValidForPartyDialog("Valygar")
Global("ValygarRomanceActive","GLOBAL",2)~ THEN EXTERN ~VALYG25J~ 3
  IF ~IsValidForPartyDialog("Anomen")
Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~ANOME25J~ 11
  IF ~IsValidForPartyDialog("Viconia")
Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~VICON25J~ 8
  IF ~IsValidForPartyDialog("Aerie")
Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~AERIE25J~ 9
  IF ~IsValidForPartyDialog("Jaheira")
Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~JAHEI25J~ 9
  IF ~IsValidForPartyDialog("Valygar")
!Global("ValygarRomanceActive","GLOBAL",2)~ THEN EXTERN ~VALYG25J~ 2
  IF ~IsValidForPartyDialog("Anomen")
!Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~ANOME25J~ 10
  IF ~IsValidForPartyDialog("Viconia")
!Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~VICON25J~ 6
  IF ~IsValidForPartyDialog("Aerie")
!Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~AERIE25J~ 7
  IF ~IsValidForPartyDialog("Jaheira")
!Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~JAHEI25J~ 7
  IF ~IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~IMOEN25J~ 15
  IF ~IsValidForPartyDialog("Sarevok")
!Alignment("Sarevok",MASK_EVIL)~ THEN EXTERN ~SAREV25J~ 2
  IF ~IsValidForPartyDialog("Sarevok")
Alignment("Sarevok",MASK_EVIL)~ THEN EXTERN ~SAREV25J~ 3
  IF ~IsValidForPartyDialog("Minsc")~ THEN EXTERN ~MINSC25J~ 0
  IF ~IsValidForPartyDialog("Nalia")~ THEN EXTERN ~NALIA25J~ 1
  IF ~IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~HAERD25J~ 1
  IF ~IsValidForPartyDialog("Jan")~ THEN EXTERN ~JAN25J~ 3
  IF ~IsValidForPartyDialog("Cernd")~ THEN EXTERN ~CERND25J~ 0
  IF ~IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~MAZZY25J~ 0
  IF ~IsValidForPartyDialog("Edwin")~ THEN EXTERN ~EDWIN25J~ 0
  IF ~IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGA25J~ 2
  IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDO25J~ 0
END

IF ~~ THEN BEGIN 28 // from: HAERD25J:2.0 27.0 EDWIN25J:0.0
  SAY #67885 /* ~The time has come to make your choice, Bhaalspawn.  What is your wish?~ [SOLAR102] */
  IF ~GlobalLT("PPEvilChoices","GLOBAL",2)
~ THEN REPLY #68063 /* ~I will retain the essence of Bhaal that is my right, and become a power of the planes.~ */ DO ~SetGlobal("PlayerChoseEssence","GLOBAL",1)
~ GOTO 31
  IF ~GlobalGT("PPEvilChoices","GLOBAL",1)
GlobalLT("PPEvilChoices","GLOBAL",4)
~ THEN REPLY #68064 /* ~I will retain the essence of Bhaal that is my right, and become a power of the planes.~ */ DO ~SetGlobal("PlayerChoseEssence","GLOBAL",1)
~ GOTO 30
  IF ~GlobalGT("PPEvilChoices","GLOBAL",3)
GlobalLT("PPEvilChoices","GLOBAL",6)
~ THEN REPLY #68065 /* ~I will retain the essence of Bhaal that is my right, and become a power of the planes.~ */ DO ~SetGlobal("PlayerChoseEssence","GLOBAL",1)
~ GOTO 29
  IF ~~ THEN REPLY #68066 /* ~I do not want the essence of Bhaal.  Do what you will with it... I want to remain mortal.~ */ GOTO 32
END

IF ~~ THEN BEGIN 29 // from: 28.2
  SAY #68068 /* ~As you wish, though it brings me no pleasure to unleash such an evil onto the cosmos.  You are wicked, Bhaalspawn, and your time as a power will be a difficult one, I swear.~ [SOLAR103] */
  IF ~True()~ THEN GOTO 33
  IF ~IsValidForPartyDialog("Valygar")
Global("ValygarRomanceActive","GLOBAL",2)~ THEN EXTERN ~VALYG25J~ 11
  IF ~IsValidForPartyDialog("Anomen")
Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~ANOME25J~ 20
  IF ~IsValidForPartyDialog("Viconia")
Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~VICON25J~ 18
  IF ~IsValidForPartyDialog("Aerie")
Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~AERIE25J~ 20
  IF ~IsValidForPartyDialog("Jaheira")
Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~JAHEI25J~ 18
  IF ~IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~IMOEN25J~ 18
  IF ~IsValidForPartyDialog("Sarevok")
Alignment("Sarevok",MASK_EVIL)~ THEN EXTERN ~SAREV25J~ 4
  IF ~IsValidForPartyDialog("Sarevok")
!Alignment("Sarevok",MASK_EVIL)~ THEN EXTERN ~SAREV25J~ 6
END

IF ~~ THEN BEGIN 30 // from: 28.1
  SAY #68069 /* ~As you wish... though the thought of you succumbing to the temptations of Bhaal's foul taint brings me no pleasure.  We shall see what manner of power you become, in time.~ [SOLAR104] */
  IF ~True()~ THEN GOTO 33
  IF ~IsValidForPartyDialog("Valygar")
Global("ValygarRomanceActive","GLOBAL",2)~ THEN EXTERN ~VALYG25J~ 11
  IF ~IsValidForPartyDialog("Anomen")
Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~ANOME25J~ 20
  IF ~IsValidForPartyDialog("Viconia")
Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~VICON25J~ 18
  IF ~IsValidForPartyDialog("Aerie")
Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~AERIE25J~ 20
  IF ~IsValidForPartyDialog("Jaheira")
Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~JAHEI25J~ 18
  IF ~IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~IMOEN25J~ 18
  IF ~IsValidForPartyDialog("Sarevok")
Alignment("Sarevok",MASK_EVIL)~ THEN EXTERN ~SAREV25J~ 4
  IF ~IsValidForPartyDialog("Sarevok")
!Alignment("Sarevok",MASK_EVIL)~ THEN EXTERN ~SAREV25J~ 6
END

IF ~~ THEN BEGIN 31 // from: 28.0
  SAY #68070 /* ~As you wish.  You have proven to us all that the power in your blood is yours to command... it does not command you.  I shall be proud to stand by you in a place of power among the heavens.~ [SOLAR105] */
  IF ~True()~ THEN GOTO 33
  IF ~IsValidForPartyDialog("Valygar")
Global("ValygarRomanceActive","GLOBAL",2)~ THEN EXTERN ~VALYG25J~ 11
  IF ~IsValidForPartyDialog("Anomen")
Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~ANOME25J~ 20
  IF ~IsValidForPartyDialog("Viconia")
Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~VICON25J~ 18
  IF ~IsValidForPartyDialog("Aerie")
Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~AERIE25J~ 20
  IF ~IsValidForPartyDialog("Jaheira")
Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~JAHEI25J~ 18
  IF ~IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~IMOEN25J~ 18
  IF ~IsValidForPartyDialog("Sarevok")
Alignment("Sarevok",MASK_EVIL)~ THEN EXTERN ~SAREV25J~ 4
  IF ~IsValidForPartyDialog("Sarevok")
!Alignment("Sarevok",MASK_EVIL)~ THEN EXTERN ~SAREV25J~ 6
END

IF ~~ THEN BEGIN 32 // from: 28.3
  SAY #68071 /* ~Then you shall begin life anew, mortal, without the taint of your sire upon your soul... and the essence of Bhaal shall forever be hidden.  You have done well, and freedom shall be your reward.~ [SOLAR106] */
  IF ~True()~ THEN GOTO 33
  IF ~IsValidForPartyDialog("Valygar")
Global("ValygarRomanceActive","GLOBAL",2)~ THEN EXTERN ~VALYG25J~ 12
  IF ~IsValidForPartyDialog("Anomen")
Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~ANOME25J~ 21
  IF ~IsValidForPartyDialog("Viconia")
Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~VICON25J~ 19
  IF ~IsValidForPartyDialog("Aerie")
Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~AERIE25J~ 21
  IF ~IsValidForPartyDialog("Jaheira")
Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~JAHEI25J~ 19
  IF ~IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~IMOEN25J~ 19
  IF ~IsValidForPartyDialog("Sarevok")
Alignment("Sarevok",MASK_EVIL)~ THEN EXTERN ~SAREV25J~ 5
  IF ~IsValidForPartyDialog("Sarevok")
!Alignment("Sarevok",MASK_EVIL)~ THEN EXTERN ~SAREV25J~ 7
END

IF ~~ THEN BEGIN 33 // from: 32.0 31.0 30.0 29.0
  SAY #68097 /* ~Your decision has been made, godchild.  Now the act must be carried out... prepare yourself!~ [SOLAR107] */
  IF ~GlobalLT("PPEvilChoices","GLOBAL",3)
Global("PlayerChoseEssence","GLOBAL",1)
~ THEN DO ~StartCutSceneMode()
StartCutScene("cut233i")
~ EXIT
  IF ~GlobalGT("PPEvilChoices","GLOBAL",2)
Global("PlayerChoseEssence","GLOBAL",1)
~ THEN DO ~StartCutSceneMode()
StartCutScene("cut233i2")
~ EXIT
  IF ~Global("PlayerChoseEssence","GLOBAL",0)
~ THEN DO ~StartCutSceneMode()
StartCutScene("cut233i3")
~ EXIT
END
