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

BEGIN ~PTAGGET~

IF ~~ THEN BEGIN 0 // from: PBHUNT01:0.0
  SAY #36856 /* ~N-no!  No!  I don't care what you say!  I w-won't be a slave any more!~ */
  IF ~~ THEN EXTERN ~PBHUNT01~ 1
END

IF ~Dead("pbhunt01")
Dead("pbhunt02")
Dead("pbhunt03")
CombatCounter(0)
NumTimesTalkedTo(0)~ THEN BEGIN 1 // from:
  SAY #36909 /* ~I... I thank you, my <PRO_LADYLORD>, for your timely rescue.  I am afraid I did not give much thought as to what I would do after I removed my collar.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #46846 /* ~Rescue Raelis and Haer'Dalis from the planar prison.

It appears I have come through the portal only to enter some strange kind of prison that appears to be in another dimension.  Haer'Dalis and his troupe are nowhere in sight, but I did confront the bounty hunters... and have found a gnome by the name of Tagget who has apparently escaped from somewhere in this place.~ */ GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #36910 /* ~It was foolish of me, I suppose, but I would rather be dead than remain enslaved to the cambion forever.  There has to be a way out of here somewhere!~ */
  IF ~~ THEN REPLY #36912 /* ~What do you mean by your collar?~ */ GOTO 3
  IF ~~ THEN REPLY #36913 /* ~What is this cambion you speak of?~ */ GOTO 5
  IF ~~ THEN REPLY #36914 /* ~Surely there must be a way out of here!~ */ GOTO 7
  IF ~~ THEN REPLY #36915 /* ~Do you know where I can find Haer'Dalis and his troupe?~ */ GOTO 10
  IF ~~ THEN REPLY #36916 /* ~Well, good luck.  I have to be on my way.~ */ GOTO 15
END

IF ~~ THEN BEGIN 3 // from: 9.1 6.0 2.0
  SAY #36917 /* ~The warden keeps a large number of slaves here... prisoners that have been turned into thralls by a magical collar that they wear that controls them.  They are next to impossible to remove.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #46847 /* ~Rescue Raelis and Haer'Dalis from the planar prison.

Tagget told me that the warden of this prison keeps slaves who are controlled mentally through the magical collars that they wear.  I should be wary of such devices if I find them.~ */ GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #36918 /* ~Mine had a small flaw in it, and I was able to squirm out of it not long ago... only to find that there was almost nowhere for me to go, here, and danger down every corridor.~ */
  IF ~~ THEN REPLY #36919 /* ~What was this cambion you mentioned?~ */ GOTO 5
  IF ~~ THEN REPLY #36920 /* ~Nowhere to go?  Is there no way out of here?~ */ GOTO 7
  IF ~~ THEN REPLY #36921 /* ~Do you know where I might find Haer'Dalis and his troupe?~ */ GOTO 10
  IF ~~ THEN REPLY #36922 /* ~Well, I suppose I'll be on my way, then.~ */ GOTO 15
END

IF ~~ THEN BEGIN 5 // from: 9.0 4.0 2.1
  SAY #36923 /* ~The cambion?  The cambion, here, is the warden of this prison.  I know not his true name, but he is a cruel and evil master who delights in the suffering of his thralls.~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #36924 /* ~He is a powerful demon, as well.  You may have defeated his bounty hunters, but if I were you, I would find a way out of here and avoid him entirely.~ */
  IF ~~ THEN REPLY #36925 /* ~What did you mean when you mentioned your collar?~ */ GOTO 3
  IF ~~ THEN REPLY #36926 /* ~You said there was no way out of here?  Surely that is incorrect.~ */ GOTO 7
  IF ~~ THEN REPLY #36927 /* ~Do you know where I might find Haer'Dalis and his troupe?~ */ GOTO 10
  IF ~~ THEN REPLY #36928 /* ~I'll be on my way, then.~ */ GOTO 15
END

IF ~~ THEN BEGIN 7 // from: 6.1 4.1 2.2
  SAY #36929 /* ~The only sure way out of this planar prison is through the dark magic of the cambion, himself.  But I doubt he would transport anyone out of here willingly.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #36930 /* ~There be no physical exit that I know of.  The portals lead only to other rooms within the prison, and there are no doors or windows... if, indeed, there is even an outside to speak of, here.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #46848 /* ~Rescue Raelis and Haer'Dalis from the planar prison.

Bad news.  Tagget has informed me that there is no actual physical exit from the prison... the only way out is through the warden, himself, or through other powerful magic, such as the type Raelis demonstrated when she summoned the conduits.~ */ GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #36931 /* ~No... the only way one can leave is through the use of magic.  Powerful magic that only a few might have, to attract a conduit to this dim and forsaken place.~ */
  IF ~~ THEN REPLY #36932 /* ~What is this cambion you speak of?~ */ GOTO 5
  IF ~~ THEN REPLY #36933 /* ~You mentioned a collar... what did you mean by that?~ */ GOTO 3
  IF ~~ THEN REPLY #36934 /* ~Do you know where I might find Haer'Dalis and his troupe?~ */ GOTO 10
  IF ~~ THEN REPLY #36935 /* ~I'll be on my way, then.~ */ GOTO 15
