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

BEGIN ~HELLJON~

IF ~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #55229 /* ~So, we are to battle one last time. No more hiding for either of us.~ [IRENIC74] */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #55329 /* ~I will enjoy destroying you, <CHARNAME>. To die in this place is to cease to exist!~ */
  IF ~~ THEN REPLY #55330 /* ~I have defeated you once already, Irenicus. You have no chance.~ */ GOTO 3
  IF ~~ THEN REPLY #55331 /* ~That would be more than you deserve. It was your scheme that brought us here.~ */ GOTO 4
  IF ~~ THEN REPLY #55332 /* ~I am in this horrible place because of you. You will pay!~ */ GOTO 4
  IF ~~ THEN REPLY #55333 /* ~What's the matter, Irenicus? Can't stand the heat? You sound fearful of this place.~ */ GOTO 3
  IF ~~ THEN REPLY #55334 /* ~I am ready to face you. I have seen the depths of my soul and I am not afraid.~ */ GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.4
  SAY #55335 /* ~Yes, perhaps you are focused within yourself, despite the loss of your soul. But I know as much of myself as well, and I, too, have no fear!~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 3 // from: 1.3 1.0
  SAY #55336 /* ~I have as much chance as you, <CHARNAME>. I have fought my own demons in this hell, and I have learned that it is not to be feared!~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 4 // from: 1.2 1.1
  SAY #55337 /* ~I shall not take responsibility for this. No, not this. Though I have found that things are not at their worst. There is value to take from being here, and I have you to thank.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0 3.0 2.0
  SAY #55338 /* ~As horrific as this place is, it merely mirrors the soul we now share. Shrink from it if you will, but I have grown to appreciate what it can offer!~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #55339 /* ~Now defend yourself! One of us is not truly dead, and may be restored if the other is left here to rot! I will be free with what I have taken!~ */
  IF ~~ THEN REPLY #55340 /* ~There is only one possible end. You will fall here, Irenicus. That, I promise.~ */ DO ~EraseJournalEntry(23503)
EraseJournalEntry(46841)
EraseJournalEntry(5742)
EraseJournalEntry(16671)
EraseJournalEntry(9980)
EraseJournalEntry(6330)
EraseJournalEntry(10250)
EraseJournalEntry(4352)
EraseJournalEntry(23346)
EraseJournalEntry(23537)
EraseJournalEntry(5017)
EraseJournalEntry(6945)
EraseJournalEntry(23557)
EraseJournalEntry(9738)
EraseJournalEntry(15713)
EraseJournalEntry(6443)
EraseJournalEntry(16557)
EraseJournalEntry(6427)
EraseJournalEntry(6436)
EraseJournalEntry(6437)
EraseJournalEntry(6438)~ SOLVED_JOURNAL #6426 /* ~Finding Irenicus in Hell

I have followed Irenicus unwillingly to the Hells, tethered to him by the soul that he holds.  We are neither completely alive nor completely dead, but we both hold power over this place in which Bhaal once ruled.  My own perceptions have conjured up tests of myself, tests which led me to know myself better and brought me closer to finding my soul.  And I have; it rests in the body of Irenicus, who has been preparing for my arrival.

We are on equal footing here.  I only hope that I have the power to wrest my soul from his grasp once and for all.  I feel that I must heed the warning that the demon gave me, as well... the Tears of Bhaal also sting.  With hope, they will sting Irenicus and not myself, for I must use every advantage that I can.~ */ GOTO 7
  IF ~~ THEN REPLY #55341 /* ~I will restore myself whether dead or alive. You shall not have what belongs to me!~ */ DO ~EraseJournalEntry(23503)
EraseJournalEntry(46841)
EraseJournalEntry(5742)
EraseJournalEntry(16671)
EraseJournalEntry(9980)
EraseJournalEntry(6330)
EraseJournalEntry(10250)
EraseJournalEntry(4352)
EraseJournalEntry(23346)
EraseJournalEntry(23537)
EraseJournalEntry(5017)
EraseJournalEntry(6945)
EraseJournalEntry(23557)
EraseJournalEntry(9738)
EraseJournalEntry(15713)
EraseJournalEntry(6443)
EraseJournalEntry(16557)
EraseJournalEntry(6427)
EraseJournalEntry(6436)
EraseJournalEntry(6437)
EraseJournalEntry(6438)~ SOLVED_JOURNAL #6426 /* ~Finding Irenicus in Hell

I have followed Irenicus unwillingly to the Hells, tethered to him by the soul that he holds.  We are neither completely alive nor completely dead, but we both hold power over this place in which Bhaal once ruled.  My own perceptions have conjured up tests of myself, tests which led me to know myself better and brought me closer to finding my soul.  And I have; it rests in the body of Irenicus, who has been preparing for my arrival.

