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

BEGIN ~GORODR1~

IF ~Global("KnightsAttacked","GLOBAL",1)
Global("zGarOdr1Job","GLOBAL",0)~ THEN BEGIN 0 // from:
  SAY #62343 /* ~Attacked?!  Come, brothers of the Vigil!  We are assaulted without cause!  Helm, aid us!!~ [ODREN07] */
  IF ~~ THEN DO ~Shout(151)
Enemy()
~ EXIT
END

IF ~Global("KnightsAttacked","GLOBAL",1)
Global("zGarOdr1Job","GLOBAL",2)~ THEN BEGIN 1 // from:
  SAY #62345 /* ~Why are you attacking us?!  Come, my brethren!  We are betrayed!!~ [ODREN08] */
  IF ~~ THEN DO ~Shout(151)
Enemy()
~ EXIT
END

IF ~!InPartySlot(LastTalkedToBy,0)
Global("zGarOdr1Job","GLOBAL",0)
Global("OdrenRitualDone","GLOBAL",0)~ THEN BEGIN 2 // from:
  SAY #62355 /* ~Greetings to you, my friend.  I believe I have heard of you... you are <GABBER>, one of the companions of the Child of Bhaal.  Please, I must speak to <PRO_HIMHER>!~ [ODREN09] */
  IF ~~ THEN EXIT
END

IF ~InPartySlot(LastTalkedToBy,0)
Global("zGarOdr1Job","GLOBAL",0)
Global("TalkedTozGarOdr1","GLOBAL",0)
Global("OdrenRitualDone","GLOBAL",0)~ THEN BEGIN 3 // from:
  SAY #62356 /* ~Ah!  The Child of Bhaal has come!  We had hoped that our call for aid would draw you here... praise to the Watcher for hearing our prayers!~ [ODREN10] */
  IF ~~ THEN DO ~SetGlobal("TalkedTozGarOdr1","GLOBAL",1)~ EXTERN ~GORPOL1~ 0
END

IF ~~ THEN BEGIN 4 // from: GORGAR1:0.0
  SAY #62360 /* ~Be at peace, Sister Garlena.  <CHARNAME> has yet to hear our story, let alone agreed to aid us.  We get ahead of ourselves, here.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #62364 /* ~Please accept my apology, <CHARNAME>.  The Watcher's Keep is a long journey from any nearby settlement, and your trip could not have been an easy one.~ */
  IF ~~ THEN REPLY #62366 /* ~I'm in a hurry.  Get on with it, what do you want?~ */ GOTO 7
  IF ~~ THEN REPLY #62370 /* ~I would be happy just knowing who you are and what you want.~ */ GOTO 7
  IF ~~ THEN REPLY #62371 /* ~You're an inch from death, fool.  Stop falling all over yourself and say something interesting.~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.2
  SAY #62372 /* ~Err... yes, yes.  I suppose with the godsblood flowing in your veins, the reputation of you and your, ah, siblings exists for a reason.  I will be quick, then.~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0 5.1 5.0
  SAY #62373 /* ~Allow me to introduce myself properly.  I am Brother Odren, currently the leader of the Knights of the Vigil.  We are... a small sect that was given a most solemn charge by the Vigilant One, Helm, Himself.~ */
  IF ~~ THEN EXTERN ~GORPOL1~ 1
END

IF ~~ THEN BEGIN 8 // from: GORPOL1:1.0
  SAY #62375 /* ~Indeed.  Helm appeared to us during the Time of Troubles, when all gods but He walked Faerun as mortals.  A great evil had been imprisoned, He said, and we were to be its keepers.~ */
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #62376 /* ~Watcher's Keep, this ruin you see before you, was once a great prison for the most terrible foes of the gods.  It was abandoned for many, many centuries until Helm came to us with His news.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #62378 /* ~The old prison would not hold this great evil for long, He said.  Our order would have to maintain a vigil, to watch for the day when the evil would begin to break the great seals and escape.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #62379 /* ~That day has come, <CHARNAME>.  The great evil struggles within, and has infected the Watcher's Keep to the point where we cannot bypass the creatures and foul magic that blocks our path.~ */
  IF ~True()~ THEN GOTO 12
  IF ~IsValidForPartyDialog("Mazzy")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~MAZZY25J~ 5
  IF ~IsValidForPartyDialog("Sarevok")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~SAREV25J~ 12
  IF ~IsValidForPartyDialog("Korgan")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~KORGA25J~ 8
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #62380 /* ~It is our shame that we are too weak to get to the lower vaults and enact the ritual that will strengthen the old seals once again.~ */
  IF ~LevelLT(Player1,10)~ THEN EXTERN ~GORGAR1~ 1
  IF ~LevelGT(Player1,9)~ THEN GOTO 17
END

IF ~~ THEN BEGIN 13 // from: GORGAR1:1.0
  SAY #62389 /* ~Perhaps you are correct, Garlena.  <CHARNAME>, it occurs to me that perhaps you have not accumulated enough experience to enter the Watcher's Keep.  It would be too dangerous, even for you.~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.0
  SAY #62391 /* ~We have... some time, yet, before the great evil grows too powerful to be contained.  I do not wish to offend, but perhaps you could return to us, here, when your abilities are... greater?~ */
  IF ~~ THEN REPLY #62395 /* ~I don't know.  I shall have to see if I have time.~ */ GOTO 15
  IF ~~ THEN REPLY #62396 /* ~Of course.  I have much to do, yet... I shall return another time.~ */ GOTO 15
  IF ~~ THEN REPLY #62397 /* ~Forget it, then.  I've got better things to do.~ */ GOTO 16
  IF ~~ THEN REPLY #62399 /* ~Nobody tells me what I can and cannot do, Odren.  My abilities are great enough.~ */ GOTO 17
