// creator  : weidu.exe (version 23100)
// argument : SENDAI.DLG
// game		 : .
// source	 : ./override/SENDAI.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~SENDAI~
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF ~~ THEN BEGIN 0 // from: SENMONK:0.0
  SAY #67443 /* ~You dare threaten me here, in my own enclave?~ [SENDAI11] */
  IF ~~ THEN EXTERN ~SENMONK~ 1
END

IF ~~ THEN BEGIN 1 // from: SENMONK:1.0
  SAY #67445 /* ~Begone, and tell your master I know who my true allies are!~ [SENDAI12] */
  IF ~~ THEN EXTERN ~SENMONK~ 2
END

IF ~~ THEN BEGIN 2 // from:
  SAY #67447 /* ~Damn that Bennon and all the... what is this?~ [SENDAI21] */
  IF ~~ THEN EXTERN ~SENGUA02~ 0
END

IF ~~ THEN BEGIN 3 // from: SENGUA02:0.0
  SAY #67449 /* ~Sniveling maggots!  I cannot waste my time with such petty annoyances!  Set the slaves in the north tunnels and release my pets into the south.  That should put an end to this intruder!~ [SENDAI13] */
  IF ~~ THEN EXTERN ~SENGUA02~ 5
END

IF ~~ THEN BEGIN 4 // from: SENGUA02:1.0
  SAY #67452 /* ~Slaughtered?  And the intruder yet lives? Impossible!~ [SENDAI14] */
  IF ~~ THEN EXTERN ~SENGUA02~ 2
END

IF ~~ THEN BEGIN 5 // from: SENGUA02:2.0
  SAY #67454 /* ~If you value your life you will cease your stammering and speak, Captain!~ [SENDAI15] */
  IF ~~ THEN EXTERN ~SENGUA02~ 3
END

IF ~~ THEN BEGIN 6 // from: SENGUA02:3.0
  SAY #67456 /* ~No!  Why was I not told of this immediately?  They must be stopped!~ [SENDAI16] */
  IF ~~ THEN EXTERN ~SENGUA02~ 4
END

IF ~~ THEN BEGIN 7 // from: SENGUA02:4.0
  SAY #67458 /* ~This Bhaalspawn is far too powerful to trust their destruction to your incompetent hands, Captain!  You are of no further use to me!~ [SENDAI17] */
  IF ~~ THEN DO ~StartCutSceneMode()
StartCutScene("cut237b")~ EXIT
END

IF WEIGHT #0 ~Global("SendaiCutScene2","GLOBAL",2)~ THEN BEGIN 8 // from:
  SAY #67459 /* ~Diaytha, my priestess... destroy this intruder.  Gorion's ward must not be allowed to reach this chamber!~ [SENDAI25] */
  IF ~~ THEN DO ~SetGlobal("SendaiCutScene2","GLOBAL",3)~ EXTERN ~SENPRI~ 0
END

IF ~~ THEN BEGIN 9 // from: SENPRI:0.0
  SAY #67461 /* ~Do not underestimate this invader's power!  Stop them at any cost!  If you fail, Diaytha, you will share the same fate as the unfortunate Captain!~ [SENDAI18] */
  IF ~~ THEN EXTERN ~SENPRI~ 1
END

IF WEIGHT #1 ~Global("SendaiCutScene3","GLOBAL",2)~ THEN BEGIN 10 // from:
  SAY #67466 /* ~Diaytha is dead, and the rogue Bhaalspawn draws ever closer!  Mithykyl, my mind flayer ally... you must stop the fool before this goes further!~ [SENDAI08] */
  IF ~~ THEN DO ~SetGlobal("SendaiCutScene3","GLOBAL",3)~ GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #67467 /* ~Do not wave your tentacles at me, Mithykyl!  I have no other choice... my minions are slaughtered, even my priestess has been destroyed.~ [SENDAI09] */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #67468 /* ~If you wish to feast on the brains of those that Bhaal enslaves, you will unleash your illithid on the Bhaal-child that invades the enclave.  You must not allow the interloper to reach my inner sanctum!~ [SENDAI10] */
  IF ~~ THEN DO ~StartCutSceneMode()
StartCutScene("cut238b")~ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 15 even though they appear after this state */
~True()~ THEN BEGIN 13 // from:
  SAY #67469 /* ~My army has been slaughtered, falling helplessly before your might.  You would have made a great ally to our cause.  Alas, the time for such possibilities is past.~ [SENDAI07] */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.0
  SAY #67470 /* ~But the lives of my servants and slaves have not been spent in vain... they have bought me time to prepare a special surprise for you.  Prepare to meet your end, Bhaalspawn!~ [SENDAI20] */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
DialogueInterrupt(FALSE)
Wait(1)
StartCutScene("cut239a")
~ FLAGS 128 EXIT
END

IF WEIGHT #2 ~Global("Death","LOCALS",1)
~ THEN BEGIN 15 // from:
  SAY #67559 /* ~NO!  NO!  My Bhaal essence is ripped from my very soul!  Damn you!  But I may yet rob you of the glory of your victory.~ [SENDAI22] */
  IF ~!Dead("Abazigal")
~ THEN DO ~SetGlobal("OpenPortal","AR6108",1)
~ SOLVED_JOURNAL #67471 /* ~Sendai's Lair

The bloody carnage is over, and another of the Five has fallen.  I am drawing ever closer to the end of these events... and whatever destiny awaits me.~ */ GOTO 16
  IF ~Dead("Abazigal")
~ THEN DO ~SetGlobal("OpenPortal","AR6108",1)
~ GOTO 17
END

IF ~~ THEN BEGIN 16 // from: 15.0
  SAY #67560 /* ~Know this even as I die... the return of our father is inevitable.  Though I fall, the others will ensure Bhaal is reborn!~ [SENDAI23] */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
EraseJournalEntry(67464)
EraseJournalEntry(67465)
SetGlobal("Enclave","GLOBAL",1)
//DestroyItem("BHAALHP1")
Wait(1)
AddXP2DA("SENDAI")
EndCutSceneMode()
Kill(Myself)
~ EXIT
END

IF ~~ THEN BEGIN 17 // from: 15.1
  SAY #67562 /* ~Know this even as I die... you are a fool!  You have been used and misled.  Witness the truth to which you have been so blind!~ [SENDAI24] */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
SetGlobal("Enclave","GLOBAL",2)
//DestroyItem("BHAALHP1")
Wait(1)
AddXP2DA("SENDAI")
EraseJournalEntry(67718)
EraseJournalEntry(72245)
EraseJournalEntry(67464)
EraseJournalEntry(67465)
StartCutScene("cut240a")
Kill(Myself)
~ UNSOLVED_JOURNAL #67720 /* ~Assault on the Enclaves

Both Sendai and Abazigal are dead, but I have been shown a disturbing vision:  Balthazar and Melissan locked in fierce combat.  The disappearance of Lady Melissan is suddenly not so strange, and I cannot help but wonder at the depths of Balthazar's involvement with the Five.
To find answers I must somehow find a way into the monastery and confront Balthazar... though I suspect one of us will not survive the encounter.

~ */ EXIT
END
