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

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

IF WEIGHT #0 ~NumTimesTalkedTo(0)
InPartySlot(LastTalkedToBy,0)
~ THEN BEGIN 0 // from:
  SAY #899 /* ~Quickly, we must get out of here before whoever did this returns. I swear, traveling with you is never dull.~ [JAHEIR01] */
  IF ~~ THEN REPLY #900 /* ~I may help, but refresh my memory as to who you are.~ */ GOTO 40
  IF ~~ THEN REPLY #901 /* ~You can't make demands of me. What authority do you think you have?~ */ GOTO 42
  IF ~~ THEN REPLY #902 /* ~I don't know why I am here. Perhaps you are to blame.~ */ GOTO 44
  IF ~~ THEN REPLY #903 /* ~Do you know why we are here? Any clue would be helpful.~ */ GOTO 45
  IF ~~ THEN REPLY #904 /* ~Have you any idea why we are here?~ */ GOTO 47
END

IF ~~ THEN BEGIN 1 // from: 41.0
  SAY #905 /* ~No, we have traveled together too long for such games, and I will answer plain and true if it will help.~ */
  IF ~~ THEN GOTO 48
END

IF ~~ THEN BEGIN 2 // from: 43.0
  SAY #906 /* ~I will detail our relationship if you wish, but it shall be nothing you do not already know.~ */
  IF ~~ THEN GOTO 48
END

IF ~~ THEN BEGIN 3 // from: 44.0
  SAY #907 /* ~Have you forgotten what we have done?  Perhaps your senses are addled.  I will remind you, but it will not give any new clues as to why we are here.~ */
  IF ~~ THEN GOTO 48
END

IF ~~ THEN BEGIN 4 // from: 46.0
  SAY #908 /* ~I will recount what led to this if you wish, though I think I have little to offer that you do not know already.~ */
  IF ~~ THEN GOTO 51
END

IF ~~ THEN BEGIN 5 // from: 47.0
  SAY #909 /* ~I will repeat what I believe led to our capture if I must, but I doubt it shall prove to be different than what is already known by you.~ */
  IF ~~ THEN GOTO 51
END

IF ~~ THEN BEGIN 6 // from: 48.0
  SAY #910 /* ~At the behest of your slain foster father, my husband Khalid and I have kept an interest in you, though you have proven to be your own person in all things.~ */
  IF ~~ THEN GOTO 49
END

IF ~~ THEN BEGIN 7 // from:
  SAY #911 /* ~******~ */
  IF ~~ THEN GOTO 52
END

IF ~~ THEN BEGIN 8 // from: 51.0
  SAY #912 /* ~Your... unique heritage has proven a magnet to adventure, for better or worse, and your foster father was right in directing us to watch over you.~ */
  IF ~~ THEN GOTO 49
END

IF ~~ THEN BEGIN 9 // from: 53.0 52.0 50.0
  SAY #921 /* ~Once we know, we will deal with them in due course, but for the time being it is more important we retrieve our friends and companions and leave this place.~ */
  IF ~OpenState("Cell01",FALSE)
!PartyHasItem("Misc4b")
~ THEN REPLY #922 /* ~I have no time for one as long-winded as you. Fare thee well, I'll not rescue you.~ */ GOTO 13
  IF ~OpenState("Cell01",FALSE)
!PartyHasItem("Misc4b")
~ THEN REPLY #923 /* ~I agree, but your cage seems to require a key of some magical nature.~ */ GOTO 58
  IF ~~ THEN REPLY #924 /* ~Where is Khalid now? He is not with you?~ */ GOTO 54
  IF ~~ THEN REPLY #925 /* ~They should be more careful if they are weak. Where is Khalid, anyway?~ */ GOTO 56
  IF ~~ THEN REPLY #933 /* ~Perhaps we'll find Khalid hiding under a bed along the way.~ */ GOTO 12
  IF ~OpenState("Cell01",FALSE)
PartyHasItem("Misc4b")
~ THEN REPLY #37799 /* ~Relax, I think I have found the key to release you.~ */ GOTO 38
  IF ~OpenState("Cell01",TRUE)
!PartyHasItem("Misc4b")~ THEN REPLY #37800 /* ~Well, I think I have opened your cage and there aren't any traps present.~ */ GOTO 33
END