END

IF ~~ THEN BEGIN 15 // from: 23.0 14.1 14.0
  SAY #62401 /* ~Very well.  I hope that you will be capable enough soon... if the great evil escapes its prison, none of us shall be safe.~ */
  IF ~~ THEN DO ~EraseJournalEntry(62423)~ UNSOLVED_JOURNAL #62402 /* ~Watcher's Keep

Brother Odren of the Knights of the Vigil has sent out a call for those capable of entering the Watcher's Keep... an ancient prison holding a great evil imprisoned there by the god Helm, himself.  The evil is close to breaking the seals of its prison and becoming free.  The Knights would enter the Keep and perform a ritual to fix those seals, but cannot as they are too weak to bypass the traps and monsters within.

Odren suggests that I, too, am not yet ready to enter the Keep just yet.  I shall return another time when my experience is greater.~ */ EXIT
END

IF ~~ THEN BEGIN 16 // from: 24.2 23.1 20.2 18.2 17.3 14.2
  SAY #62405 /* ~As you wish.  I hope that you will find it in your heart to return to us before this evil has escaped... If that occurs, none of us shall be safe.~ */
  IF ~~ THEN DO ~EraseJournalEntry(62402)~ UNSOLVED_JOURNAL #62423 /* ~Watcher's Keep

Brother Odren of the Knights of the Vigil has sent out a call for those capable of entering the Watcher's Keep... an ancient prison holding a great evil imprisoned there by the god Helm, himself.  The evil is close to breaking the seals of its prison and becoming free.  The Knights would enter the Keep and perform a ritual to fix those seals, but cannot as they are too weak to bypass the traps and monsters within.

I refused Odren's request to enter the Keep and fix his problem, although he asked that I reconsider... if this evil escapes, he says, no one shall be safe.~ */ EXIT
END

IF ~~ THEN BEGIN 17 // from: 24.0 23.2 14.3 12.1
  SAY #62406 /* ~Our need is obvious, then.  We need a group to enter the Keep and descend to the lower vault so they may repair the mystic seals.  Might you... might you do this, <CHARNAME>?~ */
  IF ~~ THEN REPLY #62409 /* ~And what is in it for me if I do?~ */ GOTO 18
  IF ~~ THEN REPLY #62410 /* ~Just what kind of creature is imprisoned here?~ */ GOTO 19
  IF ~~ THEN REPLY #62414 /* ~I'll help you... but I need to know what to do.~ */ GOTO 21
  IF ~~ THEN REPLY #62422 /* ~No, forget it.  I've got better things to do.~ */ GOTO 16
END

IF ~~ THEN BEGIN 18 // from: 20.0 17.0
  SAY #62416 /* ~Our duty is not yours, of course... we would gladly compensate you for this task.  The Knights have items of power and much gold... all of it is yours if you succeed.~ */
  IF ~~ THEN REPLY #62419 /* ~And just what kind of creature is imprisoned here?~ */ GOTO 19
  IF ~~ THEN REPLY #62424 /* ~I'll help you... but I need to know what to do.~ */ GOTO 21
  IF ~~ THEN REPLY #62425 /* ~No, forget it.  I've got better things to do.~ */ GOTO 16
END

IF ~~ THEN BEGIN 19 // from: 18.0 17.1
  SAY #62426 /* ~We do not know.  Helm called it the 'Imprisoned One' only, saying it was a being of great cunning and power.  Enough so that Helm, Himself, was forced to deal with it.~ */
  IF ~True()~ THEN GOTO 20
  IF ~IsValidForPartyDialog("Jaheira")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~JAHEI25J~ 32
  IF ~IsValidForPartyDialog("Jan")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~JAN25J~ 16
  IF ~IsValidForPartyDialog("HaerDalis")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~HAERD25J~ 9
END

IF ~~ THEN BEGIN 20 // from: HAERD25J:9.0 19.0
  SAY #62427 /* ~If enough of the seals remain unbroken, however, the Imprisoned One need not even be encountered.  We just... do not know.  That is why our need is so dire, <CHARNAME>.~ */
  IF ~~ THEN REPLY #62428 /* ~And what is in it for me if I do this?~ */ GOTO 18
  IF ~~ THEN REPLY #62431 /* ~I'll help you... but I need to know what to do.~ */ GOTO 21
  IF ~~ THEN REPLY #62432 /* ~No, forget it.  I've got better things to do.~ */ GOTO 16
END

IF ~~ THEN BEGIN 21 // from: 24.1 20.1 18.1 17.2
  SAY #62454 /* ~You... you will aid us?  Ah, praise to Helm!~ */
  IF ~~ THEN EXTERN ~GORGAR1~ 2
END

IF ~~ THEN BEGIN 22 // from: GORGAR1:2.0
  SAY #62457 /* ~Thank you, <CHARNAME>!  Brother Pol will give you what you need and explain... come, let us ascend to the top of Watcher's Keep.~ */
  IF ~~ THEN DO ~ClearAllActions()
