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

BEGIN ~IMOEN2J~

IF ~~ THEN BEGIN 0 // from:
  SAY #49240 /* ~Whoa, stop for a bit. How are you feeling? You looked really sick for a moment there.~ */
  IF ~~ THEN REPLY #49875 /* ~It's nothing. I'm just a little dizzy, that's all. It's already passed.~ */ GOTO 3
  IF ~~ THEN REPLY #49876 /* ~I don't know. Have you felt any ill effects since the spell they cast on you?~ */ GOTO 4
  IF ~~ THEN REPLY #49877 /* ~Leave me alone. I'll be fine.~ */ GOTO 3
END

IF ~~ THEN BEGIN 1 // from:
  SAY #49632 /* ~Are... are you all right? I... I've never seen anything like that...~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #49633 /* ~<CHARNAME>, that was... that was the Slayer. It's one of the avatar forms of Bhaal! You... you became the Slayer?~ */
  IF ~~ THEN REPLY #49890 /* ~The what? How do you know that?~ */ GOTO 5
  IF ~~ THEN REPLY #49891 /* ~I couldn't help it... it just happened. What could have caused that?~ */ GOTO 7
  IF ~~ THEN REPLY #49892 /* ~I've never felt power like that. That was me?~ */ GOTO 5
END

IF ~~ THEN BEGIN 3 // from: 0.2 0.0
  SAY #49880 /* ~If you say so. I felt really weak after my ritual too, but you looked like you were ready to keel over. Take it easy for a while, <CHARNAME>.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4 // from: 0.1
  SAY #49882 /* ~I've been getting weaker, I think, but it hasn't made me all that ill yet. You take care, all right? It's really odd that you are sick.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from: 2.2 2.0
  SAY #49894 /* ~I've read descriptions of the Slayer before. It appeared when the Time of Troubles forced the gods to walk the land...~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 7.0 5.0
  SAY #49896 /* ~<CHARNAME>, we've got to get our souls back from Bodhi and Irenicus. You've been left empty and it's affecting you different than me.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 7 // from: 2.1
  SAY #49907 /* ~I don't know, but I've read descriptions of the Slayer before. It appeared when the Time of Troubles forced the gods to walk the land...~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 8 // from:
  SAY #50659 /* ~We'd better go check on those inmates, <CHARNAME>. We don't want them running wild all over this place.~ */
  IF ~~ THEN DO ~SetGlobal("playerTalk","AR1515",2)
SetGlobal("AsylumPlot","GLOBAL",54)
StartCutSceneMode()
StartCutScene("Cut41m")
~ EXIT
END

IF ~~ THEN BEGIN 9 // from:
  SAY #55185 /* ~It... it's finally over, then.  All those terrible things he did to us, and it's finally over.  Or... or is it?  <CHARNAME>, something's not right...~ */
  IF ~~ THEN EXTERN ~PLAYER1~ 17
END

IF ~~ THEN BEGIN 10 // from:
  SAY #55205 /* ~I... I feel so strange.  I felt myself coming apart, my essence... I don't know.  And there was this pulling, this force, and... and I knew it was you.  I had to come with you, I just knew I had to.~ [IMOEN75] */
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 11 // from: 12.0
  SAY #55207 /* ~Unless it's because she was a vampire, with no soul of her own.  She just... died, and there was only my own soul left?  Or maybe it had something to do with your dying at the Tree of Life.  I don't know.~ [IMOEN74] */
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Yoshimo")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Nalia")~ THEN EXIT
  IF ~IsValidForPartyDialog("Aerie")~ THEN EXTERN ~AERIEJ~ 131
  IF ~!IsValidForPartyDialog("Aerie")
IsValidForPartyDialog("Minsc")~ THEN EXTERN ~MINSCJ~ 155
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Valygar")~ THEN EXTERN ~VALYGARJ~ 77
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Valygar")
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 115
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Korgan")
IsValidForPartyDialog("Jan")~ THEN EXTERN ~JANJ~ 147
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Jan")
IsValidForPartyDialog("Viconia")~ THEN EXTERN ~VICONIJ~ 117
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Viconia")
IsValidForPartyDialog("Yoshimo")~ THEN EXTERN ~YOSHJ~ 90
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Yoshimo")
IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 450
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Yoshimo")
!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Cernd")~ THEN EXTERN ~CERNDJ~ 100
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Yoshimo")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Cernd")
IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~MAZZYJ~ 166
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Yoshimo")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Mazzy")
IsValidForPartyDialog("Anomen")~ THEN EXTERN ~ANOMENJ~ 258
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Yoshimo")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Anomen")
IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~HAERDAJ~ 100
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Yoshimo")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("HaerDalis")
IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 189
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Yoshimo")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Nalia")~ THEN EXTERN ~NALIAJ~ 268
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Yoshimo")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Cernd")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Nalia")~ THEN EXTERN ~EDWINJ~ 95
END