IF ~~ THEN BEGIN 10 // from: 55.0
  SAY #926 /* ~You, however, look as though you have been treated most unfavorably, and I should not like to think of Khalid receiving the same.~ */
  IF ~~ THEN REPLY #946 /* ~I care not. In fact, I think I'll leave you to distract any guards.~ */ GOTO 13
  IF ~OpenState("Cell01",FALSE)
~ THEN REPLY #947 /* ~Such a chore to protect all these people from their own ineptitude.~ */ GOTO 15
  IF ~OpenState("Cell01",FALSE)
!PartyHasItem("Misc4b")
~ THEN REPLY #948 /* ~I will help, but your cage seems to be sealed magically.~ */ GOTO 58
  IF ~OpenState("Cell01",TRUE)
~ THEN REPLY #37802 /* ~Then we shall be quick to find him. Your cage is unbarred, let's go.~ */ GOTO 33
  IF ~OpenState("Cell01",FALSE)
PartyHasItem("Misc4b")~ THEN REPLY #37803 /* ~Then I will unlock your cage quickly. I think I found the key.~ */ GOTO 38
END

IF ~~ THEN BEGIN 11 // from: 57.0
  SAY #935 /* ~Enough of this, we have no time to bicker. We must find any of our companions that are trapped here and escape.~ */
  IF ~~ THEN REPLY #949 /* ~More baggage for me? I think I'll leave you all behind to distract the guards.~ */ GOTO 13
  IF ~OpenState("Cell01",FALSE)
!PartyHasItem("Misc4b")~ THEN REPLY #950 /* ~I will decide what course is best. First I shall see to your cage.~ */ GOTO 60
  IF ~OpenState("Cell01",FALSE)
!PartyHasItem("Misc4b")~ THEN REPLY #951 /* ~Of course, though the bars that bind you seem warded by a magic of some sort.~ */ GOTO 58
  IF ~OpenState("Cell01",TRUE)
~ THEN REPLY #37810 /* ~I will decide what course is best. I have already seen to your cage.~ */ GOTO 33
  IF ~OpenState("Cell01",FALSE)
PartyHasItem("Misc4b")
~ THEN REPLY #37811 /* ~I will decide what course is best. First I shall see to your cage. I think I have the key.~ */ GOTO 38
  IF ~OpenState("Cell01",TRUE)~ THEN REPLY #37813 /* ~Certainly. I have already seen to your cage. It is open and you are free.~ */ GOTO 33
  IF ~OpenState("Cell01",FALSE)
PartyHasItem("Misc4b")
~ THEN REPLY #37814 /* ~Certainly. I believe I have the key for your bars.~ */ GOTO 38
END

IF ~~ THEN BEGIN 12 // from: 9.4
  SAY #939 /* ~Indeed? Well, despite your... wit, he would be a great help in our escape.  Better that we make use of all our strengths, rather than pick apart our weaknesses.~ */
  IF ~~ THEN REPLY #952 /* ~I need neither them nor you. Your ceaseless prattle will only slow me down.~ */ GOTO 13
  IF ~OpenState("Cell01",FALSE)
!PartyHasItem("Misc4b")~ THEN REPLY #953 /* ~Ahh, he likes it. Now, have you found a way out of that cage?~ */ GOTO 58
  IF ~OpenState("Cell01",FALSE)
!PartyHasItem("Misc4b")~ THEN REPLY #954 /* ~Forgive my manner, you are right, of course. I will do what I can.~ */ GOTO 60
  IF ~OpenState("Cell01",TRUE)
~ THEN REPLY #37815 /* ~Ahh, he likes it. Cheer up, I've already seen to opening your cage.~ */ GOTO 33
  IF ~OpenState("Cell01",FALSE)
PartyHasItem("Misc4b")
~ THEN REPLY #37816 /* ~Ahh, he likes it. Cheer up, I believe I have the key to your cell.~ */ GOTO 38
  IF ~OpenState("Cell01",TRUE)
~ THEN REPLY #37817 /* ~Forgive my manner, you are right, of course. I have opened your cage. What now?~ */ GOTO 33
  IF ~OpenState("Cell01",FALSE)