EraseJournalEntry(62402)
EraseJournalEntry(62423)
SetGlobal("zGarOdr1Job","GLOBAL",1)
StartCutSceneMode()
StartCutScene("cut201a")~ UNSOLVED_JOURNAL #62461 /* ~Watcher's Keep

Brother Odren of the Knights of the Vigil has sent out a call for those capable of entering the Watcher's Keep... an ancient prison holding a great evil imprisoned there by the god Helm, himself.  The evil is close to breaking the seals of its prison and becoming free.  The Knights would enter the Keep and perform a ritual to fix those seals, but cannot as they are too weak to bypass the traps and monsters within.

I have accepted the task of entering the Keep and fixing the seal that keeps this evil imprisoned.  It may be a long task... the Keep is large and quite dangerous... but Odren says there is still some time before the remaining seals are broken.  It must be done, however, or this creature will be freed and endanger all.~ */ EXIT
END

IF ~InPartySlot(LastTalkedToBy,0)
Global("zGarOdr1Job","GLOBAL",0)
Global("TalkedTozGarOdr1","GLOBAL",1)
LevelLT(LastTalkedToBy,10)
Global("OdrenRitualDone","GLOBAL",0)~ THEN BEGIN 23 // from:
  SAY #62463 /* ~I greet you.  I would ask of you once again to undertake this mission for the Knights, but I feel you are still as yet unready for such danger.~ */
  IF ~~ THEN REPLY #62464 /* ~I trust your judgement.  I shall return some other time.~ */ GOTO 15
  IF ~~ THEN REPLY #62465 /* ~Forget your mission, then!  I refuse to be judged by you!~ */ GOTO 16
  IF ~~ THEN REPLY #62466 /* ~I think I am ready, Odren.  Tell me what you want.~ */ GOTO 17
END

IF ~InPartySlot(LastTalkedToBy,0)
Global("zGarOdr1Job","GLOBAL",0)
Global("TalkedTozGarOdr1","GLOBAL",1)
LevelGT(LastTalkedToBy,9)
Global("OdrenRitualDone","GLOBAL",0)~ THEN BEGIN 24 // from:
  SAY #62467 /* ~I greet you once again.  Have you reconsidered?  Will you aid the Knights in our duty, containing this evil in the Keep?~ [ODREN11] */
  IF ~~ THEN REPLY #62468 /* ~I might.  Tell me what you want.~ */ GOTO 17
  IF ~~ THEN REPLY #62469 /* ~I'll help you... but I need to know what to do.~ */ GOTO 21
  IF ~~ THEN REPLY #62470 /* ~Forget it.  I'm not interested.~ */ GOTO 16
END

IF ~Global("zGarOdr1Job","GLOBAL",1)
Global("OdrenRitualDone","GLOBAL",0)~ THEN BEGIN 25 // from:
  SAY #62473 /* ~Here... we are atop the ancient prison at last.  Before us is the entrance into its first level, the first obstacle towards reaching the lower vault.~ [ODREN12] */
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26 // from: 25.0
  SAY #62474 /* ~In order to enter... as well as leave... you will need the proper holy symbol.  Talk to Brother Pol... he is our elder and can give you what you need as well as answer any of your questions.~ */
  IF ~~ THEN EXTERN ~GORPOL1~ 2
END

IF ~~ THEN BEGIN 27 // from: GORPOL1:2.0
  SAY #62477 /* ~Any supplies you need can be acquired through Sister Garlena.~ */
  IF ~~ THEN EXTERN ~GORGAR1~ 3
END

IF ~~ THEN BEGIN 28 // from: GORGAR1:3.0
  SAY #62478 /* ~May the Vigilant One walk by your side, <CHARNAME>.  I pray that your godsblood lends you power enough to ensure your success... we all do.~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("zGarOdr1Job","GLOBAL",2)
Unlock("Dome01")
AmbientActivate("AM3000A",TRUE)
StaticSequence("AM3000A",1)
SoundActivate("DomeDoor",TRUE)
OpenDoor("Dome01")
Lock("Dome01")
SmallWait(9)
StaticSequence("AM3000A",3)
AmbientActivate("AM3000A",FALSE)
SoundActivate("DomeDoor",FALSE)
EndCutSceneMode()
~ UNSOLVED_JOURNAL #62481 /* ~Watcher's Keep

Odren has brought me to the top of Watcher's Keep and shown me the entrance.  To get inside, I will need the proper holy symbol and ritual from Brother Pol, who can also answer my questions.  Equipment can be bought from Sister Garlena, who is giving us access to the Knights' resources.~ */ EXIT
END

IF ~Global("KnightsInKeep","GLOBAL",0)
Global("zGarOdr1Job","GLOBAL",2)
Global("TalkedTozGorDemo","GLOBAL",0)~ THEN BEGIN 29 // from:
  SAY #62482 /* ~Greetings to you, <GABBER>.  It is good to see you are well.  I have sensed no change in the seal... I trust all is well?~ [ODREN13] */
  IF ~~ THEN REPLY #62483 /* ~I have questions that I need answered.~ */ GOTO 30
  IF ~~ THEN REPLY #62484 /* ~Everything is well enough, although I have not yet reached the lower vault.~ */ GOTO 31
  IF ~~ THEN REPLY #62485 /* ~No, everything is *not* well.  Forget your mission!  I've had enough of it!~ */ GOTO 32