END

IF ~~ THEN BEGIN 10 // from: 30.0 9.2 6.2 4.2 2.3
  SAY #36946 /* ~You are friends of the actors?  Ahhh... then you may as well begin mourning them, my <PRO_LADYLORD>.  They are in the warden's cells, awaiting transport to Duke Rowan's tower, I am told.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #36947 /* ~The warden is directly north of here, through the hallway... but I would advise against going down that path.~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #36948 /* ~You will see on the floor markings that the tanar'ri have left with their magic... portals that transport you to the other rooms of this prison.~ */
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #36949 /* ~The ones in the hallway to the north you cannot avoid, and they bring you to the barracks where the warden keeps his personal soldiers and thralls.  'Tis a most dangerous path to take.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #46849 /* ~Rescue Raelis and Haer'Dalis from the planar prison.

Haer'Dalis and his troupe are being kept in cells with the warden, in a room directly north of where I entered.  Tagget warned me to be wary, however... some of the hallways have markings that will teleport you to other rooms in the prison.  If I head directly north, the markings lead to rooms full of the warden's guards.~ */ GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.0
  SAY #36950 /* ~There is another way to reach the warden... a safer way, perhaps, that may serve your purpose and perhaps mine, as well.  Might I tell you of it?~ */
  IF ~~ THEN REPLY #36951 /* ~Very well, I'm listening.~ */ GOTO 20
  IF ~~ THEN REPLY #36952 /* ~I've no interest in hearing your thoughts.  Excuse me.~ */ GOTO 23
  IF ~~ THEN REPLY #36953 /* ~I'm not about to trust a supposedly free and definitely desperate slave.  I'll be on my way.~ */ GOTO 24
END

IF ~~ THEN BEGIN 15 // from: 9.3 6.3 4.3 2.4
  SAY #36954 /* ~Er... if you could but tarry a moment, my <PRO_LADYLORD>, I could perhaps offer you some small assistance... something that would aid me, as well.~ */
  IF ~~ THEN REPLY #36955 /* ~Very well, I'm listening.~ */ GOTO 20
  IF ~~ THEN REPLY #36956 /* ~I've no interest in hearing this.  Excuse me.~ */ GOTO 23
  IF ~~ THEN REPLY #36957 /* ~I'm not about to trust the words of a desperate free slave.  I'll find my own way.~ */ GOTO 24
END

IF ~~ THEN BEGIN 16 // from: 30.1 20.0
  SAY #36959 /* ~The passage to the east leads to the chambers of the Master of Thralls... a lesser tanar'ri who holds a device that I know allows him to control the collars.~ */
  IF ~~ THEN GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #36960 /* ~Destroy that device and the thralls are freed.  The warden is vulnerable... and I will be able to contact my newly freed friends.  Some of them are mages who will teleport us away.~ */
  IF ~~ THEN GOTO 18
END

IF ~~ THEN BEGIN 18 // from: 17.0
  SAY #36961 /* ~As well, the portals on the floors to the east may be avoided... they lead only to other cells, I understand, and are full of naught but violent and dangerous creatures.~ */
  IF ~~ THEN GOTO 19
END

IF ~~ THEN BEGIN 19 // from: 18.0
  SAY #36962 /* ~I... I would not offer this chance, my <PRO_LADYLORD>, if I did not think you might have a chance against the warden, himself.  I can think of no other way for either of us to escape this place, truly.~ */
  IF ~~ THEN REPLY #36964 /* ~Why do I not simply free your thralls and have them teleport us away?  Why must I fight the warden?~ */ GOTO 21
END

IF ~~ THEN BEGIN 20 // from: 15.0 14.0
  SAY #36963 /* ~The warden is powerful by himself, true, but he is also protected by the many thralls under his control through the collars they wear.~ */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 21 // from: 19.0
  SAY #36965 /* ~There are many old and powerful magics in this prison, my <PRO_LADYLORD>.  We might get away briefly, but the prison's magic would track us... and the warden would send powerful hunters very quickly.~ */
  IF ~~ THEN GOTO 22
END

IF ~~ THEN BEGIN 22 // from: 21.0
  SAY #36966 /* ~But the prison's magic dies with the warden.  It is the only way.~ */
  IF ~~ THEN REPLY #36967 /* ~Very well.  I will find this Master of Thralls and do as you suggest.~ */ GOTO 25
  IF ~~ THEN REPLY #36968 /* ~Forget it... I will try to find my own way out of here.~ */ GOTO 23
  IF ~~ THEN REPLY #36969 /* ~I'm not about to trust the word of a desperate slave.  You could be setting me up for a trap.~ */ GOTO 24