PartyHasItem("Misc4b")
~ THEN REPLY #37818 /* ~Forgive my manner, you are right, of course. I have the key for your cell. What now?~ */ GOTO 38
END

IF ~~ THEN BEGIN 13 // from: 24.1 12.0 11.0 10.0 9.0
  SAY #940 /* ~You have changed in this place.  You would abandon your friends?  Whether you remember or not, we have shared the path here.  Is that to be forgotten?~ */
  IF ~~ THEN REPLY #942 /* ~Aye, and as quickly as possible. Goodbye, Jaheira... It's been swell.~ */ GOTO 62
  IF ~OpenState("Cell01",FALSE)
~ THEN REPLY #943 /* ~I am merely taking a new path, one that is better suited to my needs.~ */ GOTO 17
  IF ~OpenState("Cell01",FALSE)
!PartyHasItem("Misc4b")
~ THEN REPLY #944 /* ~Forgive my ill-timed jesting. I will free you as soon as possible.~ */ GOTO 15
  IF ~OpenState("Cell01",TRUE)
~ THEN REPLY #37806 /* ~I am merely taking a new path, one that is better suited to my needs.~ */ GOTO 28
  IF ~OpenState("Cell01",TRUE)
~ THEN REPLY #37807 /* ~Forgive my ill-timed jesting. Your cage is open. You appear to be free.~ */ GOTO 27
  IF ~OpenState("Cell01",FALSE)
PartyHasItem("Misc4b")
~ THEN REPLY #37808 /* ~Forgive my ill-timed jesting. I think I have the key to your cell. I will open it quickly.~ */ GOTO 38
END

IF ~~ THEN BEGIN 14 // from: 61.0 59.0
  SAY #945 /* ~It would be best to face the culprit another day on our own terms, so go and be quick. We must free ourselves soon.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #34105 /* ~Find a way to release Jaheira from her cell.

Jaheira is kept captive in the same room that I was, in a cage closed with a magical lock.  It does not look as if it can be picked.  Perhaps there is a key elsewhere in the dungeon.~ */ EXIT
END

IF ~~ THEN BEGIN 15 // from: 13.2 10.1
  SAY #956 /* ~I neither understand nor appreciate such humor. If you are to effect my release, best you set to doing it.~ */
  IF ~~ THEN GOTO 60
END