END

IF ~~ THEN BEGIN 30 // from: 29.0
  SAY #62486 /* ~Brother Pol can answer your questions, I am certain.  Or, at least, he can try.  Helm be with you, <GABBER>.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 31 // from: 29.1
  SAY #62488 /* ~And the Imprisoned One has not yet destroyed the seals, so this is well.  I thank you again for your assistance, <GABBER>, and pray that you persevere.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 32 // from: 29.2
  SAY #62489 /* ~You are upset, <GABBER>... I understand.  But you agreed to aid us in our onerous task.  I can only pray that you change your mind and persevere.~ */
  IF ~~ THEN EXIT
END

IF ~Global("KnightsInKeep","GLOBAL",0)
Global("zGarOdr1Job","GLOBAL",2)
Global("TalkedTozGorDemo","GLOBAL",1)~ THEN BEGIN 33 // from:
  SAY #62494 /* ~You return!  We... we sensed that the lower vault had been breached!  What has occurred?  Did you not cast the ritual?~ [ODREN14] */
  IF ~Global("OdrenRitualDone","GLOBAL",1)
Dead("Demogor2")~ THEN REPLY #62505 /* ~Yes, I did!  And I bet you know exactly what happened next!~ */ GOTO 34
  IF ~Global("OdrenRitualDone","GLOBAL",1)
Dead("Demogor2")~ THEN REPLY #62507 /* ~I did cast your ritual... only to find myself entombed with your Imprisoned One!~ */ GOTO 34
  IF ~Global("OdrenRitualDone","GLOBAL",0)
Dead("Demogor2")~ THEN REPLY #62508 /* ~There's no more need for your ritual.  Your Imprisoned One is dead.~ */ GOTO 44
  IF ~Global("OdrenRitualDone","GLOBAL",1)
!Dead("Demogor2")
Global("zGorDemoJob","GLOBAL",1)~ THEN REPLY #62510 /* ~I did cast the ritual, yes.  I don't think it's needed anymore, though... your Imprisoned One is dead.~ */ GOTO 46
  IF ~Global("OdrenRitualDone","GLOBAL",1)
!Dead("Demogor2")
Global("zGorDemoJob","GLOBAL",1)~ THEN REPLY #62514 /* ~Oh, I cast your ritual all right.  Imagine my surprise to find myself entombed along with your Imprisoned One.~ */ GOTO 47
  IF ~Global("OdrenRitualDone","GLOBAL",0)
!Dead("Demogor2")
Global("zGorDemoJob","GLOBAL",1)~ THEN REPLY #62515 /* ~No, your ritual wasn't needed.  I killed your Imprisoned One.~ */ GOTO 59
  IF ~Global("OdrenRitualDone","GLOBAL",0)
!Dead("Demogor2")
Global("zGorDemoJob","GLOBAL",1)~ THEN REPLY #62516 /* ~No, I didn't.  I met your Imprisoned One, however.  He had some interesting things to say about you.~ */ GOTO 62
  IF ~Global("OdrenRitualDone","GLOBAL",0)
!Dead("Demogor2")
Global("zGorDemoJob","GLOBAL",0)~ THEN REPLY #71125 /* ~I talked to something down there, all right, which claimed to be your Imprisoned One.  But I haven't cast the ritual yet.~ */ GOTO 62
END

IF ~~ THEN BEGIN 34 // from: 33.1 33.0
  SAY #62525 /* ~But... but if you were able to cast the ritual... no!  Your presence here means that Demogorgon is destroyed!  By Helm, you destroyed him?!~ */
  IF ~~ THEN REPLY #62528 /* ~So... you knew that the Imprisoned One was Demogorgon all along.~ */ GOTO 35
  IF ~~ THEN REPLY #62533 /* ~You tricked me!  You *meant* to lock me up in there with him!!~ */ GOTO 35
  IF ~~ THEN REPLY #62534 /* ~Didn't think I had it in me?  Yes, I destroyed him... and you!!~ */ GOTO 45
END

IF ~~ THEN BEGIN 35 // from: 44.1 44.0 34.1 34.0
  SAY #62548 /* ~We... I did.  I am ashamed to say it, but I did.  I did not think you... or anyone... would be strong enough to actually slay the Prince of Demons.~ */
  IF ~True()~ THEN GOTO 36
  IF ~IsValidForPartyDialog("Korgan")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~KORGA25J~ 9
  IF ~IsValidForPartyDialog("Valygar")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~VALYG25J~ 17
  IF ~IsValidForPartyDialog("Minsc")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~MINSC25J~ 5
END

IF ~~ THEN BEGIN 36 // from: 35.0
  SAY #62550 /* ~Not... not that Demogorgon is dead.  You destroyed his form on this plane, freeing him to return to the Abyss.  For him, this is just as good as his freedom.~ */
  IF ~~ THEN GOTO 37
END

IF ~~ THEN BEGIN 37 // from: 36.0
  SAY #62554 /* ~Oh, we have failed our god!  We were too cowardly to accept our duty... to enter the Keep and seal ourselves within with the ritual!  And now... now the Imprisoned One is free.~ */
  IF ~~ THEN GOTO 38
END