END

IF ~~ THEN BEGIN 23 // from: 22.1 15.1 14.1
  SAY #36970 /* ~Then... then I wish you well, my <PRO_LADYLORD>.  I, myself, shall remain here where it is safe... for now.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 24 // from: 22.2 15.2 14.2
  SAY #36972 /* ~Then all hope is lost.  I... I hope you find some way out, my <PRO_LADYLORD>, I truly do.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 25 // from: 22.0
  SAY #36974 /* ~Most excellent, my <PRO_LADYLORD>.  Luck is smiling on me, truly, that the mere chance for true escape arrived with you through that conduit.  I wish you every success.~ */
  IF ~~ THEN DO ~SetGlobal("Tagget","GLOBAL",1)
~ UNSOLVED_JOURNAL #46850 /* ~Rescue Raelis and Haer'Dalis from the planar prison.

I have accepted Tagget's plan of an alternate route that may lead to a way out of here.  Going east, Tagget suggests I find the Master of Thralls and destroy his orb... the device that allows control over the slaves through their collars.  That done, the warden will not be protected and will be far easier to defeat... which, it seems, must be done lest the warden track any who leave.  Including us.~ */ EXIT
END

IF ~!Dead("pwarden")
Global("Tagget","GLOBAL",1)
GlobalLT("ThrallOrb","GLOBAL",2)
!PartyHasItem("MISC7X")
~ THEN BEGIN 26 // from:
  SAY #36979 /* ~Be most careful, my <PRO_LADYLORD>!  I understand the Master of Thralls to be a fearsome opponent!  But... but you must destroy his device!  The thralls must be free!~ */
  IF ~~ THEN EXIT
END

IF ~!Dead("pwarden")
Global("Tagget","GLOBAL",1)
Global("ThrallOrb","GLOBAL",2)
~ THEN BEGIN 27 // from:
  SAY #36980 /* ~You have destroyed the orb, my <PRO_LADYLORD>?  I... I almost did not believe it possible!  How wondrous!~ */
  IF ~~ THEN GOTO 28
END

IF ~~ THEN BEGIN 28 // from: 27.0
  SAY #36981 /* ~My friends have likely fled to the farthest corners of the prison or teleported away foolishly.  I will tell them to prepare themselves once the warden is dead!~ */
  IF ~~ THEN GOTO 29
END

IF ~~ THEN BEGIN 29 // from: 28.0
  SAY #36982 /* ~You must destroy the cambion, now, my <LADYLORD>!  It is our only chance!~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~!Dead("pwarden")
Global("Tagget","GLOBAL",0)
~ THEN BEGIN 30 // from:
  SAY #36984 /* ~Is... is there something that I can do for you, my <LADYLORD>?  I shall do anything I can, in return for the kindness you have paid me.~ */
  IF ~~ THEN REPLY #36990 /* ~Tell me where I might find Haer'Dalis and his troupe, if you can.~ */ GOTO 10
  IF ~~ THEN REPLY #36994 /* ~You mentioned a plan you had to get us out of here... tell me about it, please.~ */ GOTO 16
  IF ~~ THEN REPLY #36995 /* ~No thanks, I'm going to keep looking.~ */ GOTO 31
  IF ~~ THEN REPLY #36998 /* ~You can rot there, for all I care.~ */ GOTO 32
END

IF ~~ THEN BEGIN 31 // from: 30.2
  SAY #36999 /* ~As you wish, my <LADYLORD>.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 32 // from: 30.3
  SAY #37000 /* ~I see.  Well... I shall wish you luck, regardless, in escaping this place.~ */
  IF ~~ THEN EXIT
END

IF ~!Dead("pwarden")
Global("Tagget","GLOBAL",1)
GlobalLT("ThrallOrb","GLOBAL",2)
PartyHasItem("MISC7X")
~ THEN BEGIN 33 // from:
  SAY #37005 /* ~Ah... I see you have the orb with you, my <LADYLORD>.  I think the brazier in the room just east of here might serve to destroy it... if anything can.~ */
  IF ~~ THEN EXIT
END

IF ~Dead("pwarden")
Global("ThrallOrb","GLOBAL",2)
~ THEN BEGIN 34 // from:
  SAY #37080 /* ~You... you have defeated the Warden and freed us all.  I wish I had some better way to thank you, my <PRO_LADYLORD>, but I have little doubt you will find a way home on your own.~ */
  IF ~~ THEN GOTO 35
END

IF ~~ THEN BEGIN 35 // from: 34.0
  SAY #37082 /* ~Please... accept my most heart-felt thanks.  The thralls who were once imprisoned here shall always remember you.~ */
  IF ~~ THEN DO ~AddexperienceParty(5000)
EscapeArea()
~ EXIT
END