IF ~~ THEN BEGIN 16 // from: 62.0
  SAY #957 /* ~Know you well that this will not be forgotten! You have turned as I thought you might, and will get what is deserved!~ */
  IF ~~ THEN DO ~SetGlobal("JaheiraJerk","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 17 // from: 63.0 13.1
  SAY #958 /* ~I do not recall you being so cold.  Perhaps I have had some memory loss myself, but this will not be forgotten.  If I live, I shall see you pay.~ */
  IF ~~ THEN DO ~SetGlobal("JaheiraJerk","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 18 // from: 64.0
  SAY #959 /* ~Do not get too close; if I could reach you, you would regret it.~ */
  IF ~~ THEN REPLY #992 /* ~There is nothing I want here. Goodbye.~ */ GOTO 19
  IF ~~ THEN REPLY #993 /* ~Perhaps I have come back to release you and ask forgiveness. Perhaps...~ */ GOTO 20
  IF ~~ THEN REPLY #994 /* ~I am truly sorry for what was said earlier. I do intend to rescue you.~ */ GOTO 21
  IF ~~ THEN REPLY #995 /* ~I'm not going to leave you here for long, just until I find the key for your chains.~ */ GOTO 22
END

IF ~~ THEN BEGIN 19 // from: 18.0
  SAY #996 /* ~You had best leave, and quickly. If I find my release from here I will have your head on a pike! It will be as I should have done long ago!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 20 // from: 18.1
  SAY #997 /* ~Do you think me so weak of mind as to believe you, or so weak of spirit as to beg you?  No, your choice is made clear and I will not indulge you further.~ */
  IF ~~ THEN REPLY #998 /* ~No matter. Goodbye Jaheira.~ */ GOTO 23
  IF ~~ THEN REPLY #999 /* ~Then we have nothing more to discuss.~ */ GOTO 22
  IF ~~ THEN REPLY #1000 /* ~Truly, my apologies. I will release you as soon as I am able.~ */ GOTO 21
END

IF ~~ THEN BEGIN 21 // from: 20.2 18.2
  SAY #1001 /* ~And I have cause to believe this? I think not. Prove your intent by actually carrying out the deed, and then we shall see if I must kill you or not.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 22 // from: 20.1 18.3
  SAY #1002 /* ~Do what you will, you have already proven as reliable as a tamed owlbear.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 23 // from: 20.0
  SAY #1003 /* ~I shall see you again, you had best count on that. There will be blood that pays for your lies.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 33 38 64 65 72 73 even though they appear after this state */
~Global("JaheiraReleased","GLOBAL",0)
Global("JaheiraJerk","GLOBAL",0)
!PartyHasItem("misc4b")
~ THEN BEGIN 24 // from:
  SAY #1004 /* ~Hello again, I see you have not had much luck. Do keep trying. We should leave this place as soon as we are able.~ */
  IF ~~ THEN REPLY #1005 /* ~I'll do what I can. Don't worry, I'll be back soon.~ */ GOTO 25
  IF ~~ THEN REPLY #1006 /* ~I don't think there's much else I can do. I'm going to have to leave without you.~ */ GOTO 13
  IF ~~ THEN REPLY #1007 /* ~Yes, yes, I'm hurrying as fast as I can!~ */ GOTO 26
END

IF ~~ THEN BEGIN 25 // from: 24.0
  SAY #1008 /* ~I should hope so. If we stand about much longer we are sure to be caught once more.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 26 // from: 24.2
  SAY #1009 /* ~Do not think me overly domineering, I am just eager to leave. Please hurry.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 27 // from: 65.0 13.4
  SAY #1010 /* ~You have my gratitude, but I'll not look at you the same way again.  You should not indulge that side of yourself.  It does not honor the memory of Gorion.~ */
  IF ~~ THEN REPLY #1011 /* ~I have little memory of that past. Get on your way. I have no need of you.~ */ GOTO 28
  IF ~~ THEN REPLY #1012 /* ~Does my free will hinge on only doing just what you suggest?~ */ GOTO 66
  IF ~CheckStatGT(LastTalkedToBy,13,42)
~ THEN REPLY #1013 /* ~I make no apologies. Join or not; the choice is yours.~ */ GOTO 67
  IF ~~ THEN REPLY #1014 /* ~I was wrong to suggest leaving you here. Will you adventure at my side?~ */ GOTO 70
  IF ~CheckStatLT(LastTalkedToBy,14,42)~ THEN REPLY #1019 /* ~I make no apologies. Join or not; the choice is yours.~ */ GOTO 68
END

IF ~~ THEN BEGIN 28 // from: 62.1 36.0 33.3 27.0 13.3
  SAY #1015 /* ~So be it.  I thank you for my 'rescue'.  If we meet again I doubt it will be as pleasant as this.  Take care, you've certainly chosen a rocky path.~ */
  IF ~~ THEN DO ~SetGlobal("JaheiraReleased","GLOBAL",1)
SetGlobal("JaheiraHunt","GLOBAL",1)
EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 29 // from: 66.0
  SAY #1016 /* ~I must go.  I think it is best that I leave before our host returns.  Perhaps we will meet again, and perhaps it will be under favorable terms.  I doubt it.~ */
  IF ~~ THEN DO ~SetGlobal("JaheiraHunt","GLOBAL",1)
EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 30 // from: 67.0
  SAY #1017 /* ~No matter, as I will not be put off so easy. I will join, and follow as you see fit. See that we do not stray too far afield, lest I regret my decision.~ */
  IF ~~ THEN DO ~EraseJournalEntry(34105)
AddExperienceParty(3000)
JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 31 // from: 69.0
  SAY #1018 /* ~Perhaps we shall meet again, and perhaps we shall even both be on the side of right. Perhaps, though it does not look likely.~ */
  IF ~~ THEN DO ~SetGlobal("JaheiraHunt","GLOBAL",1)
EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 32 // from: 70.0
  SAY #1020 /* ~I still believe you will choose the right path, and I shall be at your side while you do.  I hope you do not disappoint, or make me regret my decision.~ */
  IF ~~ THEN DO ~EraseJournalEntry(34105)
AddExperienceParty(3000)
JoinParty()
~ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 72 73 even though they appear after this state */
~Global("JaheiraReleased","GLOBAL",1)
Global("JaheiraJerk","GLOBAL",0)~ THEN BEGIN 33 // from: 12.5 12.3 11.5 11.3 10.3 9.6
  SAY #1021 /* ~Well that is a relief, and about time too. We should be going immediately. Not only might our 'host' come back, I simply must see the sun again in none too short a time. This dank place stifles me.~ */
  IF ~~ THEN REPLY #1022 /* ~We will leave immediately, and celebrate once we are out of this hole.~ */ DO ~EraseJournalEntry(34105)~ SOLVED_JOURNAL #47519 /* ~Find a way to release Jaheira from her cell.

I have freed Jaheira from her cell with the key I found.~ */ GOTO 34
  IF ~InPartySlot(LastTalkedToBy,0)
~ THEN REPLY #1023 /* ~You are welcome so long as you remember I am leader. We do as I will.~ */ DO ~EraseJournalEntry(34105)~ SOLVED_JOURNAL #47519 /* ~Find a way to release Jaheira from her cell.

I have freed Jaheira from her cell with the key I found.~ */ GOTO 35
  IF ~~ THEN REPLY #1024 /* ~Find your own way out. We have a greater chance of escape if we split up.~ */ DO ~EraseJournalEntry(34105)~ SOLVED_JOURNAL #47519 /* ~Find a way to release Jaheira from her cell.

I have freed Jaheira from her cell with the key I found.~ */ GOTO 36
  IF ~~ THEN REPLY #1025 /* ~'We' won't be going. I rescued you, but I neither need nor desire your company.~ */ DO ~EraseJournalEntry(34105)~ SOLVED_JOURNAL #47519 /* ~Find a way to release Jaheira from her cell.

I have freed Jaheira from her cell with the key I found.~ */ GOTO 28
END

IF ~~ THEN BEGIN 34 // from: 36.1 33.0
  SAY #1026 /* ~As you would have it, though there are other friends we must find as well. It is good to share your company again.~ */
  IF ~~ THEN DO ~SetGlobal("JaheiraReleased","GLOBAL",1)
EraseJournalEntry(34105)
AddExperienceParty(3000)
JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 35 // from: 33.1
  SAY #1027 /* ~This place has hardened your manner.  I do not remember you being so quick with a cold remark.  Lead on as you wish, but do tread carefully, will you?~ */
  IF ~~ THEN DO ~SetGlobal("JaheiraReleased","GLOBAL",1)
EraseJournalEntry(34105)
AddExperienceParty(3000)
JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 36 // from: 33.2
  SAY #1029 /* ~I would disagree with your logic.  Once noticed, would not smaller groups be more likely to be captured?  There is safety in the company of friends.~ */
  IF ~~ THEN REPLY #1030 /* ~I do not wish that company. I am sorry, but you must find your own way out.~ */ GOTO 28
  IF ~~ THEN REPLY #1031 /* ~You are right, of course. Join with me and we shall escape this place.~ */ GOTO 34
  IF ~~ THEN REPLY #1032 /* ~If a group is noticed, there is a good chance it will not be mine. Understand?~ */ GOTO 71
END

IF ~~ THEN BEGIN 37 // from: 71.0
  SAY #1033 /* ~An effective plan, but as cold and calculating as the walls that hold us.  So be it, but it won't be I that is captured.  Perhaps we will meet again.~ */
  IF ~~ THEN DO ~SetGlobal("JaheiraReleased","GLOBAL",1)
SetGlobal("JaheiraHunt","GLOBAL",1)
EscapeArea()~ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 72 73 even though they appear after this state */
~Global("JaheiraReleased","GLOBAL",0)
PartyHasItem("misc4b")
~ THEN BEGIN 38 // from: 13.5 12.6 12.4 11.6 11.4 10.4 9.5
  SAY #17789 /* ~You've got the key that fits? Then open the door already. Must I hand-walk you through this?~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 39 // from:
  SAY #20109 /* ~~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 40 // from: 0.0
  SAY #20114 /* ~Refresh your...? Perhaps you've taken a knock or two to the head.~ */
  IF ~~ THEN GOTO 41
END

IF ~~ THEN BEGIN 41 // from: 40.0
  SAY #20118 /* ~At the least I would say that not remembering me is a symptom of some deeper problem, though I would not rule out a bad attempt at humor on your part.~ */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 42 // from: 0.1
  SAY #20120 /* ~By what authority?  This is hardly the time to have a leadership debate, especially one that I have never questioned.  Not to any serious degree, at least...~ */
  IF ~~ THEN GOTO 43
END

IF ~~ THEN BEGIN 43 // from: 42.0
  SAY #20121 /* ~Perhaps this place has made you defensive, and I wouldn't blame you in the least, but your suspicions are better directed at strangers, not friends.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 44 // from: 0.2
  SAY #20124 /* ~And I do not know why I am here either, but I won't stoop to blame you.  Our history defers any suspicions, at least until we are out of immediate danger.~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 45 // from: 0.3
  SAY #20125 /* ~I'm sure we could navel-gaze all day about what brought us here, but it shall certainly prove pointless if we do not remove ourselves from immediate danger.~ */
  IF ~~ THEN GOTO 46
END

IF ~~ THEN BEGIN 46 // from: 45.0
  SAY #20126 /* ~I know not who has entrapped us here either, but I would rather not find out simply waiting for them to return.  We are at a disadvantage in this place.~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 47 // from: 0.4
  SAY #20128 /* ~No I do not, and I would rather we furthered the investigation at a time that was more in our favor. We have friends to find and, in time, enemies to punish.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 48 // from: 3.0 2.0 1.0
  SAY #18760 /* ~Jaheira is what I am called, as you should well know. We have traveled together for some time, and the places we have gone number too many to name.~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 49 // from: 8.0 6.0
  SAY #20132 /* ~We remain in your company as friends more than guardians, and our exploits together have left the land for the better.~ */
  IF ~~ THEN GOTO 50
END

IF ~~ THEN BEGIN 50 // from: 49.0
  SAY #20136 /* ~We have earned many enemies, but we have dispatched them all.  Whoever has trapped us now is certainly powerful to have done this so easily.~ */
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 51 // from: 5.0 4.0
  SAY #20142 /* ~My husband Khalid and I have traveled with you for some seasons now, and the places we have seen number too many to name.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 52 // from: 7.0
  SAY #20145 /* ~******~ */
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 53 // from:
  SAY #20146 /* ~~ */
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 54 // from: 9.2
  SAY #20157 /* ~I do not know where he is and it worries me. No doubt he was taken as we were, though it seems we were all meant for different fates.~ */
  IF ~~ THEN GOTO 55
END

IF ~~ THEN BEGIN 55 // from: 54.0
  SAY #20159 /* ~From the state of my head I think I have been drugged, though I have been spared any serious physical mistreatment.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 56 // from: 9.3
  SAY #20172 /* ~You judge on appearances, but he has performed admirably more than once.  Hold your tongue, or at least reserve your quips for someone more likely to be amused.~ */
  IF ~~ THEN GOTO 57
END

IF ~~ THEN BEGIN 57 // from: 56.0
  SAY #20174 /* ~I am Khalid's wife after all, and despite his flaws he is a good person. Have you someone who will say likewise for you?~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 58 // from: 12.1 11.2 10.2 9.1
  SAY #20176 /* ~I don't know. If you are of sufficient strength, it is possible the cage may be broken. If not, you may have to search for whatever key it might need.~ */
  IF ~~ THEN GOTO 59
END

IF ~~ THEN BEGIN 59 // from: 58.0
  SAY #20177 /* ~Do try to hurry, I wish to be out of here before the owner returns.  The ease of our capture suggests it may be beyond our power to resist.~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 60 // from: 15.0 12.2 11.1
  SAY #20185 /* ~Perhaps you can break these locks? They seem quite strong, though it would not hurt to try. They look a bit odd as well. Perhaps they are magically warded.~ */
  IF ~~ THEN GOTO 61
END

IF ~~ THEN BEGIN 61 // from: 60.0
  SAY #20188 /* ~Then the key could be anything.  Whatever is done, it must be quick.  We were captured easily, and I do not want to be here when whoever did it returns.~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 62 // from: 13.0
  SAY #955 /* ~Such callous disregard! We have fought together and traveled long! You would toss that aside like so much rubbish?!~ */
  IF ~OpenState("Cell01",FALSE)
~ THEN GOTO 16
  IF ~OpenState("Cell01",TRUE)~ THEN GOTO 28
END

IF ~~ THEN BEGIN 63 // from:
  SAY #20191 /* ~A well thought and calculated plan, though I do not recall you being so cold. Perhaps I have had some memory loss myself.~ */
  IF ~~ THEN GOTO 17
END

IF WEIGHT #5 /* Triggers after states #: 72 73 even though they appear after this state */
~Global("JaheiraReleased","GLOBAL",0)
Global("JaheiraJerk","GLOBAL",1)
~ THEN BEGIN 64 // from:
  SAY #20192 /* ~You have returned? Why? Something you need? Or do you wish to elaborate on your plan and once again assert that you are in the dominant position?~ */
  IF ~~ THEN GOTO 18
END

IF WEIGHT #6 /* Triggers after states #: 72 73 even though they appear after this state */
~Global("JaheiraReleased","GLOBAL",1)
Global("JaheiraJerk","GLOBAL",1)
~ THEN BEGIN 65 // from:
  SAY #20193 /* ~Well, I must say I did not expect you to come back.~ */
  IF ~~ THEN DO ~EraseJournalEntry(34105)~ SOLVED_JOURNAL #47519 /* ~Find a way to release Jaheira from her cell.

I have freed Jaheira from her cell with the key I found.~ */ GOTO 27
END

IF ~~ THEN BEGIN 66 // from: 27.1
  SAY #20198 /* ~You quote philosophy like a student who's read half of every book in school. Take your defensive stance as you will; I am sure it will let you sleep at night.~ */
  IF ~~ THEN GOTO 29
END

IF ~~ THEN BEGIN 67 // from: 27.2
  SAY #20208 /* ~You speak as though your intent is to offend. Do you wish to keep those that would be your friends at arms length? I wonder why this might be.~ */
  IF ~~ THEN GOTO 30
END

IF ~~ THEN BEGIN 68 // from: 27.4
  SAY #20209 /* ~Your words echo through these empty halls because they are just as hollow. If you would drive those who would be your friends away, so be it.~ */
  IF ~~ THEN GOTO 69
END

IF ~~ THEN BEGIN 69 // from: 68.0
  SAY #20210 /* ~However, I would be careful not to offend everyone you meet.  You will need help at some point.  You seem predisposed to trouble.~ */
  IF ~~ THEN GOTO 31
END

IF ~~ THEN BEGIN 70 // from: 27.3
  SAY #20213 /* ~An apology of a sort, though I will take it with a grain or two of salt.  It will take consistent action to prove your intent to me, but I am optimistic.~ */
  IF ~~ THEN GOTO 32
END

IF ~~ THEN BEGIN 71 // from: 36.2
  SAY #20223 /* ~I see. You are expecting me to be the convenient diversion then? You did not free a friend; you set loose a clay pigeon to draw the arrows of the hunters.~ */
  IF ~~ THEN GOTO 37
END

IF WEIGHT #2 /* Triggers after states #: 73 even though they appear after this state */
~NumTimesTalkedTo(0)
~ THEN BEGIN 72 // from:
  SAY #25474 /* ~Fellow prisoner that you must be, there is no time for idle chatter.  Get <CHARNAME> so we can work on getting out. I have to talk to <PRO_HIMHER>.~ */
  IF ~~ THEN DO ~SetNumTimesTalkedTo(0)
~ EXIT
END

IF WEIGHT #1 ~Name("Imoen",LastTalkedToBy)
NumTimesTalkedTo(0)
~ THEN BEGIN 73 // from:
  SAY #38536 /* ~Imoen! Quickly, child, bring <CHARNAME> to me. I would have words with <PRO_HIMHER> if <PRO_HESHE> is able.~ */
  IF ~~ THEN DO ~SetNumTimesTalkedTo(0)
~ EXTERN ~IMOENJ~ 6
END

IF ~~ THEN BEGIN 74 // from: IMOENJ:6.0
  SAY #38538 /* ~Of course, but if <CHARNAME> is here as well I should speak with <PRO_HIMHER>.~ */
  IF ~~ THEN EXIT
END