IF ~~ THEN BEGIN 12 // from: 13.0
  SAY #55231 /* ~But... but why didn't I follow Bodhi into... into wherever she went when she died?~ [IMOEN73] */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 13 // from: 10.0
  SAY #55233 /* ~We're dead, aren't we?  If I'm a Child of Bhaal, shouldn't I be... be gone, then?  Just like Sarevok?  Irenicus said I was different, but... I don't know.  But I know I'll follow you wherever I can.~ [IMOEN72] */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 14 // from:
  SAY #55303 /* ~You wouldn't have to do that, would you?  Keep guarding an empty chest?  What would be the point?~ */
  IF ~~ THEN EXTERN ~SAHBEH01~ 39
END

IF ~Dead("c6bodhi")
Global("DeathOfBodhi","LOCALS",0)
~ THEN BEGIN 15 // from:
  SAY #55327 /* ~I feel... I feel better now. I feel whole again.~ [IMOEN69] */
  IF ~~ THEN DO ~SetGlobal("DeathOfBodhi","LOCALS",1)
~ GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 15.0
  SAY #55328 /* ~Thank you for everything you have done. I am restored... and I hope your own healing is not too far off.~ [IMOEN70] */
  IF ~~ THEN SOLVED_JOURNAL #7243 /* ~The Final Battle with Bodhi.

Imoen has been restored with Bodhi's death.  She is fine... and it seems that she has gotten her soul back from the vampire, now.  This bodes well for my coming battle with Irenicus, and makes my path clear.~ */ EXIT
END

IF ~~ THEN BEGIN 17 // from:
  SAY #55756 /* ~I don't see why we should suddenly trust you.  That certainly wasn't any risk... why are you so scared of Irenicus' plans now?  He's said nothing of them.~ */
  IF ~~ THEN EXTERN ~PPSAEM2~ 22
END

IF ~~ THEN BEGIN 18 // from: KORGANJ:127.3
  SAY #55772 /* ~I don't care which route we take.  I want my... my soul back.  And I want Irenicus to suffer for what he's done!~ */
  IF ~~ THEN EXTERN ~PPSAEM2~ 20
END

IF ~~ THEN BEGIN 19 // from: MINSCJ:163.2 JAHEIRAJ:460.1
  SAY #55783 /* ~You... you used me!  You tore apart my soul and then you ripped it from me!!  I'll kill you for that, Irenicus!  I'll kill you!!~ */
  IF ~~ THEN EXTERN ~PPIRENI2~ 60
END

IF ~~ THEN BEGIN 20 // from:
  SAY #55838 /* ~So they've been exiling all the strong Sahuagin outside of the city.  Eventually everyone left inside will be weak.  I don't see what we have to do with it, though.~ */
  IF ~!IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~SAHPR1~ 56
  IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 198
END

IF ~~ THEN BEGIN 21 // from:
  SAY #55851 /* ~We'd best be careful, <CHARNAME>.  I don't know how much I trust this King to remember we're supposed to be rewarded and not eaten, you know?~ */
  IF ~~ THEN EXTERN ~SAHKNG01~ 37
END

IF ~~ THEN BEGIN 22 // from:
  SAY #55933 /* ~Hah!  You'll do nothing but die... and hopefully you'll know that it was <CHARNAME> that beat you, too.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 23 // from:
  SAY #55936 /* ~Should we be so quick to do what she says?  Solaufein hasn't done anything to deserve death.  Let's just step lightly before we commit to anything, okay?~ */
  IF ~~ THEN DO ~SetGlobal("SolaufeinJob","GLOBAL",8)
SetGlobalTimer("udPhaTimer","GLOBAL",THREE_DAYS)
SetGlobal("udPhaTimerOn","GLOBAL",1)~ EXIT
END

IF ~~ THEN BEGIN 24 // from:
  SAY #55942 /* ~This key can open the sewage doors in the dungeon.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 25 // from:
  SAY #55957 /* ~Thanks a lot, Valygar. Shall I call all rangers pigheaded because of you?~ */
  IF ~~ THEN EXTERN ~VALYGARJ~ 88
END

IF ~~ THEN BEGIN 26 // from:
  SAY #56037 /* ~Other than the fact that Bodhi has my soul, sure... I'm just fine.  How about you?~ */
  IF ~~ THEN EXTERN ~ARAN~ 110
END

IF ~~ THEN BEGIN 27 // from:
  SAY #56053 /* ~Please, priestess... we must find the Queen, as well as Irenicus.  Do you know where they might be?~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 28 // from: KELDORJ:211.2
  SAY #56062 /* ~Do... do we even have time for this?  We're here to get <CHARNAME>'s soul back.  Maybe if it wouldn't take too long.  It's horrible to see this place suffer.~ */
  IF ~~ THEN EXTERN ~SUDEMIN~ 35