IF ~~ THEN BEGIN 38 // from: 37.0
  SAY #62555 /* ~But... but at least Demogorgon is not free to roam the land.  That would have been... horror beyond belief.  Perhaps... perhaps Helm will forgive us, for at least you have prevented that.~ */
  IF ~~ THEN GOTO 39
END

IF ~~ THEN BEGIN 39 // from: 38.0
  SAY #62556 /* ~I have done you a great misdeed.  My pride told me I could not be sacrificed, but that... a Bhaalspawn... it... it was a grievous wrong.  Can you forgive a foolish man?~ */
  IF ~~ THEN REPLY #62557 /* ~I hope you think on this, Odren.  I understand why you thought this was necessary, though... even if it was wrong.~ */ GOTO 40
  IF ~~ THEN REPLY #62558 /* ~I hope your god forgives you, Odren, because I won't.  Not ever.  Get out of my sight!~ */ GOTO 40
  IF ~~ THEN REPLY #62562 /* ~Forgive you?  I suppose... if your reward is large enough.~ */ DO ~ientActivate("AM3000A",TRUE)
StaticSeque~ GOTO 42
  IF ~~ THEN REPLY #62559 /* ~Forgive you?  Forget it, fool!  Payback's a bitch!!~ */ GOTO 43
END

IF ~~ THEN BEGIN 40 // from: 42.1 39.1 39.0
  SAY #62563 /* ~We have fallen far from our true calling.  You are too kind, <GABBER>, to allow us the chance to redeem ourselves in the eyes of Helm.~ */
  IF ~~ THEN DO ~ReputationInc(1)~ GOTO 41
END

IF ~~ THEN BEGIN 41 // from: 40.0
  SAY #62564 /* ~Come, my brethren!  We go on a pilgrimage, now... we must atone for our wrongs and redeem ourselves.  Farewell, <GABBER>.  If we meet again, may it be under fairer circumstances.~ */
  IF ~~ THEN DO ~EraseJournalEntry(62402)
EraseJournalEntry(62423)
EraseJournalEntry(62461)
EraseJournalEntry(62481)
EraseJournalEntry(62987)
EraseJournalEntry(63049)
EraseJournalEntry(63048)
EraseJournalEntry(63091)
AddXP2DA("PLOT01D")
Wait(1)
SetGlobal("CloseDemogorgonTemple","GLOBAL",2)
ActionOverride("shugar01",DialogueInterrupt(FALSE))
ActionOverride("shupol01",DialogueInterrupt(FALSE))
ActionOverride("shugfg01",DialogueInterrupt(FALSE))
ActionOverride("shugmg01",DialogueInterrupt(FALSE))
ActionOverride("shugpr01",DialogueInterrupt(FALSE))
DialogueInterrupt(FALSE)
ActionOverride("shugar01",EscapeArea())
ActionOverride("shupol01",EscapeArea())
ActionOverride("shugfg01",EscapeArea())
ActionOverride("shugmg01",EscapeArea())
ActionOverride("shugpr01",EscapeArea())
EscapeArea()~ SOLVED_JOURNAL #62581 /* ~Watcher's Keep

The Imprisoned One held within the vault that is Watcher's Keep turned out to be none other than Demogorgon, the Prince of Demons, himself.  I was able to defeat the creature and send it back to the Abyss... and then confront Odren outside of the Keep.  He admitted that he had known of Demogorgon's presence... his plan had been for me to seal myself inside the prison along with the demon instead of them.  Odren was remorseful for his blatant cowardice, however, and I decided not to seek retribution.~ */ EXIT
END

IF ~~ THEN BEGIN 42 // from: 39.2
  SAY #62565 /* ~It shames me even more to say it, but... we do not have a reward.  We did not think it necessary.  Take what we have, <GABBER>, if it pleases you.  You have earned it and far more.~ */
  IF ~~ THEN REPLY #62566 /* ~Not enough, priest.  Not enough by far.  Prepare to die!~ */ GOTO 43
  IF ~~ THEN REPLY #62568 /* ~Fine, fine.  I suppose it will have to do.~ */ GOTO 40
END

IF ~~ THEN BEGIN 43 // from: 42.0 39.3
  SAY #62575 /* ~We have fallen far from our true calling, but it is Helm who shall judge us.  We shall not stand idly as you murder us, Bhaalspawn.  To arms, my brethren!~ */
  IF ~~ THEN DO ~EraseJournalEntry(62402)
EraseJournalEntry(62423)
EraseJournalEntry(62461)
EraseJournalEntry(62481)
EraseJournalEntry(62987)
EraseJournalEntry(63049)
EraseJournalEntry(63048)
EraseJournalEntry(63091)
Shout(151)
Enemy()
~ SOLVED_JOURNAL #62582 /* ~Watcher's Keep

The Imprisoned One held within the vault that is Watcher's Keep turned out to be none other than Demogorgon, the Prince of Demons, himself.  I was able to defeat the creature and send it back to the Abyss... and then confront Odren outside of the Keep.  He admitted that he had known of Demogorgon's presence... his plan had been for me to seal myself inside the prison along with the demon instead of them.  Odren was remorseful for his blatant cowardice, but I was not about to allow such a slight to pass without retribution.  I had defeated the Prince of Demons... Odren and his Helmites would be less than a match for me, and hopefully a message to the rest of Faerun not to treat me similarly.~ */ EXIT
END

