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

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

IF WEIGHT #0 ~PartyHasItem("MISC4Q")
Global("AerieTransform","GLOBAL",0)
~ THEN BEGIN 0 // from:
  SAY #2199 /* ~You... you have the key!  Or, rather... the sword!  Please... please give it to me and I can be rid of this illusionary form at last!~ [AERIEC7] */
  IF ~~ THEN REPLY #2200 /* ~Not so fast.  How much will you give me for it?~ */ GOTO 1
  IF ~~ THEN REPLY #2201 /* ~Hold!  I'm not about to fall for your trick!  I'm not about to give a monster a weapon!!~ */ GOTO 35
  IF ~~ THEN REPLY #2202 /* ~Aye, as you wish.~ */ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #2203 /* ~What?  All--All I have which... which is almost nothing... Please, I will do whatever I can for you but I can do nothing until you give me the key and I am free from my chains...~ */
  IF ~~ THEN REPLY #2204 /* ~You ask too much and grant too little. It is mine and you shall not have it.~ */ GOTO 49
  IF ~~ THEN REPLY #2205 /* ~Very well, I shall trust you and give you the sword...~ */ GOTO 2
  IF ~~ THEN REPLY #2206 /* ~I'm not about to fall for this trick!  Give a monster a sword, eh?  I don't think so!!~ */ GOTO 35
END

IF ~~ THEN BEGIN 2 // from: 1.1 0.2
  SAY #2207 /* ~I thank you for your trust.  This sword... it is actually a key that unlocks the chain that powers my horrible illusion.~ */
  IF ~~ THEN DO ~TakePartyItem("MISC4Q")
DestroyItem("MISC4Q")
AddexperienceParty(18500)
SetGlobal("AerieTransform","GLOBAL",1)
Wait(1)
Polymorph(MAGE_FEMALE_ELF)
ApplySpell(Myself,AERIE_PORTRAIT)
Wait(2)
StartDialogueNoSet()~ EXIT
END

IF WEIGHT #1 ~Global("AerieTransform","GLOBAL",1)
~ THEN BEGIN 3 // from:
  SAY #2208 /* ~My... My hands... my skin, it's real again!  Oh, thank you, Baervan!  Oh, we must find Quayle... and stop Kalah before he does any more harm!~ [AERIEC8] */
  IF ~~ THEN REPLY #2209 /* ~Join with us and we will search for him together in this place.~ */ GOTO 4
  IF ~~ THEN REPLY #2210 /* ~Wait here, then... I will go further into this citadel and will come back later.~ */ GOTO 5
  IF ~~ THEN REPLY #2211 /* ~I've no intention of going further into this place.  I've rescued you and that's all I will do.  I am leaving, now.~ */ GOTO 6
END

IF ~~ THEN BEGIN 4 // from: 50.2 3.0
  SAY #2212 /* ~You would let me join you?  Al-alright... come, let's find Quayle.  Who knows what they've done to him...~ */
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #42158 /* ~I think you should know, Aerie, that my ultimate goal is to rescue a friend of mine... Imoen... who has been captured by the Cowled Wizards.  It could be dangerous.~ */ DO ~RealSetGlobalTimer("AerieRomance","GLOBAL",ONE_DAY)
SetGlobal("LoveTalk","LOCALS",1)
SetGlobal("AerieRomanceActive","GLOBAL",1)
SetGlobal("AerieTransform","GLOBAL",2)
SetGlobal("AerieJoined","GLOBAL",1)
~ GOTO 52
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #58678 /* ~You should be aware, perhaps, that I am hunting a very powerful mage named Irenicus.  It will, no doubt, be a dangerous task.~ */ DO ~RealSetGlobalTimer("AerieRomance","GLOBAL",ONE_DAY)
SetGlobal("LoveTalk","LOCALS",1)
SetGlobal("AerieRomanceActive","GLOBAL",1)
SetGlobal("AerieTransform","GLOBAL",2)
SetGlobal("AerieJoined","GLOBAL",1)~ GOTO 52
  IF ~~ THEN REPLY #42159 /* ~Right... let's go.~ */ DO ~SetInterrupt(FALSE)