We are on equal footing here.  I only hope that I have the power to wrest my soul from his grasp once and for all.  I feel that I must heed the warning that the demon gave me, as well... the Tears of Bhaal also sting.  With hope, they will sting Irenicus and not myself, for I must use every advantage that I can.~ */ GOTO 8
  IF ~~ THEN REPLY #55343 /* ~I don't care about your theories! You will die again, whether dead already or not!~ */ DO ~EraseJournalEntry(23503)
EraseJournalEntry(46841)
EraseJournalEntry(5742)
EraseJournalEntry(16671)
EraseJournalEntry(9980)
EraseJournalEntry(6330)
EraseJournalEntry(10250)
EraseJournalEntry(4352)
EraseJournalEntry(23346)
EraseJournalEntry(23537)
EraseJournalEntry(5017)
EraseJournalEntry(6945)
EraseJournalEntry(23557)
EraseJournalEntry(9738)
EraseJournalEntry(15713)
EraseJournalEntry(6443)
EraseJournalEntry(16557)
EraseJournalEntry(6427)
EraseJournalEntry(6436)
EraseJournalEntry(6437)
EraseJournalEntry(6438)~ SOLVED_JOURNAL #6426 /* ~Finding Irenicus in Hell

I have followed Irenicus unwillingly to the Hells, tethered to him by the soul that he holds.  We are neither completely alive nor completely dead, but we both hold power over this place in which Bhaal once ruled.  My own perceptions have conjured up tests of myself, tests which led me to know myself better and brought me closer to finding my soul.  And I have; it rests in the body of Irenicus, who has been preparing for my arrival.

We are on equal footing here.  I only hope that I have the power to wrest my soul from his grasp once and for all.  I feel that I must heed the warning that the demon gave me, as well... the Tears of Bhaal also sting.  With hope, they will sting Irenicus and not myself, for I must use every advantage that I can.~ */ GOTO 9
  IF ~~ THEN REPLY #55344 /* ~Do what you must, and I will do the same.~ */ DO ~EraseJournalEntry(23503)
EraseJournalEntry(46841)
EraseJournalEntry(5742)
EraseJournalEntry(16671)
EraseJournalEntry(9980)
EraseJournalEntry(6330)
EraseJournalEntry(10250)
EraseJournalEntry(4352)
EraseJournalEntry(23346)
EraseJournalEntry(23537)
EraseJournalEntry(5017)
EraseJournalEntry(6945)
EraseJournalEntry(23557)
EraseJournalEntry(9738)
EraseJournalEntry(15713)
EraseJournalEntry(6443)
EraseJournalEntry(16557)
EraseJournalEntry(6427)
EraseJournalEntry(6436)
EraseJournalEntry(6437)
EraseJournalEntry(6438)~ SOLVED_JOURNAL #6426 /* ~Finding Irenicus in Hell

I have followed Irenicus unwillingly to the Hells, tethered to him by the soul that he holds.  We are neither completely alive nor completely dead, but we both hold power over this place in which Bhaal once ruled.  My own perceptions have conjured up tests of myself, tests which led me to know myself better and brought me closer to finding my soul.  And I have; it rests in the body of Irenicus, who has been preparing for my arrival.

We are on equal footing here.  I only hope that I have the power to wrest my soul from his grasp once and for all.  I feel that I must heed the warning that the demon gave me, as well... the Tears of Bhaal also sting.  With hope, they will sting Irenicus and not myself, for I must use every advantage that I can.~ */ GOTO 10
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #55345 /* ~We shall see, <CHARNAME>. We shall see!~ */
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Imoen2")~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("cut85c")
~ EXIT
  IF ~IsValidForPartyDialog("Cernd")~ THEN EXTERN ~CERNDJ~ 119
  IF ~!IsValidForPartyDialog("Cernd")
IsValidForPartyDialog("Nalia")~ THEN EXTERN ~NALIAJ~ 287
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 150
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
IsValidForPartyDialog("Anomen")~ THEN EXTERN ~ANOMENJ~ 276
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 214
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Aerie")~ THEN EXTERN ~AERIEJ~ 159
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~HAERDAJ~ 123
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
IsValidForPartyDialog("Viconia")~ THEN EXTERN ~VICONIJ~ 159
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
IsValidForPartyDialog("Edwin")~ THEN EXTERN ~EDWINJ~ 126
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
IsValidForPartyDialog("Jan")~ THEN EXTERN ~JANJ~ 168
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~MAZZYJ~ 180
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
IsValidForPartyDialog("Valygar")~ THEN EXTERN ~VALYGARJ~ 90
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 482
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Minsc")~ THEN EXTERN ~MINSCJ~ 179
  IF ~Gender(Player1,MALE)