IF ~~ THEN BEGIN 44 // from: 33.2
  SAY #62583 /* ~You... you destroyed Demogorgon?  You destroyed the Prince of Demons?!  How is this possible?!~ */
  IF ~True()~ THEN REPLY #62584 /* ~So... you knew that the Imprisoned One was Demogorgon all along.~ */ GOTO 35
  IF ~True()~ THEN REPLY #62586 /* ~You expected me to die in there?  Or to cast your ritual and be sealed in there forever?~ */ GOTO 35
  IF ~True()~ THEN REPLY #62589 /* ~How is it possible?  I'll show you how it's possible, you traitorous bastard!~ */ GOTO 45
  IF ~IsValidForPartyDialog("Keldorn")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~KELDO25J~ 9
  IF ~IsValidForPartyDialog("Mazzy")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~MAZZY25J~ 6
  IF ~IsValidForPartyDialog("Imoen2")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~IMOEN25J~ 29
  IF ~IsValidForPartyDialog("Anomen")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~ANOME25J~ 29
END

IF ~~ THEN BEGIN 45 // from: 44.2 34.2
  SAY #62592 /* ~I regret my cowardice, my failure to do my duty as Helm commanded.  I allowed you to set the demon free, sending him back to the Abyss as I'm sure it wished.  But I will not allow you to murder us, Bhaalspawn!~ */
  IF ~~ THEN DO ~EraseJournalEntry(62402)
EraseJournalEntry(62423)
EraseJournalEntry(62461)
EraseJournalEntry(62481)
EraseJournalEntry(62987)
EraseJournalEntry(63049)
EraseJournalEntry(63048)
EraseJournalEntry(63091)
Shout(151)
Enemy()
~ SOLVED_JOURNAL #62594 /* ~Watcher's Keep

After making my way through the treacherous levels of the Watcher's Keep I discovered the Imprisoned One to be none other than Demogorgon, himself, the Prince of Demons.  I dispatched him back to the Abyss and visited retribution on the cowardly Knights of the Vigil who had sent me in there to either die or be trapped forever.  Hopefully this will be a message to others who try to use me similarly.~ */ EXIT
END

IF ~~ THEN BEGIN 46 // from: 33.3
  SAY #62596 /* ~The Imprisoned One... destroyed?  No, this cannot be!  If... if he is destroyed, he will be set free of the prison and sent back to the Abyss!  <CHARNAME>, tell me this is not true!~ */
  IF ~~ THEN REPLY #62598 /* ~The Abyss, eh?  Just how much did you not tell me about this Imprisoned One?~ */ GOTO 48
  IF ~~ THEN REPLY #62600 /* ~Oh, it's true all right.  Go and see for yourself if you don't believe me.~ */ GOTO 49
  IF ~~ THEN REPLY #62601 /* ~Wellll... no, not really.  I agreed to come and tell you he was dead, and your Imprisoned One opened a small hole in your seal so I could leave.  He still lives, however.~ */ GOTO 51
END

IF ~~ THEN BEGIN 47 // from: 33.4
  SAY #62597 /* ~But if you are here... that means the Imprisoned One is destroyed?  No!  Helm's mercy, no!  To destroy him is to free him... to send him back to the Abyss!  <CHARNAME>, tell me this is not so!~ */
  IF ~~ THEN REPLY #62602 /* ~The Abyss, eh?  Just how much did you not tell me about this Imprisoned One?~ */ GOTO 48
  IF ~~ THEN REPLY #62604 /* ~Oh, it's true all right.  Go and see for yourself if you don't believe me.~ */ GOTO 49
  IF ~~ THEN REPLY #62606 /* ~No, he yet lives.  He agreed to open a small hole in the seal so I could leave and tell you he was dead... but I will not do that.~ */ GOTO 51
END

IF ~~ THEN BEGIN 48 // from: 62.0 59.0 47.0 46.0
  SAY #62608 /* ~It is true, <CHARNAME>.  I deceived you, for I believed it was necessary.  But if you have destroyed the Imprisoned One, then all is for naught.  He will be free and Helm's wrath shall be great!~ */
  IF ~~ THEN GOTO 49
END

IF ~~ THEN BEGIN 49 // from: 62.1 59.1 48.0 47.1 46.1
  SAY #62609 /* ~Come, my brethren!  We must venture into the lower vault now that the Bhaalspawn has cleared the way... we must see for ourselves if the Imprisoned One is truly dead or not.~ */
  IF ~~ THEN GOTO 50
END

IF ~~ THEN BEGIN 50 // from: 49.0
  SAY #62610 /* ~You knew not what you did, <GABBER>, so your foolishness can be forgiven, I am sure.  Farewell to you.~ */
  IF ~True()~ THEN DO ~SetGlobal("KnightsInKeep","GLOBAL",1)~ EXIT
  IF ~IsValidForPartyDialog("Edwin")
GlobalGT("Chapter","GLOBAL",7)
~ THEN DO ~SetGlobal("KnightsInKeep","GLOBAL",1)~ EXTERN ~EDWIN25J~ 6
  IF ~IsValidForPartyDialog("Korgan")
GlobalGT("Chapter","GLOBAL",7)
~ THEN DO ~SetGlobal("KnightsInKeep","GLOBAL",1)~ EXTERN ~KORGA25J~ 10
  IF ~IsValidForPartyDialog("Imoen2")