RealSetGlobalTimer("AerieRomance","GLOBAL",ONE_DAY)
SetGlobal("LoveTalk","LOCALS",1)
SetGlobal("AerieRomanceActive","GLOBAL",1)
SetGlobal("AerieTransform","GLOBAL",2)
SetGlobal("AerieJoined","GLOBAL",1)
JoinParty()
SetInterrupt(TRUE)
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 3.1
  SAY #2213 /* ~Beware, not all things here are illusions.  Close your eyes and strike back only if it hurts you... Oh, bring Quayle back safely, would you?  He... he's been very good to me...~ */
  IF ~~ THEN DO ~SetGlobal("AerieTransform","GLOBAL",2)
~ EXIT
END

IF ~~ THEN BEGIN 6 // from: 50.1 3.2
  SAY #2214 /* ~Fine, then, you are as much a monster as I appeared to be!~ */
  IF ~~ THEN DO ~SetGlobal("AerieTransform","GLOBAL",2)
EscapeArea()
~ EXIT
END

IF WEIGHT #2 ~Dead("Quaylem")
Dead("Kalah")
~ THEN BEGIN 7 // from:
  SAY #2215 /* ~Have you found Quayle?~ */
  IF ~

~ THEN REPLY #2216 /* ~He is dead, milady.~ */ GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #2218 /* ~Quayle? He was my owner but... but not really. Quayle taught me how to cast spells and he--he healed the wounds from where... from where my wings were.~ */
  IF ~~ THEN REPLY #2219 /* ~Your wings?~ */ GOTO 9
  IF ~~ THEN REPLY #2220 /* ~I think I knew Quayle... We may have traveled together in Baldur's Gate...~ */ GOTO 12
  IF ~~ THEN REPLY #2221 /* ~It will be okay... Come, travel with us. You will be among friends.~ */ GOTO 10
  IF ~~ THEN REPLY #2222 /* ~I know, I'm sorry. Maybe I should give you the time to grieve. Perhaps, we'll meet again.~ */ GOTO 11
END

IF ~~ THEN BEGIN 9 // from: 12.1 8.0
  SAY #2225 /* ~How could I care for them when my old owner kept me in a dirty cage so small they always rubbed against the bars? They got sick, so they--had to come off... Oh it was so horrible!~ */
  IF ~~ THEN REPLY #2228 /* ~Don't cry, don't cry, angel... You can travel with us. You'll be amongst friends.~ */ GOTO 10
  IF ~~ THEN REPLY #2230 /* ~I'm sorry, I don't mean to grill you with questions. I'll go, but perhaps we shall meet again.~ */ GOTO 11
END

IF ~~ THEN BEGIN 10 // from: 12.0 9.0 8.2
  SAY #2231 /* ~You--You mean that? You would let me travel with you? I... I bet Quayle would have--would have liked me to.~ */
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #42161 /* ~I think you should know, Aerie, that my ultimate goal is to rescue a friend of mine... Imoen... who has been captured by the Cowled Wizards.  It could be dangerous.~ */ DO ~SetGlobalTimer("AerieRomance","GLOBAL",ONE_DAY)
SetGlobal("LoveTalk","LOCALS",1)
SetGlobal("AerieRomanceActive","GLOBAL",1)
SetGlobal("AerieJoined","GLOBAL",1)~ GOTO 53
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #58677 /* ~You should be aware, perhaps, that I am hunting a very powerful mage named Irenicus.  It will, no doubt, be a dangerous task.~ */ DO ~SetGlobalTimer("AerieRomance","GLOBAL",ONE_DAY)
SetGlobal("LoveTalk","LOCALS",1)
SetGlobal("AerieRomanceActive","GLOBAL",1)
SetGlobal("AerieJoined","GLOBAL",1)~ GOTO 56
  IF ~~ THEN REPLY #42162 /* ~You'd be welcome.  Let's go.~ */ DO ~SetGlobalTimer("AerieRomance","GLOBAL",ONE_DAY)
SetGlobal("LoveTalk","LOCALS",1)
SetGlobal("AerieRomanceActive","GLOBAL",1)
SetGlobal("AerieJoined","GLOBAL",1)
JoinParty()~ EXIT
END