!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~IMOEN2J~ 31
  IF ~Gender(Player1,FEMALE)
!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~IMOEN2J~ 39
END

IF ~~ THEN BEGIN 8 // from: 6.1
  SAY #55346 /* ~Your soul was never truly yours, Bhaal child! You should let me put it to better use!~ */
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Imoen2")~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("cut85c")
~ EXIT
  IF ~IsValidForPartyDialog("Cernd")~ THEN EXTERN ~CERNDJ~ 119
  IF ~!IsValidForPartyDialog("Cernd")
IsValidForPartyDialog("Nalia")~ THEN EXTERN ~NALIAJ~ 287
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 150
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
IsValidForPartyDialog("Anomen")~ THEN EXTERN ~ANOMENJ~ 276
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 214
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Aerie")~ THEN EXTERN ~AERIEJ~ 159
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~HAERDAJ~ 123
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
IsValidForPartyDialog("Viconia")~ THEN EXTERN ~VICONIJ~ 159
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
IsValidForPartyDialog("Edwin")~ THEN EXTERN ~EDWINJ~ 126
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
IsValidForPartyDialog("Jan")~ THEN EXTERN ~JANJ~ 168
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~MAZZYJ~ 180
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
IsValidForPartyDialog("Valygar")~ THEN EXTERN ~VALYGARJ~ 90
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 482
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Minsc")~ THEN EXTERN ~MINSCJ~ 179
  IF ~Gender(Player1,MALE)
!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~IMOEN2J~ 31
  IF ~Gender(Player1,FEMALE)
!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~IMOEN2J~ 39
END

IF ~~ THEN BEGIN 9 // from: 6.2
  SAY #55347 /* ~An odd situation, but I have no doubt about the outcome!~ */
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Imoen2")~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("cut85c")
~ EXIT
  IF ~IsValidForPartyDialog("Cernd")~ THEN EXTERN ~CERNDJ~ 119
  IF ~!IsValidForPartyDialog("Cernd")
IsValidForPartyDialog("Nalia")~ THEN EXTERN ~NALIAJ~ 287
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 150
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
IsValidForPartyDialog("Anomen")~ THEN EXTERN ~ANOMENJ~ 276
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 214
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Aerie")~ THEN EXTERN ~AERIEJ~ 159
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~HAERDAJ~ 123
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
IsValidForPartyDialog("Viconia")~ THEN EXTERN ~VICONIJ~ 159
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
IsValidForPartyDialog("Edwin")~ THEN EXTERN ~EDWINJ~ 126
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
IsValidForPartyDialog("Jan")~ THEN EXTERN ~JANJ~ 168
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~MAZZYJ~ 180
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
IsValidForPartyDialog("Valygar")~ THEN EXTERN ~VALYGARJ~ 90
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 482
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Minsc")~ THEN EXTERN ~MINSCJ~ 179
  IF ~Gender(Player1,MALE)
!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~IMOEN2J~ 31
  IF ~Gender(Player1,FEMALE)
!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~IMOEN2J~ 39
END

IF ~~ THEN BEGIN 10 // from: 6.3
  SAY #55348 /* ~You will not be so calm when I doom you to non-existence!~ */
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Imoen2")~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("cut85c")
~ EXIT
  IF ~IsValidForPartyDialog("Cernd")~ THEN EXTERN ~CERNDJ~ 119
  IF ~!IsValidForPartyDialog("Cernd")
IsValidForPartyDialog("Nalia")~ THEN EXTERN ~NALIAJ~ 287
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 150
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
IsValidForPartyDialog("Anomen")~ THEN EXTERN ~ANOMENJ~ 276
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 214
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Aerie")~ THEN EXTERN ~AERIEJ~ 159
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~HAERDAJ~ 123
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
IsValidForPartyDialog("Viconia")~ THEN EXTERN ~VICONIJ~ 159
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
IsValidForPartyDialog("Edwin")~ THEN EXTERN ~EDWINJ~ 126
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
IsValidForPartyDialog("Jan")~ THEN EXTERN ~JANJ~ 168
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~MAZZYJ~ 180
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
IsValidForPartyDialog("Valygar")~ THEN EXTERN ~VALYGARJ~ 90
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 482
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Minsc")~ THEN EXTERN ~MINSCJ~ 179
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Imoen2")
Gender(Player1,MALE)~ THEN EXTERN ~IMOEN2J~ 31
  IF ~!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Imoen2")
Gender(Player1,FEMALE)~ THEN EXTERN ~IMOEN2J~ 39
END