GlobalGT("Chapter","GLOBAL",7)
~ THEN DO ~SetGlobal("KnightsInKeep","GLOBAL",1)~ EXTERN ~IMOEN25J~ 30
END

IF ~~ THEN BEGIN 51 // from: 47.2 46.2
  SAY #62611 /* ~You agreed to...?  So the great demon has not been destroyed?  You... you successfully cast the ritual and... and persuaded the beast to enable you to escape?~ */
  IF ~~ THEN REPLY #62613 /* ~Yes, but that's not what you were expecting to happen, correct?~ */ GOTO 52
  IF ~~ THEN REPLY #62615 /* ~As opposed to sealing myself in there with it forever?~ */ GOTO 52
END

IF ~~ THEN BEGIN 52 // from: 51.1 51.0
  SAY #62618 /* ~I... I am ashamed, <CHARNAME>.  I am ashamed at my cowardice and my pride, believing us too important and Helm's judgement too harsh to command us to enter the Keep and seal ourselves within.~ */
  IF ~~ THEN GOTO 53
END

IF ~~ THEN BEGIN 53 // from: 52.0
  SAY #62620 /* ~The Imprisoned One is none other than Demogorgon, Prince of Demons.  We did not think he could... be defeated... and so we sought someone else to take our place and seal the demon within the Keep.~ */
  IF ~True()~ THEN GOTO 54
  IF ~IsValidForPartyDialog("Jaheira")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~JAHEI25J~ 33
  IF ~IsValidForPartyDialog("Viconia")
Alignment("Viconia",MASK_EVIL)
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~VICON25J~ 27
  IF ~IsValidForPartyDialog("Anomen")
GlobalGT("Chapter","GLOBAL",7)
~ THEN EXTERN ~ANOME25J~ 30
END

IF ~~ THEN BEGIN 54 // from: 53.0
  SAY #62653 /* ~And you succeeded in what should have been our duty.  We are disgraced in the eyes of Helm.  To think that you... a Bhaalspawn... were less worthy.  It is a great misdeed.  Can you forgive a foolish man?~ */
  IF ~~ THEN REPLY #62654 /* ~I hope you think on this, Odren.  I understand why you thought this was necessary, though... even if it was wrong.~ */ GOTO 55
  IF ~~ THEN REPLY #62655 /* ~I hope your god forgives you, Odren, because I won't.  Not ever.  Get out of my sight!~ */ GOTO 55
  IF ~~ THEN REPLY #62656 /* ~Forgive you?  I suppose... if your reward is large enough.~ */ DO ~GiveGoldForce(10000)
AddXP2DA("PLOT01C")~ GOTO 57
  IF ~~ THEN REPLY #62657 /* ~Forgive you?  Forget it, fool!  Retribution is at hand!~ */ GOTO 58
END

IF ~~ THEN BEGIN 55 // from: 54.1 54.0
  SAY #62658 /* ~We have fallen far from our true calling.  You are too kind, <CHARNAME>, to allow us the chance to redeem ourselves in the eyes of Helm.~ */
  IF ~~ THEN DO ~ReputationInc(1)
AddXP2DA("PLOT01B")~ GOTO 56
END

IF ~~ THEN BEGIN 56 // from: 57.1 55.0
  SAY #62659 /* ~Come, my brethren!  We go on a pilgrimage, now... we must atone for our wrongs and redeem ourselves.  Farewell, <CHARNAME>.  If we meet again, may it be under fairer circumstances.~ */
  IF ~~ THEN DO ~EraseJournalEntry(62402)
EraseJournalEntry(62423)
EraseJournalEntry(62461)
EraseJournalEntry(62481)
EraseJournalEntry(62987)
EraseJournalEntry(63049)
EraseJournalEntry(63048)
EraseJournalEntry(63091)
Wait(1)
SetGlobal("CloseDemogorgonTemple","GLOBAL",1)
ActionOverride("shugar01",EscapeArea())
ActionOverride("shupol01",EscapeArea())
ActionOverride("shugfg01",EscapeArea())
ActionOverride("shugmg01",EscapeArea())
ActionOverride("shugpr01",EscapeArea())
EscapeArea()
~ SOLVED_JOURNAL #62660 /* ~Watcher's Keep

After making my way through the treacherous levels of the Watcher's Keep, I discovered the Imprisoned One to be none other than Demogorgon, Prince of Demons, himself.  I performed the ritual to re-seal his prison... and tricked the demon into allowing me to leave the prison to lure Odren and the Knights within.  I did not... Demogorgon remains imprisoned and Odren has left with the Knights to atone for their abandonment of their calling in trying to manipulate me.~ */ EXIT
END

IF ~~ THEN BEGIN 57 // from: 54.2
  SAY #62661 /* ~It shames me even more to say it, but... we do not have a reward.  We did not think it necessary.  Take what we have, <CHARNAME>, if it pleases you.  You have earned it and far more.~ */
  IF ~~ THEN REPLY #62662 /* ~Not enough, priest.  Not enough by far.  Prepare to die!~ */ GOTO 58
  IF ~~ THEN REPLY #62663 /* ~Fine, fine.  I suppose it will have to do.~ */ DO ~ReputationInc(1)~ GOTO 56
END