IF ~~ THEN BEGIN 11 // from: 12.2 9.1 8.3
  SAY #2232 /* ~Thank... Thank you. I don't think that I'll be going far...~ */
  IF ~~ THEN DO ~SetGlobal("AerieMove","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 12 // from: 8.1
  SAY #2233 /* ~He's been ev--everything to me, all I had in the world.~ */
  IF ~~ THEN REPLY #2234 /* ~Come now, everything's going to be alright. You could travel with me. You'll be among friends.~ */ GOTO 10
  IF ~~ THEN REPLY #2235 /* ~What about your wings? You said he healed them?~ */ GOTO 9
  IF ~~ THEN REPLY #2236 /* ~I'm making your grieving more difficult. I should go. Perhaps we shall meet again in better times.~ */ GOTO 11
END

IF ~~ THEN BEGIN 13 // from:
  SAY #2237 /* ~Please hurry. I worry after him so.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~!Dead("Quaylem")
!StateCheck("Quaylem",STATE_SLEEPING)
Dead("Kalah")
Global("AerieMove","GLOBAL",0)
~ THEN BEGIN 14 // from:
  SAY #2245 /* ~Uncle Quayle, you're okay!~ [AERIEB6] */
  IF ~~ THEN EXTERN ~QUAYLE~ 0
END

IF ~~ THEN BEGIN 15 // from:
  SAY #2247 /* ~What would I ever do without you?~ */
  IF ~~ THEN EXTERN ~QUAYLE~ 1
END

IF ~~ THEN BEGIN 16 // from:
  SAY #2249 /* ~You're the wisest and the smartest and the kindest man I'll ever know.~ */
  IF ~~ THEN EXTERN ~QUAYLE~ 2
END

IF ~~ THEN BEGIN 17 // from:
  SAY #2253 /* ~You would... You would have me travel with you? I would love to but... Oh Quayle, I would miss you!~ */
  IF ~~ THEN EXTERN ~QUAYLE~ 3
END

IF ~~ THEN BEGIN 18 // from:
  SAY #2255 /* ~... Alright. Take--Take care of the circus while I'm away.~ */
  IF ~~ THEN DO ~SetGlobal("AerieJoined","GLOBAL",1)
~ EXTERN ~QUAYLE~ 4
END

IF ~~ THEN BEGIN 19 // from:
  SAY #2257 /* ~Come... Come back and visit, then.  Maybe you'll have need of me in the future and I could travel with you.  I'd like that.~ */
  IF ~~ THEN DO ~SetGlobal("AerieMove","GLOBAL",1)
SetGlobal("TicketTaker","GLOBAL",1)
~ EXIT
END

IF WEIGHT #4 ~!Dead("Quayle")
Global("AerieMove","GLOBAL",1)
~ THEN BEGIN 20 // from:
  SAY #2260 /* ~Hi, <CHARNAME>. Uncle Quayle told me you'd be back...~ */
  IF ~~ THEN REPLY #2264 /* ~Then he is a smart man because here we are. Would you like to travel with us, Aerie?~ */ GOTO 21
  IF ~~ THEN REPLY #2265 /* ~Well, we were in the neighborhood and thought it would be nice to see you again.~ */ GOTO 22
END

IF ~~ THEN BEGIN 21 // from: 20.0
  SAY #2266 /* ~You would let me travel with you? I... I would like that, <CHARNAME>, and--and it would make Quayle so proud... Thank you.~ */
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #42168 /* ~I think you should know, Aerie, that my ultimate goal is to rescue a friend of mine... Imoen... who has been captured by the Cowled Wizards.  It could be dangerous.~ */ DO ~RealSetGlobalTimer("AerieRomance","GLOBAL",ONE_DAY)
SetGlobal("LoveTalk","LOCALS",1)
SetGlobal("AerieRomanceActive","GLOBAL",1)
SetGlobal("AerieTransform","GLOBAL",2)
SetGlobal("AerieJoined","GLOBAL",1)
~ GOTO 54
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #58676 /* ~You should be aware, perhaps, that I am hunting a very powerful mage named Irenicus.  It will, no doubt, be a dangerous task.~ */ DO ~RealSetGlobalTimer("AerieRomance","GLOBAL",ONE_DAY)
SetGlobal("LoveTalk","LOCALS",1)
SetGlobal("AerieRomanceActive","GLOBAL",1)
SetGlobal("AerieTransform","GLOBAL",2)
SetGlobal("AerieJoined","GLOBAL",1)~ GOTO 56
  IF ~~ THEN REPLY #42169 /* ~Okay, let's go.~ */ DO ~RealSetGlobalTimer("AerieRomance","GLOBAL",ONE_DAY)
SetGlobal("LoveTalk","LOCALS",1)
SetGlobal("AerieRomanceActive","GLOBAL",1)
SetGlobal("AerieTransform","GLOBAL",2)
SetGlobal("AerieJoined","GLOBAL",1)
JoinParty()~ EXIT
END

IF ~~ THEN BEGIN 22 // from: 23.1 20.1
  SAY #2267 /* ~It's--It's always nice to see you, <CHARNAME>... I-I have to go. I have errands to do.~ */
  IF ~~ THEN DO ~ChangeAIScript("WDASIGHT",RACE)
~ EXIT
END

IF WEIGHT #5 ~Dead("Quayle")
Global("AerieMove","GLOBAL",1)
~ THEN BEGIN 23 // from:
  SAY #2289 /* ~Hi, <CHARNAME>. Welcome back...~ */
  IF ~~ THEN REPLY #2290 /* ~Aerie, I've been thinking. Why don't you travel with us for a while? There is nothing left here for you.~ */ GOTO 24
  IF ~~ THEN REPLY #2291 /* ~Aye. I was just passing by and... I thought it might be nice to see you again.~ */ GOTO 22
END

IF ~~ THEN BEGIN 24 // from: 23.0
  SAY #2292 /* ~Aye, there is little in this place but memories...~ */
  IF ~~ THEN REPLY #2293 /* ~Will you come?~ */ GOTO 25
END

IF ~~ THEN BEGIN 25 // from: 24.0
  SAY #2294 /* ~What choice have I? ... Aye, <CHARNAME>, I'll come.~ */
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #42170 /* ~I think you should know, Aerie, that my ultimate goal is to rescue a friend of mine... Imoen... who has been captured by the Cowled Wizards.  It could be dangerous.~ */ DO ~RealSetGlobalTimer("AerieRomance","GLOBAL",ONE_DAY)
SetGlobal("LoveTalk","LOCALS",1)
SetGlobal("AerieRomanceActive","GLOBAL",1)
SetGlobal("AerieTransform","GLOBAL",2)
SetGlobal("AerieJoined","GLOBAL",1)
~ GOTO 55
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #58674 /* ~You should be aware, perhaps, that I am hunting a very powerful mage named Irenicus.  It will, no doubt, be a dangerous task.~ */ DO ~RealSetGlobalTimer("AerieRomance","GLOBAL",ONE_DAY)
SetGlobal("LoveTalk","LOCALS",1)
SetGlobal("AerieRomanceActive","GLOBAL",1)
SetGlobal("AerieTransform","GLOBAL",2)
SetGlobal("AerieJoined","GLOBAL",1)~ GOTO 56
  IF ~~ THEN REPLY #42171 /* ~Very well... let's go.~ */ DO ~RealSetGlobalTimer("AerieRomance","GLOBAL",ONE_DAY)
SetGlobal("LoveTalk","LOCALS",1)
SetGlobal("AerieRomanceActive","GLOBAL",1)
SetGlobal("AerieTransform","GLOBAL",2)
SetGlobal("AerieJoined","GLOBAL",1)
JoinParty()~ EXIT
END

IF WEIGHT #7 /* Triggers after states #: 50 even though they appear after this state */
~NumTimesTalkedTo(0)~ THEN BEGIN 26 // from:
  SAY #37172 /* ~Who are you?  Oh, whoever you are, you must flee this place at once!  He... he's killed everyone else who has come into this place, almost!  Oh, please run!~ [AERIE01] */
  IF ~~ THEN REPLY #37173 /* ~Who are you talking about?  Who's killed everyone?~ */ GOTO 27
  IF ~~ THEN REPLY #37174 /* ~How can a monster such as you have such a sweet voice?~ */ GOTO 29
  IF ~~ THEN REPLY #37175 /* ~I'm not going anywhere until I get an explanation.~ */ GOTO 31
  IF ~~ THEN REPLY #37176 /* ~I'm not about to believe a foul creature such as yourself!  Have at you!!~ */ GOTO 35
  IF ~~ THEN REPLY #37183 /* ~Perhaps you're right, I should go...~ */ GOTO 36
END

IF ~~ THEN BEGIN 27 // from: 38.0 30.1 26.0
  SAY #37177 /* ~Kalah!  Oh, I don't know what he's done, exactly, or how... but everything here is an illusion!  But it's magic that can hurt you, if you believe in it...~ */
  IF ~~ THEN GOTO 28
END

IF ~~ THEN BEGIN 28 // from: 27.0
  SAY #37178 /* ~Oh, you probably don't understand, do you?  I... I don't know what he's done to the tent or with the others who have come in, but their deaths are real!  You must run!~ */
  IF ~~ THEN REPLY #37179 /* ~Just who are you?  How is it a monster has the voice of a young woman?~ */ GOTO 29
  IF ~~ THEN REPLY #37180 /* ~I'm not going anywhere until I get a full explanation.~ */ GOTO 31
  IF ~~ THEN REPLY #37181 /* ~You're likely trying to trick me, eh, beast?  Well, I won't fall for it!  Die!!~ */ GOTO 35
  IF ~~ THEN REPLY #37182 /* ~Perhaps you're right, then, I should go...~ */ GOTO 36
END

IF ~~ THEN BEGIN 29 // from: 28.0 26.1
  SAY #37184 /* ~I... I'm not a monster!  I'm an elf, a winged elf... or at least I was...~ */
  IF ~~ THEN GOTO 30
END

IF ~~ THEN BEGIN 30 // from: 29.0
  SAY #37185 /* ~This... this covering you see is some kind of illusion, but if you believe in it then it becomes real!  P-please believe me! Now go before something happens to you, I beg of you!~ */
  IF ~~ THEN REPLY #37186 /* ~I've never heard of a winged elf, what are you talking about?~ */ GOTO 37
  IF ~~ THEN REPLY #37187 /* ~Who is behind all of this?  Who has killed everyone?~ */ GOTO 27
  IF ~~ THEN REPLY #37188 /* ~I demand some kind of explanation before I go anywhere!~ */ GOTO 31
  IF ~~ THEN REPLY #37189 /* ~Perhaps you're right, then... I should go.~ */ GOTO 36
END

IF ~~ THEN BEGIN 31 // from: 38.1 30.2 28.1 26.2
  SAY #37190 /* ~Oh, I hope you don't end up like... like the others!  But, alright... m-my name is Aerie.  I... work in the circus with my uncle, Quayle...~ */
  IF ~~ THEN GOTO 32
END

IF ~~ THEN BEGIN 32 // from: 31.0
  SAY #37191 /* ~I don't know exactly what happened, but everything changed a few days ago... everything became chaos and turned into what you see here.  Although it all isn't real, it's an illusion...~ */
  IF ~~ THEN GOTO 33
END

IF ~~ THEN BEGIN 33 // from: 32.0
  SAY #37192 /* ~The minions... they all say they serve Kalah, so I know he's behind all of this... he's an illusionist in the circus, but I don't understand how he was able to do all of this!~ */
  IF ~~ THEN GOTO 34
END

IF ~~ THEN BEGIN 34 // from: 33.0
  SAY #37193 /* ~He must be stopped!  Before he hurts any more people!  Please... if... if you release me from my chains, I can help you stop him!~ */
  IF ~~ THEN REPLY #37195 /* ~Chains?  I don't see any chains on you.~ */ GOTO 39
  IF ~~ THEN REPLY #37196 /* ~How do I release you, then?~ */ GOTO 40
  IF ~~ THEN REPLY #37197 /* ~Why can I not just dispel the illusions of this place?~ */ GOTO 43
  IF ~~ THEN REPLY #37198 /* ~Sorry, but I don't have time to help you.  I had best confront this Kalah quickly...~ */ GOTO 45
  IF ~~ THEN REPLY #37199 /* ~I have no interest in helping you.  I think it's time for me to leave.~ */ GOTO 46
END

IF ~~ THEN BEGIN 35 // from: 47.3 38.2 28.2 26.3 1.2 0.1
  SAY #37200 /* ~No!  No, you don't underst... RrrrRRAARGH!  I WILL KILL YOU ALL!!~ */
  IF ~~ THEN DO ~Enemy()~ EXIT
END

IF ~~ THEN BEGIN 36 // from: 38.3 30.3 28.3 26.4
  SAY #37201 /* ~Yes!  Go, if you can!  I... I don't want to see any more people hurt!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 37 // from: 30.0
  SAY #37202 /* ~I... I come from a race of winged elves... although there aren't many of us left.  From the Sundabar Mountains in the far North.  My wings were cut off a long time ago, though...~ */
  IF ~~ THEN GOTO 38
END

IF ~~ THEN BEGIN 38 // from: 37.0
  SAY #37203 /* ~But... but that isn't important!  This place is too dangerous!  Go back to the city and warn everyone what is happening here!  You must flee!~ */
  IF ~~ THEN REPLY #37204 /* ~Who is behind all of this, first?~ */ GOTO 27
  IF ~~ THEN REPLY #37205 /* ~I need to know exactly what is happening here, first!~ */ GOTO 31
  IF ~~ THEN REPLY #37206 /* ~I'm not about to be deviled by your silver tongue, monster!  Have at you!!~ */ GOTO 35
  IF ~~ THEN REPLY #37207 /* ~Perhaps you're right, I will go...~ */ GOTO 36
END

IF ~~ THEN BEGIN 39 // from: 47.0 44.0 34.0
  SAY #37208 /* ~The chains are invisible... covered by the illusion.  And... and they are magical... they prevent me from casting my own spells and they maintain the illusion which is placed on me...~ */
  IF ~~ THEN REPLY #37209 /* ~Very well, how do I release you from them?~ */ GOTO 40
  IF ~~ THEN REPLY #37210 /* ~Why can I not just dispel the illusions, here?~ */ GOTO 43
  IF ~~ THEN REPLY #37211 /* ~Sorry, but if I'm to stop this Kalah, it's best if I do it on my own.~ */ GOTO 45
  IF ~~ THEN REPLY #37212 /* ~I have no interest in helping you.  I think it's time for me to leave.~ */ GOTO 46
END

IF ~~ THEN BEGIN 40 // from: 47.1 44.1 39.0 34.1
  SAY #37213 /* ~You... you need the key to these chains.  But... but it won't look like a key!  There are a couple of... commoners... in the north side of this chamber...~ */
  IF ~~ THEN GOTO 41
END

IF ~~ THEN BEGIN 41 // from: 40.0
  SAY #37214 /* ~Don't be fooled by the illusion, though... they are monsters!  They have a sword which is actually my key... if you get it from them, I can remove the chain and regain my normal form!~ */
  IF ~~ THEN GOTO 42
END

IF ~~ THEN BEGIN 42 // from: 41.0
  SAY #37215 /* ~But please be careful!  You... you can't trust anything you see, here!~ */
  IF ~~ THEN DO ~SetGlobal("AerieSword","GLOBAL",1)~ UNSOLVED_JOURNAL #34111 /* ~Investigate the circus tent.

I have agreed to acquire a sword... from dangerous illusionary peasants... in order to free a winged elf from the illusion that binds her.~ */ EXIT
END

IF ~~ THEN BEGIN 43 // from: 47.2 39.1 34.2
  SAY #37216 /* ~I don't know... I tried, earlier, when this first happened.  Kalah's spells are too powerful, somehow.  He's... he's never been that good, though, so I don't know what he's done...~ */
  IF ~~ THEN GOTO 44
END

IF ~~ THEN BEGIN 44 // from: 43.0
  SAY #37217 /* ~If you free me, though, together we can find out and stop him!  And... and hopefully rescue my Uncle, Quayle...~ */
  IF ~~ THEN REPLY #37218 /* ~But I don't see any chains on you...~ */ GOTO 39
  IF ~~ THEN REPLY #37219 /* ~How do I release you, then?~ */ GOTO 40
  IF ~~ THEN REPLY #37220 /* ~Sorry, but I don't have the time to help you.  I had better confront this Kalah quickly...~ */ GOTO 45
  IF ~~ THEN REPLY #37221 /* ~Perhaps it is better if I just leave, now...~ */ GOTO 46
END

IF ~~ THEN BEGIN 45 // from: 47.4 44.2 39.2 34.3
  SAY #37222 /* ~Alright, then... but be careful!  And don't trust anything that you see!  And... and please save my Uncle, Quayle!  Please!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 46 // from: 47.5 44.3 39.3 34.4
  SAY #37223 /* ~You... you aren't going to help anyone?  But... well, if you must... if that's safest...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #8 /* Triggers after states #: 50 even though they appear after this state */
~Global("AerieSword","GLOBAL",0)
Global("AerieTransform","GLOBAL",0)
!PartyHasItem("MISC4Q")
!NumTimesTalkedTo(0)~ THEN BEGIN 47 // from:
  SAY #37224 /* ~If... if you're not going to flee, then maybe you can help free me from the chains that keep me bound in this form... and then maybe I can help you!~ [AERIED1] */
  IF ~~ THEN REPLY #37228 /* ~I don't see any chains... what are you referring to?~ */ GOTO 39
  IF ~~ THEN REPLY #37229 /* ~How do I free you, then?~ */ GOTO 40
  IF ~~ THEN REPLY #37230 /* ~Why can I not just dispel the illusions, here?~ */ GOTO 43
  IF ~~ THEN REPLY #37231 /* ~I'm not about to believe your silvery words!  Your death is all that is warranted!~ */ GOTO 35
  IF ~~ THEN REPLY #37232 /* ~I'm sorry, but I have no time to help you... I must confront this Kalah quickly!~ */ GOTO 45
  IF ~~ THEN REPLY #37233 /* ~Actually, I have decided to leave, instead...~ */ GOTO 46
END

IF WEIGHT #9 /* Triggers after states #: 50 even though they appear after this state */
~Global("AerieSword","GLOBAL",1)
Global("AerieTransform","GLOBAL",0)
!PartyHasItem("MISC4Q")
!NumTimesTalkedTo(0)~ THEN BEGIN 48 // from:
  SAY #37234 /* ~You... you haven't found the sword?  Oh, please hurry!  The... the peasants who have it are on the north side of the chamber... but they aren't what they seem!~ [AERIED2] */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 49 // from: 1.0
  SAY #37243 /* ~Ooh, then I shall be here forever! *Sob*...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 ~Global("AerieTransform","GLOBAL",2)
!Dead("Kalah")~ THEN BEGIN 50 // from:
  SAY #37244 /* ~Have... have you found Quayle?~ [AERIEC9] */
  IF ~~ THEN REPLY #37245 /* ~We have not, yet, but we will continue to try.~ */ GOTO 51
  IF ~~ THEN REPLY #37246 /* ~No, and I have no intention of continuing the search.  I am leaving.~ */ GOTO 6
  IF ~~ THEN REPLY #37247 /* ~Not yet... and I would appreciate your help.  Please join me and we will look together.~ */ GOTO 4
END

IF ~~ THEN BEGIN 51 // from: 50.0
  SAY #37248 /* ~Oh, please!  I couldn't bear the thought of anything happening to Quayle!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 52 // from: 4.1 4.0
  SAY #42160 /* ~Oh, I would be glad to help you, truly I would... but we simply must help Uncle Quayle, first!  We must!~ */
  IF ~~ THEN DO ~JoinParty()~ EXIT
END

IF ~~ THEN BEGIN 53 // from: 10.0
  SAY #42163 /* ~Imoen...?  If... if she means as much to you as Uncle Quayle did to me, I'd... I'd be glad to help you look for her, no matter what the danger is!~ */
  IF ~~ THEN DO ~JoinParty()~ EXIT
END

IF ~~ THEN BEGIN 54 // from: 21.0
  SAY #42167 /* ~If this friend of yours... if she's in danger, then I'd be glad to help you look for her.  It's the least that I owe you, no matter what the danger is!~ */
  IF ~~ THEN DO ~JoinParty()~ EXIT
END

IF ~~ THEN BEGIN 55 // from: 25.0
  SAY #42172 /* ~There's nothing left for me, here.  And I am not defenseless... Uncle Quayle taught me well.  It's a noble thing to help a friend, so... I'd be glad to help you find her.~ */
  IF ~~ THEN DO ~JoinParty()~ EXIT
END

IF ~~ THEN BEGIN 56 // from: 25.1 21.1 10.1
  SAY #58675 /* ~I don't... I don't think I've ever heard that name, before.  But it doesn't matter, anyway.  I'll come... there's nothing left for me here, really.~ */
  IF ~~ THEN DO ~JoinParty()~ EXIT
END