END

IF ~~ THEN BEGIN 29 // from: KORGANJ:146.3
  SAY #56070 /* ~You fit the role of Drow a bit too easy, Korgan.~ */
  IF ~~ THEN EXTERN ~KORGANJ~ 147
END

IF ~~ THEN BEGIN 30 // from: MINSCJ:176.1 JAHEIRAJ:480.2
  SAY #56088 /* ~We're going to take back <CHARNAME>'s soul if we have to rip it out of your chest, Irenicus!  And you are going to Hell... WHERE YOU BELONG!!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 31 // from: NALIAJ:287.13 MINSCJ:179.1 MAZZYJ:180.4 KORGANJ:150.12 KELDORJ:214.10 JANJ:168.5 JAHEIRAJ:482.2
  SAY #56113 /* ~This is the last stand, here in Hell.  We fall or we win.~ [IMOEN71A] */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("cut85c")
~ EXIT
END

IF ~~ THEN BEGIN 32 // from:
  SAY #56117 /* ~A... awakened? Please tell me that you mean it was hibernating and not... otherworldly.~ */
  IF ~~ THEN EXTERN ~UDSVIR03~ 13
END

IF ~~ THEN BEGIN 33 // from: KORGANJ:151.1
  SAY #56120 /* ~Trust me, Korgan, you would not want us to vote on your worth, anymore than you should speak about hers.~ */
  IF ~~ THEN EXTERN ~KORGANJ~ 152
END

IF ~~ THEN BEGIN 34 // from:
  SAY #56146 /* ~No, enough death. I have seen too much. There will be another way. There must.~ */
  IF ~~ THEN EXTERN ~UDSIMYAZ~ 6
END

IF ~~ THEN BEGIN 35 // from:
  SAY #56158 /* ~And you are truly a magnificent sight, my Lady. I am awed.~ */
  IF ~~ THEN EXTERN ~UDSILVER~ 58
END

IF ~~ THEN BEGIN 36 // from: MINSCJ:184.1 KORGANJ:158.2 JAHEIRAJ:488.5
  SAY #56175 /* ~I've come for what you stole from me! I will not leave here empty! I will have my soul!~ [IMOEN68] */
  IF ~~ THEN EXTERN ~C6BODHI~ 4
END

IF ~~ THEN BEGIN 37 // from: JARLAXLE:24.1
  SAY #57154 /* ~But... but I thought you said the lich trapped the souls of your men in those gems?~ */
  IF ~~ THEN EXTERN ~JARLAXLE~ 25
END

IF ~~ THEN BEGIN 38 // from:
  SAY #58222 /* ~Irenicus hurt me, too, you know.  He kept me in that asylum... and experimented on me, and took my soul like it was an appetizer.  Uh-uh, I'm not going anywhere.  I'm with you all the way.~ */
  IF ~True()~ THEN EXTERN ~PLAYER1~ 53
  IF ~IsValidForPartyDialog("Anomen")
Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 52
  IF ~IsValidForPartyDialog("Aerie")
Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 51
  IF ~IsValidForPartyDialog("Viconia")
Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 50
  IF ~IsValidForPartyDialog("Jaheira")
Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 49
  IF ~IsValidForPartyDialog("Anomen")
!Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 48
  IF ~IsValidForPartyDialog("Aerie")
!Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 47
  IF ~IsValidForPartyDialog("Viconia")
!Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 46
  IF ~IsValidForPartyDialog("Jaheira")
!Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 45
  IF ~IsValidForPartyDialog("Cernd")~ THEN EXTERN ~PLAYER1~ 44
  IF ~IsValidForPartyDialog("Nalia")~ THEN EXTERN ~PLAYER1~ 43
  IF ~IsValidForPartyDialog("Korgan")~ THEN EXTERN ~PLAYER1~ 42
  IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~PLAYER1~ 41
  IF ~IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~PLAYER1~ 40
  IF ~IsValidForPartyDialog("Edwin")~ THEN EXTERN ~PLAYER1~ 39
  IF ~IsValidForPartyDialog("Jan")~ THEN EXTERN ~PLAYER1~ 38
  IF ~IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~PLAYER1~ 37
  IF ~IsValidForPartyDialog("Valygar")~ THEN EXTERN ~PLAYER1~ 36
  IF ~IsValidForPartyDialog("Minsc")~ THEN EXTERN ~PLAYER1~ 35
END

IF ~~ THEN BEGIN 39 // from:
  SAY #61450 /* ~This is the last stand, here in Hell.  We fall or we win.~ [IMOEN71A] */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("cut85c")
~ EXIT
END