IF ~~ THEN BEGIN 58 // from: 57.0 54.3
  SAY #62664 /* ~What else would one expect from a Child of Bhaal?  Despite what we have done, it shall be Helm who judges us... not you.  To arms, brethren!~ */
  IF ~~ THEN DO ~EraseJournalEntry(62402)
EraseJournalEntry(62423)
EraseJournalEntry(62461)
EraseJournalEntry(62481)
EraseJournalEntry(62987)
EraseJournalEntry(63049)
EraseJournalEntry(63048)
EraseJournalEntry(63091)
Shout(151)
Enemy()
~ SOLVED_JOURNAL #62665 /* ~Watcher's Keep

After making my way through the treacherous levels of the Watcher's Keep, I discovered the Imprisoned One to be none other than Demogorgon, Prince of Demons, himself.  I performed the ritual to re-seal his prison... and tricked the demon into allowing me to leave the prison to lure Odren and the Knights within.  I did not... Demogorgon remains imprisoned and I have taken my retribution upon the Knights of the Vigil for the part they played in trying to manipulate and imprison me.  Perhaps this will be a lesson to others who think of doing the same.~ */ EXIT
END

IF ~~ THEN BEGIN 59 // from: 33.5
  SAY #62666 /* ~The Imprisoned One... destroyed?  No, this cannot be!  If... if he is destroyed, he will be set free of the prison and sent back to the Abyss!  <GABBER>, tell me this is not true!~ */
  IF ~~ THEN REPLY #62668 /* ~How about we talk, first, about this ritual of yours.  You meant to seal me in there along with him!~ */ GOTO 48
  IF ~~ THEN REPLY #62669 /* ~Oh, it's true all right.  Go and see for yourself if you don't believe me.~ */ GOTO 49
  IF ~~ THEN REPLY #62670 /* ~Well, no, not really.  I encountered your Imprisoned One and agreed to come out here to lure you within his prison... but he is not dead.~ */ GOTO 60
END

IF ~~ THEN BEGIN 60 // from: 62.2 59.2
  SAY #62671 /* ~What?!  So the Imprisoned One is *not* destroyed?  You entered the lower vault and left without casting the ritual?!  You fool!  Helm curse me for thinking you could complete this task!~ */
  IF ~~ THEN GOTO 61
END

IF ~~ THEN BEGIN 61 // from: 60.0
  SAY #62672 /* ~So I am left to enter the lion's maw, regardless, as was my duty.  Come, my brethren!  The Bhaalspawn has cleared the way... we must enter the Keep and complete the ritual ourselves!~ */
  IF ~~ THEN DO ~SetGlobal("KnightsInKeep","GLOBAL",1)~ EXIT
END

IF ~~ THEN BEGIN 62 // from: 33.7 33.6
  SAY #62673 /* ~That means nothing to me!  Tell me, <CHARNAME>... did you destroy the Imprisoned One or didn't you?!  If you did, then you have foolishly freed him to return to the Abyss... I must know!~ */
  IF ~~ THEN REPLY #62674 /* ~'Abyss'?  You said you knew nothing of the Imprisoned One!  You lied to me!~ */ GOTO 48
  IF ~~ THEN REPLY #62676 /* ~Oh, he's destroyed, all right.  Go ahead and see for yourself.~ */ GOTO 49
  IF ~~ THEN REPLY #62677 /* ~No, he isn't!  Why should I do anything you ask?!~ */ GOTO 60
END

IF ~Global("KnightsInKeep","GLOBAL",1)
Dead("Demogor2")~ THEN BEGIN 63 // from:
  SAY #62678 /* ~Th... thank you...~ [ODREN15] */
  IF ~~ THEN GOTO 64
END

IF ~~ THEN BEGIN 64 // from: 63.0
  SAY #62679 /* ~We... we meant for you to... perform *our* duty.  To... trap yourself within... along with the demon.  We thought... we thought ourselves too important to... sacrifice.  But... a Bhaalspawn?~ */
  IF ~~ THEN GOTO 65
END

IF ~~ THEN BEGIN 65 // from: 64.0
  SAY #62680 /* ~It was wrong of us.  Grievously... wrong.  Helm forgive us... Demogorgon is now released back to... the Abyss.  But... but he is gone from this plane, at least.~ */
  IF ~~ THEN GOTO 66
END

IF ~~ THEN BEGIN 66 // from: 65.0
  SAY #62681 /* ~It was... a valiant fight, no?  Perhaps... perhaps we were truer to Helm in death... than in life.  Please, <CHARNAME>... forgive us...~ */
  IF ~~ THEN DO ~DestroyItem("minhp1")
EraseJournalEntry(62402)
EraseJournalEntry(62423)
EraseJournalEntry(62461)
EraseJournalEntry(62481)
EraseJournalEntry(62987)
EraseJournalEntry(63049)
EraseJournalEntry(63048)
EraseJournalEntry(63091)
AddXP2DA("PLOT01A")
Kill(Myself)
~ SOLVED_JOURNAL #62682 /* ~Watcher's Keep

After making my way through the treacherous levels of the Watcher's Keep, I discovered the Imprisoned One to be none other than Demogorgon, Prince of Demons, himself.  He is now destroyed, returned to the Abyss, presumably, and the Knights of the Vigil are destroyed.  Though Odren had manipulated me out of pride into performing his sacred duty for him, in the end he had some measure of valiance.~ */ EXIT
END
