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

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

IF WEIGHT #0 ~GlobalTimerExpired("EdwinMae","GLOBAL")
!PartyHasItem("MISC4V")
Global("MaeVarExposed","GLOBAL",0)
Global("Complain","LOCALS",0)~ THEN BEGIN 0 // from:
  SAY #6505 /* ~The incriminating documents in Mae'Var's room are beckoning... perhaps it's time to heed their call (or find another group with more sense of time.)~ [EDWIN79] */
  IF ~~ THEN DO ~SetGlobal("Complain","LOCALS",1)
~ EXIT
END

IF WEIGHT #1 ~PartyHasItem("MISC4V")
Global("MaeVarDocuments","GLOBAL",0)
~ THEN BEGIN 1 // from:
  SAY #6512 /* ~You've found the proper documents. Now you've only to gain a private discourse with Renal Bloodscalp. Yes, then the matter will be well in hand.~ [EDWIN80] */
  IF ~~ THEN DO ~SetGlobal("MaeVarDocuments","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 2 // from:
  SAY #6513 /* ~No, these are not them! Continue your scouring. (I swear, I should have hired a team of monkeys for this.)~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #11 /* Triggers after states #: 4 5 6 9 10 15 37 162 170 even though they appear after this state */
~Global("KillMae","GLOBAL",1)
GlobalTimerExpired("EdwinMae","GLOBAL")
!Dead("MaeVar")
~ THEN BEGIN 3 // from:
  SAY #6514 /* ~The time to slay the betrayer is upon us! We must be swift, else the Shadow Thieves mark us for death in Mae'Var's stead. This would be bad, understand?~ [EDWIN88] */
  IF ~~ THEN DO ~SetGlobal("KillMae","GLOBAL",2)
~ EXIT
END

IF WEIGHT #2 ~AreaCheck("AR0800")
Global("EdwinTalkedAboutScroll","GLOBAL",0)~ THEN BEGIN 4 // from:
  SAY #6515 /* ~I remember something of this place... there are soothsayers and conjurers that whisper in hushed tones about an artifact lost to antiquity... (but not so lost to a perceptive mage.)~ [EDWIN81] */
  IF ~~ THEN DO ~SetGlobal("EdwinTalkedAboutScroll","GLOBAL",1)
SetGlobal("EdwinWantsScroll","GLOBAL",1)~ GOTO 20
END

IF WEIGHT #3 ~!Dead("Nevaziah")
GlobalGT("EdwinTalkedAboutScroll","GLOBAL",0)
GlobalTimerExpired("EdwinComplainAboutScroll","GLOBAL")
Global("EdwinComplainScroll","LOCALS",0)~ THEN BEGIN 5 // from:
  SAY #6516 /* ~We must return to our delving in the graveyard... the Nether scroll... think of it. (Yes, just think of it.) The written word of the creator races... (it should be mine.)~ [EDWIN82] */
  IF ~~ THEN DO ~SetGlobal("EdwinComplainScroll","LOCALS",1)~ EXIT
END

IF WEIGHT #4 ~Dead("Nevaziah")
Global("EdwinWantsScroll","GLOBAL",1)
Global("FoundScroll","LOCALS",0)~ THEN BEGIN 6 // from: DYNAHE:7.0
  SAY #6517 /* ~This is it. This must be it. This has to be it! The just and unjust alike will all fear the overwhelming power of Edwin Odesseiron and his Nether scroll!~ [EDWIN83] */
  IF ~~ THEN REPLY #6520 /* ~Will you be using that scroll to help us?~ */ DO ~EraseJournalEntry(46839)
AddExperienceParty(11750)
SetGlobal("FoundScroll","LOCALS",1)
SetGlobal("ScrollStudy","LOCALS",1)~ SOLVED_JOURNAL #47740 /* ~Find the Nether Scroll for Edwin.

We have found the Nether Scroll.  Edwin intends to study it thoroughly.~ */ GOTO 7
  IF ~~ THEN REPLY #6525 /* ~We all found it, we all own it. It's party treasure, Edwin.~ */ DO ~EraseJournalEntry(46839)
AddExperienceParty(11750)
SetGlobal("FoundScroll","LOCALS",1)
SetGlobal("ScrollStudy","LOCALS",1)~ SOLVED_JOURNAL #47740 /* ~Find the Nether Scroll for Edwin.

We have found the Nether Scroll.  Edwin intends to study it thoroughly.~ */ GOTO 8
END

IF ~~ THEN BEGIN 7 // from: 6.0 DYNAHE:8.0
  SAY #6518 /* ~(Yes... yes this will be a great help.) Of course, I shall put it to the best use of the group. Mark my words. (Yes, mark them well.)  But you'll not see the scroll... it's mine!~ */
  IF ~~ THEN DO ~SetGlobalTimer("EdwinScroll","GLOBAL",FOUR_DAYS)~ EXIT
END

IF ~~ THEN BEGIN 8 // from: 6.1 DYNAHE:9.2
  SAY #6519 /* ~Touch the scroll, pull back a stump.  (Head,  limb, leg... your choice.) I will use this for the benefit of the group, I assure you. (Yes, I assure you of that.) But no one reads it but me.~ */
  IF ~~ THEN DO ~SetGlobalTimer("EdwinScroll","GLOBAL",TWO_DAYS)~ EXIT
END

IF WEIGHT #5 ~GlobalTimerExpired("EdwinScroll","GLOBAL")
Global("ScrollStudy","LOCALS",1)
!AreaType(DUNGEON)
CombatCounter(0)~ THEN BEGIN 9 // from: DYNAHE:19.0
  SAY #6879 /* ~Ahh HA! I understand it! Sorry to bother your petty concerns, but I have translated some of the Nether Scroll!~ */
  IF ~~ THEN DO ~SetGlobal("ScrollStudy","LOCALS",2)
SetGlobalTimer("EdwinScroll","GLOBAL",ONE_DAY)
AddXPObject("Edwin",50000)
ApplySpell(Myself,NETHER_SCROLL)~ GOTO 22
END

IF WEIGHT #6 ~Global("ScrollStudy","LOCALS",2)~ THEN BEGIN 10 // from: DYNAHE:14.0
  SAY #6880 /* ~Hmmm... Another revelation in my... er... our Nether Scroll. A spell of transformation, both basic and sophisticated. It is not unlike the transformation of mage to lich... but it must be more... much more...~ [EDWIN85] */
  IF ~~ THEN DO ~SetGlobal("ScrollStudy","LOCALS",3)~ GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0 DYNAHE:15.0
  SAY #6885 /* ~I've prepared for this moment all my life, and lifetimes before! Be prepared to cower and flee! Nothing will stand in my way after this!~ */
  IF ~~ THEN REPLY #6886 /* ~Edwin, I'd suggest restraint. It's dangerous to meddle with magic that you know nothing about.~ */ GOTO 12
  IF ~~ THEN REPLY #6887 /* ~Go ahead, Edwin. A powerful mage is difficult to find, and of terrific benefit to all.~ */ GOTO 13
  IF ~~ THEN REPLY #6893 /* ~Lose the scroll, Edwin. Evil begets evil, and can only lead to ruin and despair.~ */ GOTO 14
END

IF ~~ THEN BEGIN 12 // from: 11.0 DYNAHE:11.0
  SAY #6894 /* ~I'll wait no longer! I have studied enough! This will be mine! Life eternal and unlimited power!~ */
  IF ~~ THEN DO ~SetGlobal("AfterChange","LOCALS",1)
SetGlobalTimer("EdwinComplain","GLOBAL",5)
MakeUnselectable(5000)
ForceSpell(Myself,EDWIN_CHANGE)
Wait(3)~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 11.1
  SAY #6902 /* ~Wise advice, and I shall not totally forget you when you are as a bug before me. Now, to power!~ */
  IF ~~ THEN DO ~SetGlobal("AfterChange","LOCALS",1)
SetGlobalTimer("EdwinComplain","GLOBAL",5)
MakeUnselectable(5000)
ForceSpell(Myself,EDWIN_CHANGE)
Wait(3)
~ EXIT
END

IF ~~ THEN BEGIN 14 // from: 11.2
  SAY #6903 /* ~Coward! You and your frail morals will witness my rebirth, and then I shall repay your slander!~ */
  IF ~~ THEN DO ~SetGlobal("AfterChange","LOCALS",1)
SetGlobalTimer("EdwinComplain","GLOBAL",5)
MakeUnselectable(5000)
ForceSpell(Myself,EDWIN_CHANGE)
Wait(3)
~ EXIT
END

IF WEIGHT #7 ~Gender(Myself,FEMALE)
Global("AfterChange","LOCALS",1)~ THEN BEGIN 15 // from:
  SAY #6921 /* ~This is bad.~ [EDWINW01] */
  IF ~~ THEN DO ~SetGlobal("AfterChange","LOCALS",2)
SetGlobalTimer("DegardanSpawn","GLOBAL",86400)
SetPlayerSound(Myself,61302,1)
SetPlayerSound(Myself,61303,2)
SetPlayerSound(Myself,61304,3)
SetPlayerSound(Myself,61305,4)
SetPlayerSound(Myself,61306,5)
SetPlayerSound(Myself,61307,6)
SetPlayerSound(Myself,61308,7)
SetPlayerSound(Myself,61309,8)
SetPlayerSound(Myself,61310,9)
SetPlayerSound(Myself,61311,10)
SetPlayerSound(Myself,61312,11)
SetPlayerSound(Myself,61313,18)
SetPlayerSound(Myself,61314,19)
SetPlayerSound(Myself,61315,20)
SetPlayerSound(Myself,61316,21)
SetPlayerSound(Myself,61317,22)
SetPlayerSound(Myself,61318,23)
SetPlayerSound(Myself,61319,24)
SetPlayerSound(Myself,61321,25)
SetPlayerSound(Myself,61322,26)
SetPlayerSound(Myself,61323,27)
SetPlayerSound(Myself,61324,28)
SetPlayerSound(Myself,-1,29)
SetPlayerSound(Myself,-1,30)
SetPlayerSound(Myself,-1,31)
SetPlayerSound(Myself,61325,32)
SetPlayerSound(Myself,61326,33)
SetPlayerSound(Myself,61327,34)
SetPlayerSound(Myself,61328,35)
SetPlayerSound(Myself,61329,36)
SetPlayerSound(Myself,61330,37)
SetPlayerSound(Myself,-1,38)
SetPlayerSound(Myself,-1,63)
SetPlayerSound(Myself,-1,64)
SetPlayerSound(Myself,61331,65)
SetPlayerSound(Myself,61332,66)
SetPlayerSound(Myself,61333,67)
SetPlayerSound(Myself,61334,68)
SetPlayerSound(Myself,61335,69)
SetPlayerSound(Myself,61336,70)
SetPlayerSound(Myself,61337,71)
SetPlayerSound(Myself,61338,72)~ EXIT
END

IF ~~ THEN BEGIN 16 // from: 37.0
  SAY #7465 /* ~My metamorphosis was troubling but now I am restored. Now it is time for proper payment of the witnesses to my shame. Now it's time for you to die.~ */
  IF ~~ THEN DO ~SetPlayerSound(Myself,3966,1)
SetPlayerSound(Myself,3968,2)
SetPlayerSound(Myself,3969,3)
SetPlayerSound(Myself,3970,4)
SetPlayerSound(Myself,3971,5)
SetPlayerSound(Myself,3972,6)
SetPlayerSound(Myself,3973,7)
SetPlayerSound(Myself,3974,8)
SetPlayerSound(Myself,3967,9)
SetPlayerSound(Myself,30694,10)
SetPlayerSound(Myself,30706,11)
SetPlayerSound(Myself,5350,18)
SetPlayerSound(Myself,5351,19)
SetPlayerSound(Myself,3960,20)
SetPlayerSound(Myself,5345,21)
SetPlayerSound(Myself,5346,22)
SetPlayerSound(Myself,5347,23)
SetPlayerSound(Myself,5348,24)
SetPlayerSound(Myself,5349,25)
SetPlayerSound(Myself,3976,26)
SetPlayerSound(Myself,3977,27)
SetPlayerSound(Myself,3978,28)
SetPlayerSound(Myself,30709,29)
SetPlayerSound(Myself,30710,30)
SetPlayerSound(Myself,30711,31)
SetPlayerSound(Myself,30712,32)
SetPlayerSound(Myself,30713,33)
SetPlayerSound(Myself,30714,34)
SetPlayerSound(Myself,30715,35)
SetPlayerSound(Myself,3984,36)
SetPlayerSound(Myself,3985,37)
SetPlayerSound(Myself,3986,38)
SetPlayerSound(Myself,30716,63)
SetPlayerSound(Myself,30717,64)
SetPlayerSound(Myself,30718,65)
SetPlayerSound(Myself,30719,66)
SetPlayerSound(Myself,30720,67)
SetPlayerSound(Myself,30721,68)
SetPlayerSound(Myself,30722,69)
SetPlayerSound(Myself,30723,70)
SetPlayerSound(Myself,30724,71)
SetPlayerSound(Myself,30725,7)
~ EXTERN ~DEGARD~ 10
END

IF ~~ THEN BEGIN 17 // from: DEGARD:10.0
  SAY #7467 /* ~Once you might have been a daunting foe, but no longer. I am more than able to deal with the likes of you!~ */
  IF ~~ THEN DO ~EraseJournalEntry(46840)
SetGlobal("TalkedDegardan","GLOBAL",3)
ActionOverride("degard",Enemy())~ SOLVED_JOURNAL #47742 /* ~Edwin is being hunted by the Red Wizards?

A Red Wizard by the name of Degardan managed to turn Edwin back into a man... which should forestall his complaints at least temporarily.  Edwin turned on the mage, naturally, as soon as he was exposed.  Why the Red Wizards are hunting Edwin remains a mystery.~ */ EXIT
END

IF ~~ THEN BEGIN 18 // from:
  SAY #14252 /* ~I AM a wizard, rotten child.  Another word from you and you'll see just how truly irate a wizard can get.  (Rodents.  Rodents everywhere I turn!  Bah!)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 19 // from:
  SAY #14494 /* ~Yes, indeed.  Speak once more against those with enough intelligence to grind you into salt and I'll instill a bit more respect in you, fool.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 20 // from: 4.0
  SAY #18416 /* ~I've heard rumors, and done a little reading on the subject... Many have muttered the name in frustration... the Nether Scroll.~ */
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 21 // from: 20.0
  SAY #18418 /* ~I had an 'intense' chat with a diviner that swore it was in Athkatla, buried among the nobles.  If I... If we found it we would be formidable indeed.  The lower tombs, perhaps?~ */
  IF ~~ THEN DO ~SetGlobal("EdwinTalkedAboutScroll","GLOBAL",2)
SetGlobalTimer("EdwinComplainAboutScroll","GLOBAL",TWO_DAYS)~ UNSOLVED_JOURNAL #46839 /* ~Find the Nether Scroll for Edwin.

Edwin remembered a tale about something called 'the Nether Scroll', possibly hidden in one of the tombs in the Graveyard District of Athkatla.~ */ EXIT
END

IF ~~ THEN BEGIN 22 // from: 9.0
  SAY #18423 /* ~(Hmm... ancient magic at my fingertips, and more yet to decipher.  It has been a good day.) What are you staring at?  I've had my say; back to your little quest, or whatever!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 23 // from: DFTOWN2:5.0
  SAY #22379 /* ~You're speaking of me, you insolent woman!  Watch your tongue, or I'll scorch it off for you!  (Miserable peasants... the common Thayvian wouldn't speak like this!)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 24 // from:
  SAY #25785 /* ~And I think it is a shame that useless morons such as yourself, who forget that they should not speak, are not eradicated from the gene pool upon sight!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 25 // from:
  SAY #25801 /* ~Not bad intuition, halfling.  Flawed and incorrect... but overall quite respectable.  (The insult deserves a fireball, but it would only prove her right!  Bah!)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 26 // from:
  SAY #25812 /* ~A commendable statement child, but... no, no!  Back, back!  (Somebody get this... thing... off of me!  It's... hugging... me...)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 27 // from:
  SAY #25821 /* ~Oh, do shut up, girl!!  (Miserable, pissant child!)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 28 // from:
  SAY #27672 /* ~I wouldn't have to plow into you if you kept your eyes out of the clouds and on the path you're walking, you filthy zealot!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 29 // from:
  SAY #28663 /* ~I'm practically tempted to test that theory, you snide little fool.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 30 // from: DELTOW02:6.0
  SAY #28976 /* ~They are all true, I assure you.  But you are a peasant of insignificant stock, so begone with your commoner filth, woman!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 31 // from:
  SAY #29649 /* ~Say 'run' one more time, you half-witted blind excuse for vermin, and I will have both your legs end at charred little stumps!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 32 // from: GCHILD01:4.0
  SAY #30092 /* ~I am not your servant, and you can find your own way home... or perhaps I turn you into a frog and throw you in the pond, eh?  Then that can be your home, brat!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 33 // from:
  SAY #33256 /* ~Enough of this banal prattle!  I wish the Nether Scroll, you senile lich!  If you cannot profit from its power, then I shall!  Give it to me at once!~ */
  IF ~~ THEN DO ~SetGlobal("EdwinWantsScroll","GLOBAL",1)~ EXTERN ~NEVAZIAH~ 14
END

IF ~~ THEN BEGIN 34 // from:
  SAY #33259 /* ~No!  NO!!  I will not allow you to destroy such an invaluable artifact!  You are a fool, lich!  And I will have the scroll if I must destroy you, first!!~ */
  IF ~~ THEN EXTERN ~NEVAZIAH~ 16
END

IF ~~ THEN BEGIN 35 // from:
  SAY #38844 /* ~No one would dare to cheat me, fool.  Now, out of my sight before I demonstrate what I do to those who cross me.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 36 // from: HENDAK:5.2
  SAY #39357 /* ~Bah!  Must we listen to such sniveling!  It sickens the stomach!~ */
  IF ~~ THEN EXTERN ~HENDAK~ 37
END

IF WEIGHT #8 ~Gender(Myself,MALE)
Global("TalkedDegardan","GLOBAL",2)
~ THEN BEGIN 37 // from:
  SAY #39759 /* ~Cured! Cured of my wretched condition! Degardan, I owe you my health, wealth and well-being. I am reborn.~ [EDWIN87] */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 38 // from:
  SAY #44114 /* ~This fool is not thinking for himself. A stronger mind has dominated his. Look at his eyes.~ */
  IF ~~ THEN EXTERN ~PPCOWLED~ 2
END

IF ~~ THEN BEGIN 39 // from:
  SAY #47084 /* ~The end?  The end of what?!  Bah!  Useless premonitions!  Why do I even bother asking such unshaped talent?!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 40 // from:
  SAY #47207 /* ~Comment on the shape of my face again, brat, and you'll quickly discover just how mean I can be!  (Observant little urchin, isn't he?)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 41 // from:
  SAY #48473 /* ~Grow up, girl!  Must we endure your mewling every time you confront human nature? (hmm, I have to wonder what she'll be like in twenty years.  Maybe with my help...)~ */
  IF ~!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Jaheira")~ THEN EXIT
  IF ~IsValidForPartyDialog("Anomen")~ THEN EXTERN ~ANOMENJ~ 179
  IF ~!IsValidForPartyDialog("Anomen")
IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 349
END

IF ~~ THEN BEGIN 42 // from:
  SAY #48510 /* ~We have no patience for riddles, sewer filth!  If you know something of a special blade, you will tell us now!!~ */
  IF ~~ THEN EXTERN ~SEWERM1~ 24
END

IF ~~ THEN BEGIN 43 // from: FIRKRA02:25.2
  SAY #48540 /* ~You... you want us to fight a dragon?!  You moronic fool!  I'll not follow you into an idiotic death!  Be eaten by the reptile, for all I care!!~ */
  IF ~~ THEN DO ~LeaveParty()
EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 44 // from: FIRKRA02:21.2
  SAY #48555 /* ~Do as the dragon suggests, <CHARNAME>!  Nothing is served by attacking this beast!  What is the saying... ah... discretion is the better part of valor!~ */
  IF ~!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Minsc")~ THEN EXIT
  IF ~IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~MAZZYJ~ 124
  IF ~!IsValidForPartyDialog("Mazzy")
IsValidForPartyDialog("Anomen")~ THEN EXTERN ~ANOMENJ~ 183
  IF ~!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Anomen")
IsValidForPartyDialog("Minsc")~ THEN EXTERN ~MINSCJ~ 98
END

IF ~~ THEN BEGIN 45 // from:
  SAY #48558 /* ~Do not address me in such a manner, fool!  I am only concerned with our lives in the presence of an ancient force that you could NEVER understand!  Bah!~ */
  IF ~!IsValidForPartyDialog("Minsc")~ THEN EXIT
  IF ~IsValidForPartyDialog("Minsc")~ THEN EXTERN ~MINSCJ~ 98
END

IF ~~ THEN BEGIN 46 // from:
  SAY #48586 /* ~For once I agree with the addled ranger.  I dislike being manipulated and would be interested in Lord Jierdan's reasons, though I care nothing about a rescue.~ */
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Jan")~ THEN EXIT
  IF ~IsValidForPartyDialog("Aerie")~ THEN EXTERN ~AERIEJ~ 57
  IF ~!IsValidForPartyDialog("Aerie")
IsValidForPartyDialog("Jan")~ THEN EXTERN ~JANJ~ 98
END

IF ~~ THEN BEGIN 47 // from:
  SAY #48591 /* ~Do not be a fool, <CHARNAME>.  These mages will hold you to a commitment regardless of what they want!  We do not need them or their machinations!~ */
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Yoshimo")
!IsValidForPartyDialog("Korgan")~ THEN EXTERN ~TOLGER~ 2
  IF ~IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 360
  IF ~!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Yoshimo")~ THEN EXTERN ~YOSHJ~ 46
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Yoshimo")
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 218
END

IF ~~ THEN BEGIN 48 // from:
  SAY #48594 /* ~Pfeh!  If you believe any of that, I have a bridge in Anauroch I'd like to sell you.  Do not trust him, I say!~ */
  IF ~!IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~TOLGER~ 6
  IF ~IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~HAERDAJ~ 62
END

IF ~~ THEN BEGIN 49 // from:
  SAY #48607 /* ~Finally dealings with the Cowled Wizards are over!  (Although I would have liked to have seen exactly what they were going to use the ranger for.)~ */
  IF ~!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Jan")~ THEN EXIT
  IF ~IsValidForPartyDialog("Nalia")~ THEN EXTERN ~NALIAJ~ 233
  IF ~!IsValidForPartyDialog("Nalia")
IsValidForPartyDialog("Jan")~ THEN EXTERN ~JANJ~ 99
END

IF ~~ THEN BEGIN 50 // from:
  SAY #48610 /* ~Ah, yes, the mystery is finally solved.  Yes, the Cowled Wizards would stop at nothing to get inside that sphere.  I sympathize with their stand, of course.~ */
  IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 109
  IF ~!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~MAZZYJ~ 127
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
IsValidForPartyDialog("Minsc")
~ THEN EXTERN ~MINSCJ~ 100
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Minsc")~ THEN EXTERN ~VALYGAR~ 9
END

IF ~~ THEN BEGIN 51 // from:
  SAY #48629 /* ~You'd better know what you're doing, <CHARNAME>.  You just pit us against the Cowled Wizards.  The Cowled Wizards!  Bah!~ */
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Cernd")
OR(2)
!Global("HiredByCowled","GLOBAL",1)
!IsValidForPartyDialog("Korgan")~ THEN EXIT
  IF ~IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 362
  IF ~!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Minsc")~ THEN EXTERN ~MINSCJ~ 104
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Cernd")~ THEN EXTERN ~CERNDJ~ 93
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Cernd")
Global("HiredByCowled","GLOBAL",1)
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 221
END

IF ~~ THEN BEGIN 52 // from:
  SAY #48642 /* ~Hold fast, boy. You'll warm to the job in the end. Misery is a fine subject of study.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 53 // from:
  SAY #48648 /* ~MUST you keep handing out gold coins like they grow on trees?!  We will be swarmed!  (And besides, <PRO_HESHE> could always give them to ME!)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 54 // from:
  SAY #48692 /* ~If that is the limit of your imagination when it comes to magic, fool, then it is no wonder your countrymen are idiotic enough to outlaw it!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 55 // from:
  SAY #48735 /* ~Ye-eeessss.  If you value your hide, you'll forget me quickly and completely.  (Blast!  So the fireball DID miss him!)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 56 // from:
  SAY #48877 /* ~Are you insane?  Now we lower ourselves to becoming... enforcers!  Bah!  My knowledge is not best used collecting the debts of others... for free!~ */
  IF ~!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Keldorn")~ THEN EXIT
  IF ~IsValidForPartyDialog("Anomen")~ THEN EXTERN ~ANOMENJ~ 196
  IF ~!IsValidForPartyDialog("Anomen")
IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 123
END

IF ~~ THEN BEGIN 57 // from:
  SAY #48893 /* ~And while you are thinking you can also imagine what I will gain by turning you in. Guard! Do you ignore this?!~ */
  IF ~~ THEN EXTERN ~ARNMAN08~ 0
END

IF ~~ THEN BEGIN 58 // from:
  SAY #48937 /* ~Excellent!  An open invitation to fling spells at paladins, former or not!  (With luck, I can convince <CHARNAME> to let me play with one!)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 59 // from:
  SAY #48955 /* ~Oh, yes... we've braved monsters, Flaming Fist, Sarevok's assorted minions, only to fall to a sneak-thief with an over-fondness for flesh.  Excellent deduction.~ */
  IF ~!IsValidForPartyDialog("Yoshimo")~ THEN EXIT
  IF ~IsValidForPartyDialog("Yoshimo")~ THEN EXTERN ~YOSHJ~ 54
END

IF ~~ THEN BEGIN 60 // from: DCLERIC:3.2
  SAY #48973 /* ~Madness! The singleminded nature of the Rashemeni but with even less sense!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #12 /* Triggers after states #: 162 170 even though they appear after this state */
~AreaCheck("AR0502")
Global("EnteredTanner2","AR0502",0)~ THEN BEGIN 61 // from:
  SAY #48977 /* ~Ah, yes!  The tanner's workshop.  What a wonderful display these entrails make.  Hmph.  I wonder what the exact nature of his 'work' is.  This should be interesting...~ */
  IF ~~ THEN DO ~SetGlobal("EnteredTanner2","AR0502",1)
~ EXIT
END

IF ~~ THEN BEGIN 62 // from: DFISHER:0.2
  SAY #49194 /* ~I shall be sure to cry you a river just as soon as I start caring.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 63 // from: DRUFF1:6.0
  SAY #49231 /* ~If that comment was for me, I suggest you rethink it before I have you begging at my feet for mercy.  (Hmph!  'Mealy-faced'!  I am as vital as I ever was!)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 64 // from: GAELAN:66.5
  SAY #49285 /* ~Finally: the Shadowmaster.  This is real power we're going to meet, now, <CHARNAME>, so you'd best reign in your temperamental nature.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 65 // from:
  SAY #49297 /* ~Played like a flute!  By the Harpers, no less!  If I must kill, it will be for my own ends!  (But I never liked that necro or his halfling anyway, so whatever.)~ */
  IF ~!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Jan")~ THEN EXIT
  IF ~IsValidForPartyDialog("Anomen")~ THEN EXTERN ~ANOMENJ~ 213
  IF ~!IsValidForPartyDialog("Anomen")
IsValidForPartyDialog("Jan")~ THEN EXTERN ~JANJ~ 112
END

IF ~~ THEN BEGIN 66 // from:
  SAY #49354 /* ~No doubt the fool has been ground to dust if he was caught.  Bring an urn.  The look on Xzar's face will be priceless when we return with Montaron's ashes.  HA!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 67 // from:
  SAY #49401 /* ~Do you take us for hapless fools?  All the power and influence that the Harpers obtain while they perform this 'service' is merely coincidental?~ */
  IF ~~ THEN EXTERN ~MERONIA~ 2
END

IF ~~ THEN BEGIN 68 // from: HAERDAJ:81.2
  SAY #49418 /* ~Control your boasts of Harper schemes, boy, lest you encounter someone who was on the receiving end of them and, say, decides to strip the flesh from your bones.~ */
  IF ~~ THEN EXTERN ~PACE~ 6
END

IF ~~ THEN BEGIN 69 // from:
  SAY #49555 /* ~I tire of this whining! If it makes this all the faster I will leave myself and you can take the child! I will fare better than her, surely.~ */
  IF ~~ THEN EXTERN ~IMOEN2~ 23
END

IF ~~ THEN BEGIN 70 // from:
  SAY #49567 /* ~You must be a mad<PRO_MANWOMAN>!  Mae'Var is as good as dead anyway!  Let us go earn the reward ourselves!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 71 // from:
  SAY #49613 /* ~O-ho!  The Harpers open their doors at last!  I wonder what Harper secrets we might be able to pry out from under their noses while we are within, eh?~ */
  IF ~!IsValidForPartyDialog("HaerDalis")~ THEN EXIT
  IF ~IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~HAERDAJ~ 82
END

IF ~~ THEN BEGIN 72 // from:
  SAY #49620 /* ~Er... ahh... you must have me mistaken for someone else, wench, I...~ */
  IF ~~ THEN EXTERN ~SBWENCH~ 7
END

IF ~~ THEN BEGIN 73 // from:
  SAY #49622 /* ~Ah... the name is Edwin, I assure you, and...~ */
  IF ~~ THEN EXTERN ~SBWENCH~ 8
END

IF ~~ THEN BEGIN 74 // from:
  SAY #49625 /* ~ENOUGH!  Begone, wench, BEGONE!  I spent one night in your chambers and that is ALL... speak of it again and I shall burn the flesh from your bones!!  Gaaaah!!~ */
  IF ~~ THEN EXTERN ~SBWENCH~ 9
END

IF ~~ THEN BEGIN 75 // from: HAERDAJ:83.0
  SAY #49626 /* ~Grrr...  (One more word, one more word and I shall kill them ALL!  Oh, yes, I think I'm in just the right mood for it!  One... more... word...)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 76 // from:
  SAY #49779 /* ~Well, it is about time!  It is almost too much, this creeping about graveyards at night, waiting on this wench's every word!  Bah!~ */
  IF ~~ THEN EXTERN ~BODHI~ 4
END

IF ~~ THEN BEGIN 77 // from:
  SAY #49816 /* ~Is this all that we are to be used for, now?  Some minor errand?  Ah, yes, what a blow it shall be against the Shadow Thieves!  Bah!  Let us get this over with!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 78 // from:
  SAY #49857 /* ~So, we're off to kill the Shadowmaster, one of the most powerful men in this city?  It might be interesting.  Just do not screw it up, <CHARNAME>!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 79 // from:
  SAY #49870 /* ~We don't have time for this, <CHARNAME>!  What business is it of ours if this fool allows himself to be buried alive?  Bah!  Are we the city guard?~ */
  IF ~!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Anomen")~ THEN EXIT
  IF ~IsValidForPartyDialog("Minsc")~ THEN EXTERN ~MINSCJ~ 133
  IF ~!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Anomen")~ THEN EXTERN ~ANOMENJ~ 224
END

IF ~~ THEN BEGIN 80 // from: ELGEA:0.2
  SAY #49899 /* ~Wait <CHARNAME>!  There is no reason that we cannot ransom this lady off ourselves, yes?  There is no reason we cannot profit from this!~ */
  IF ~~ THEN EXTERN ~ELGEA~ 13
END

IF ~~ THEN BEGIN 81 // from: ELGEA:6.4
  SAY #49910 /* ~Excellent!  We will take advantage of another's plot!  What delicious irony!  (I should have a greater share of the ransom for thinking of it, in fact.)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 82 // from:
  SAY #49962 /* ~Not a thing, unless you have an objection to my vomiting all over your rosey-hued robes, priest.~ */
  IF ~~ THEN EXTERN ~ACOLYTE2~ 2
END

IF ~~ THEN BEGIN 83 // from:
  SAY #50000 /* ~I would deal with you here, fool, but it would draw the Cowled Wizards' attention.  Count yourself lucky and be gone from my sight!~ */
  IF ~~ THEN DO ~ActionOverride("Postul6",RunAwayFrom("Edwin",120))~ EXIT
END

IF ~~ THEN BEGIN 84 // from: GAAL:4.4
  SAY #50078 /* ~Eh?  A beholder is behind this?  I have heard of their power -great power, indeed- but I have never heard of one without its eyes.~ */
  IF ~~ THEN EXTERN ~GAAL~ 9
END

IF ~~ THEN BEGIN 85 // from:
  SAY #50110 /* ~If only there were a way to enslave the little pissant's mind, this would be SO much easier.  I've half a mind to seal his mouth permanently!~ */
  IF ~!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Korgan")~ THEN EXIT
  IF ~IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~HAERDAJ~ 87
  IF ~!IsValidForPartyDialog("HaerDalis")
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 105
END

IF ~~ THEN BEGIN 86 // from:
  SAY #50128 /* ~So we have come all this way only to find that this item is practically USELESS?!  Bah!  The device's effect on the beholder had better be worth it!~ */
  IF ~!IsValidForPartyDialog("Jan")~ THEN EXIT
  IF ~IsValidForPartyDialog("Jan")~ THEN EXTERN ~JANJ~ 131
END

IF ~~ THEN BEGIN 87 // from:
  SAY #50201 /* ~Ah, and we can all see how effective their restrictions on magic are, fool.  Is there a single building not harboring some mage, or a Cowled Wizard?  Idiots.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 88 // from: GBEGG01:6.1
  SAY #50241 /* ~What is this?  Charity?  From a dark elf?  Are you going soft on me, my lascivious onyx priestess, hmmm?~ */
  IF ~~ THEN EXTERN ~VICONIJ~ 79
END

IF ~~ THEN BEGIN 89 // from:
  SAY #50255 /* ~So you say, drow.  I suggest you drink more of the poison that makes up your black heart and forget such nonsense in the future.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 90 // from: GFTOWN02:7.0
  SAY #50305 /* ~Are you referring to me?  Watch who you address with over-familiarity, commoner wench, lest I slap you to the ground and keep you there!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 91 // from: GNOBLEF2:7.0
  SAY #50365 /* ~What do you mistake me for, you stupid woman?  Some low-bred, filthy servant?  Perhaps polymorphing you into a blind toadstool would improve your perception!!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 92 // from: GPHIL02:4.2
  SAY #50422 /* ~Hahaha!  Crude... but effective.  With such a point, you could bludgeon any fool into senselessness and feel justified... my kind of philosophy.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 93 // from:
  SAY #50673 /* ~Wonderful.  The cat is dead and now we'll have lots of mad little mice running about.  <CHARNAME>, give those lunatics a purpose or we're all in trouble.~ */
  IF ~~ THEN DO ~SetGlobal("playerTalk","AR1515",2)
SetGlobal("AsylumPlot","GLOBAL",54)
StartCutSceneMode()
StartCutScene("Cut41m")
~ EXIT
END

IF ~~ THEN BEGIN 94 // from:
  SAY #55193 /* ~Excellent!  A well-fought victory over a powerful wizard!  Now let us plunder whatever secrets he must possess!  He surely has a motherlode of magic at his disposal, oh yes!~ */
  IF ~~ THEN EXTERN ~PLAYER1~ 17
END

IF ~~ THEN BEGIN 95 // from: HAERDAJ:100.3
  SAY #55214 /* ~Eh?  Oh, the Nine Hells, is it?  Hmph.  Yes, I felt your infernal power tugging at me, but I was coming here anyway.  There might be profit, yet, by remaining at your side... we'll see.~ [EDWIN90] */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 96 // from:
  SAY #55283 /* ~Hold on, creature.  Tell me... did this drow wizard summon you to guard the chest or what's *in* the chest?~ */
  IF ~~ THEN EXTERN ~SAHBEH01~ 33
END

IF ~~ THEN BEGIN 97 // from:
  SAY #55300 /* ~Hah!  As a wizard, I can tell you that the drow would never wish that.  There is no point in guarding an empty chest, beholder.~ */
  IF ~~ THEN EXTERN ~SAHBEH01~ 39
END

IF ~~ THEN BEGIN 98 // from:
  SAY #55654 /* ~It would seem more a place to house those that prove too powerful for their own good. Useful... from a certain perspective.~ */
  IF ~~ THEN EXTERN ~PPIRENI1~ 7
END

IF ~~ THEN BEGIN 99 // from:
  SAY #55666 /* ~Pretties, you say? Do you mean... gems? Have you any faculties left? Can you remember?~ */
  IF ~~ THEN EXTERN ~PPIRENI1~ 18
END

IF ~~ THEN BEGIN 100 // from:
  SAY #55678 /* ~Ah yes, Tiax. All the subtleties of a fireball in a teapot. Pity he's here. Let's move on, shall we?~ */
  IF ~~ THEN EXTERN ~PPIRENI1~ 23
END

IF ~~ THEN BEGIN 101 // from:
  SAY #55688 /* ~Bah!  Fine!  Leave us! As if we care what your reputation might be!  I've half a mind to turn you into a slug and show you what I do with lackeys who fail me!~ */
  IF ~~ THEN EXTERN ~PPSAEM~ 34
END

IF ~~ THEN BEGIN 102 // from:
  SAY #55699 /* ~We almost had the information we needed!  The assassin could have waited ten seconds and we could have cared less!  Innkeep!  What do you know of this man's death?~ */
  IF ~~ THEN EXTERN ~PPINN01~ 6
END

IF ~~ THEN BEGIN 103 // from:
  SAY #55710 /* ~We are not in the habit of performing public services.  The fact that we rescued the girl deserves compensation, don't you agree?~ */
  IF ~~ THEN EXTERN ~PIRMUR09~ 18
END

IF ~~ THEN BEGIN 104 // from:
  SAY #55716 /* ~And here we go 'round the mulberry bush. Yes, yes, keep your pitiful ramblings to yourself.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 105 // from:
  SAY #55741 /* ~~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 106 // from:
  SAY #55745 /* ~We have no need of support from mad wizards!  We have enough magic... let us attack Irenicus now!~ */
  IF ~!IsValidForPartyDialog("Viconia")~ THEN EXIT
  IF ~IsValidForPartyDialog("Viconia")~ THEN EXTERN ~VICONIJ~ 129
END

IF ~~ THEN BEGIN 107 // from:
  SAY #55758 /* ~Okay, that does it. I'm all for just leaving the halfling here when we go. Who's with me on that?~ */
  IF ~!IsValidForPartyDialogue("KORGAN")~ THEN EXTERN ~PPTIAX~ 13
  IF ~IsValidForPartyDialogue("KORGAN")~ THEN EXTERN ~KORGANJ~ 125
END

IF ~~ THEN BEGIN 108 // from:
  SAY #55761 /* ~Hmph.  That's putting it mildly.  (Godhood should be solely reserved for those with the proper destiny and mental endurance.  Me, for instance!)~ */
  IF ~~ THEN EXTERN ~PPSAEM2~ 12
END

IF ~~ THEN BEGIN 109 // from: HAERDAJ:107.2
  SAY #55780 /* ~I'm beginning to hope so.~ */
  IF ~~ THEN EXTERN ~JANJ~ 158
END

IF ~~ THEN BEGIN 110 // from:
  SAY #55810 /* ~It is a weakness on her part. A superior mind could handle such a gift.~ */
  IF ~!IsValidForPartyDialogue("VICONIA")
!IsValidForPartyDialogue("JAHEIRA")~ THEN EXIT
  IF ~IsValidForPartyDialogue("VICONIA")~ THEN EXTERN ~VICONIJ~ 133
  IF ~!IsValidForPartyDialogue("VICONIA")
IsValidForPartyDialogue("JAHEIRA")~ THEN EXTERN ~JAHEIRAJ~ 463
END

IF ~~ THEN BEGIN 111 // from:
  SAY #55814 /* ~(Sigh. It's aggravation like this that will eventually cause me to fireball the entire party as they sleep. Yes indeed, everyone peaceful and quiet and then FOOM!)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 112 // from:
  SAY #55820 /* ~Then you can start by addressing us now, tadpole-thing.  How did we get here?  (if it can speak at all. Such creatures are known more for the taste of their legs...)~ */
  IF ~~ THEN EXTERN ~SAHPR1~ 6
END

IF ~~ THEN BEGIN 113 // from:
  SAY #55855 /* ~Hmph.  Ah, that is our goal, you know: to allow the tadpoles to resume their dominant role in the world.  (Idiot!  Sekolah should have gifted them with a brain!)~ */
  IF ~~ THEN EXTERN ~SAHPR4~ 5
END

IF ~~ THEN BEGIN 114 // from:
  SAY #55879 /* ~A HA! I shall treasure this moment. The proud Drow, humbled by a keen-eyed duergar.~ */
  IF ~~ THEN EXTERN ~VICONIJ~ 81
END

IF ~~ THEN BEGIN 115 // from:
  SAY #55894 /* ~Ah, a denizen of the lower planes to unleash upon the elves.  The use of the eggs begins to make sense.  Why Irenicus would involve himself remains a mystery.~ */
  IF ~~ THEN EXTERN ~UDPHAE01~ 138
END

IF ~~ THEN BEGIN 116 // from:
  SAY #55943 /* ~Good! And I expect the best of treatment for your Drow masters. It is what we deserve.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 117 // from:
  SAY #55944 /* ~No-oooo! Aerie! AERIE!!!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 118 // from:
  SAY #55952 /* ~A bold statement, if you can back it up.  But we've power to spare, here, fools!  (A fireball down the dwarf's gullet should instill some respect, I think!)~ */
  IF ~~ THEN EXTERN ~C6CATTI1~ 0
END

IF ~~ THEN BEGIN 119 // from:
  SAY #55953 /* ~Interesting. To risk so much for exploration he must have been seeking something very valuable indeed.~ */
  IF ~!IsValidForPartyDialogue("KORGAN")~ THEN EXTERN ~UDDUER02~ 13
  IF ~IsValidForPartyDialogue("KORGAN")~ THEN EXTERN ~KORGANJ~ 137
END

IF ~~ THEN BEGIN 120 // from:
  SAY #56044 /* ~Speak for yourself, do-gooder.  If the Shadow Thieves can assist us against such a powerful vampire, I'd happily dance in the mud.~ */
  IF ~~ THEN EXTERN ~KELDORJ~ 210
END

IF ~~ THEN BEGIN 121 // from:
  SAY #56061 /* ~Bah!  We've no time to run around your city, concerning ourselves with your moronic people!  Let them save themselves!  We are here for the wizard!~ */
  IF ~!IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~SUDEMIN~ 35
  IF ~IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~IMOEN2J~ 28
END

IF ~~ THEN BEGIN 122 // from:
  SAY #56071 /* ~Well done, Korgan. You fit the role of Drow very well indeed.~ */
  IF ~~ THEN EXTERN ~KORGANJ~ 147
END

IF ~~ THEN BEGIN 123 // from:
  SAY #56084 /* ~You heard her. Pretentious attitudes for everyone. Care to model yours, Jaheira? Just so we get it right?~ */
  IF ~~ THEN EXTERN ~JAHEIRAJ~ 481
END

IF ~~ THEN BEGIN 124 // from:
  SAY #56094 /* ~More and more I enjoy the fear we wield down here.~ */
  IF ~!IsValidForPartyDialogue("VICONIA")
!IsValidForPartyDialogue("NALIA")~ THEN EXIT
  IF ~IsValidForPartyDialogue("VICONIA")~ THEN EXTERN ~VICONIJ~ 157
  IF ~IsValidForPartyDialogue("NALIA")
!IsValidForPartyDialogue("VICONIA")~ THEN EXTERN ~NALIAJ~ 286
END

IF ~~ THEN BEGIN 125 // from:
  SAY #56097 /* ~Yes, well, we're all aware of *your* views, Nalia.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 126 // from: HELLJON:10.9 HELLJON:9.9 HELLJON:8.9 HELLJON:7.9 HAERDAJ:123.2
  SAY #56107 /* ~Power is on our side, sorcerer!  You cannot hope to defeat us in this final reckoning!  Your end is near at hand, wail if you must!!~ [EDWIN89] */
  IF ~!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Imoen2")~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("cut85c")
~ EXIT
  IF ~IsValidForPartyDialog("Jan")~ THEN EXTERN ~JANJ~ 168
  IF ~!IsValidForPartyDialog("Jan")
IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~MAZZYJ~ 180
  IF ~!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
IsValidForPartyDialog("Valygar")~ THEN EXTERN ~VALYGARJ~ 90
  IF ~!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 482
  IF ~!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Minsc")~ THEN EXTERN ~MINSCJ~ 179
  IF ~!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Imoen2")~ THEN EXTERN ~IMOEN2J~ 31
END

IF ~~ THEN BEGIN 127 // from:
  SAY #56122 /* ~Oh, I don't know. She has a certain... charm.~ */
  IF ~~ THEN EXTERN ~KORGANJ~ 153
END

IF ~~ THEN BEGIN 128 // from:
  SAY #56153 /* ~Just as long as we are not targets while you... while... We're targets, aren't we!  That's what this is about; we fight while you sit there going 'OHM' or some such!~ */
  IF ~~ THEN EXTERN ~UDSIMYAZ~ 17
END

IF ~~ THEN BEGIN 129 // from:
  SAY #56166 /* ~And they just strolled on by? Pardon me, madam, but you are no svirfneblin begging for help. Did you not sense their... despotic nature?~ */
  IF ~~ THEN EXTERN ~UDSILVER~ 17
END

IF ~~ THEN BEGIN 130 // from:
  SAY #56232 /* ~Yes, well, he's provoked himself right into a fireball when next we meet.~ */
  IF ~~ THEN EXTERN ~SUDEMIN~ 12
END

IF ~~ THEN BEGIN 131 // from:
  SAY #56430 /* ~Eh?  The tanner from Athkatla has come here?  Once again, it seems there is more to him than there first appeared.  Come, boy... do you know where you were taken?~ */
  IF ~~ THEN EXTERN ~TRSKIN02~ 20
END

IF ~~ THEN BEGIN 132 // from:
  SAY #56440 /* ~Bah! Tales of Umar are nonsense, I can assure you.  Nor does it sound like the work of ogres.  We should check the cabin, if anywhere, <CHARNAME>.~ */
  IF ~!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Minsc")~ THEN EXTERN ~UHMAY01~ 19
  IF ~IsValidForPartyDialog("Nalia")~ THEN EXTERN ~NALIAJ~ 291
  IF ~!IsValidForPartyDialog("Nalia")
IsValidForPartyDialog("Jan")~ THEN EXTERN ~JANJ~ 171
  IF ~!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Jan")
IsValidForPartyDialog("Aerie")~ THEN EXTERN ~AERIEJ~ 170
  IF ~!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Jan")
!IsValidForPartyDialog("Aerie")
IsValidForPartyDialog("Minsc")~ THEN EXTERN ~MINSCJ~ 228
END

IF ~~ THEN BEGIN 133 // from: HAERDA:109.1
  SAY #56448 /* ~Hmm... I'd say this man has been rendered magically mindless.  A zombie servant... how useful.  (I can think of several others who could use similar treatment!)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 134 // from:
  SAY #56463 /* ~I disagree with you completely, although I'm sure you will ignore me.  Bah!  It's my finding that vengeance feels ever so much better than nobility.~ */
  IF ~~ THEN EXTERN ~ANOMENJ~ 177
END

IF ~~ THEN BEGIN 135 // from:
  SAY #56475 /* ~Hah!  Cuckoldry is punishable by imprisonment in this place, I hear.  In Thay, it would be death.  The wench should consider herself lucky!~ */
  IF ~~ THEN EXTERN ~KELDORJ~ 22
END

IF ~~ THEN BEGIN 136 // from:
  SAY #56486 /* ~You do not fool us, pretty wench.  It is obvious you want this gem, and if you do, you'll pay handsomely.  Come now, how much is it truly worth to you?~ */
  IF ~~ THEN EXTERN ~RAELIS~ 4
END

IF ~~ THEN BEGIN 137 // from: GERHAR:17.1
  SAY #56502 /* ~Obviously the gnome's family is as insane as he is.  The Hidden, is it?  Sounds like some poor excuse for a theatrical title.  Let us ignore these morons!~ */
  IF ~!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Anomen")~ THEN EXIT
  IF ~IsValidForPartyDialog("Nalia")~ THEN EXTERN ~NALIAJ~ 294
  IF ~!IsValidForPartyDialog("Nalia")
IsValidForPartyDialog("Anomen")~ THEN EXTERN ~ANOMENJ~ 286
END

IF ~~ THEN BEGIN 138 // from:
  SAY #56506 /* ~What is this?!  Gith!  Githyanki, in fact!  Why would the Hidden have these creatures as enemies?!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 139 // from: DELCIA:2.7
  SAY #56530 /* ~We come as your rescuers and you spit venom?  I don't know about <CHARNAME>, but I don't like your attitude.  I'd like to see you squirm for once, I think.~ */
  IF ~~ THEN EXTERN ~DELCIA~ 13
END

IF ~~ THEN BEGIN 140 // from:
  SAY #56883 /* ~Finally something tangible, though they had better be worth the enormous expense. I might have bought better if <CHARNAME> had not paid you.~ */
  IF ~!IsValidForPartyDialogue("MINSC")
!IsValidForPartyDialogue("AERIE")~ THEN EXTERN ~ARAN~ 52
  IF ~IsValidForPartyDialogue("MINSC")~ THEN EXTERN ~MINSCJ~ 201
  IF ~IsValidForPartyDialogue("AERIE")
!IsValidForPartyDialogue("MINSC")~ THEN EXTERN ~AERIEJ~ 179
END

IF ~~ THEN BEGIN 141 // from:
  SAY #56888 /* ~Would someone *please* get this disgusting hairball out of my sight. (and his hamster.)~ */
  IF ~~ THEN EXTERN ~ARAN~ 52
END

IF ~~ THEN BEGIN 142 // from:
  SAY #56893 /* ~What color is the sky in your world, little girl? (Gods! Such ignorance of common sense.)~ */
  IF ~~ THEN EXTERN ~ARAN~ 52
END

IF ~~ THEN BEGIN 143 // from:
  SAY #57196 /* ~You cannot do this to us!  We shall find you and have our revenge for this, gnat!  (A fireball down his throat... yesssss, or maybe two!)~ */
  IF ~~ THEN EXTERN ~JARLAXLE~ 39
END

IF ~~ THEN BEGIN 144 // from: DASLAVE1:8.1
  SAY #57389 /* ~Hmph, better to throw coins in the sea.  It would prove as effective as the money you've spent here.  (Ten gold say don't make it ten feet past the gate...)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 145 // from:
  SAY #57696 /* ~Oh wonderful, now you are weakening in this darkest of moments! I knew I should have partnered with stronger party members.~ */
  IF ~~ THEN REPLY #57698 /* ~Thank you for your concern, but I am not dead yet. Just... feeling strange.~ */ GOTO 146
  IF ~~ THEN REPLY #57699 /* ~Shut up! I will rest if I need, and I don't need you chattering in the background.~ */ GOTO 147
  IF ~~ THEN REPLY #57700 /* ~And I should have a mage who is less of a snob, but this is no time for namecalling.~ */ GOTO 148
END

IF ~~ THEN BEGIN 146 // from: 145.0
  SAY #57701 /* ~I suppose having your soul ripped out will do that, but it's no excuse. We need to at least get me to safety. Then you can rest.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 147 // from: 145.1
  SAY #57702 /* ~(mutter) Should have left the lot of you when we were in Athkatla. Instead I'm in an asylum with a soul-tearing lunatic and his vampire-on-a-leash.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 148 // from: 145.2
  SAY #57703 /* ~Rip <PRO_HISHER> soul out and <PRO_HESHE>'s still quick with the insults. (Strong and resolute, but still a monkey.)~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 149 // from:
  SAY #57704 /* ~Ok, I'll put up with incompetence, insults, and all manner of foolishness, but I have to draw the line at transformations into dead gods of murder!~ */
  IF ~~ THEN REPLY #57705 /* ~If you don't mind, I'm having a bit of a crisis here!~ */ GOTO 150
  IF ~~ THEN REPLY #57706 /* ~That was me? I felt like I was watching it all from above...~ */ GOTO 153
  IF ~~ THEN REPLY #57707 /* ~Lord of Murder... It was so powerful...~ */ GOTO 154
END

IF ~~ THEN BEGIN 150 // from: 149.0
  SAY #57708 /* ~I don't blame you, manifesting Bhaal and all. I wouldn't get used to that. You'll probably lose your mind to the void long before you can control it.~ */
  IF ~~ THEN GOTO 151
END

IF ~~ THEN BEGIN 151 // from: 154.0 153.0 150.0
  SAY #57709 /* ~That's just a guess on my part, but accessing the avatar of a dead god cannot be good. Seems like having your soul taken has resulted in more than anyone could see.~ */
  IF ~~ THEN GOTO 152
END

IF ~~ THEN BEGIN 152 // from: 151.0
  SAY #57710 /* ~I'll be keeping an eye on you, <CHARNAME>. Best that you keep an eye on yourself as well.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 153 // from: 149.1
  SAY #57711 /* ~No, you were right here in the middle of it. You'll forgive me if I don't enjoy having the very essence of death in the party.  Probably lose your mind to it, too.~ */
  IF ~~ THEN GOTO 151
END

IF ~~ THEN BEGIN 154 // from: 149.2
  SAY #57712 /* ~I would not get used to it. As powerful as you think you might be, you'll probably lose your mind along with your stolen soul.~ */
  IF ~~ THEN GOTO 151
END

IF ~~ THEN BEGIN 155 // from:
  SAY #57900 /* ~This deal just gets better and better. We march to our doom while they stay here.~ */
  IF ~~ THEN EXTERN ~C6ELHAN2~ 46
END

IF ~~ THEN BEGIN 156 // from:
  SAY #58153 /* ~Poor little Nalia.  Not quite the troubled ne'er-do-wells you want to coddle?  Perhaps we'll find some poor beggar with his cat caught in a tree somewhere.~ */
  IF ~~ THEN EXTERN ~NALIAJ~ 312
END

IF ~~ THEN BEGIN 157 // from:
  SAY #58154 /* ~It is the tone of nobility, woman. You share it as well, but you would rather slum with your lessers. Just as long as they are 'needy'.~ */
  IF ~~ THEN EXTERN ~NALIAJ~ 313
END

IF ~~ THEN BEGIN 158 // from:
  SAY #58156 /* ~Now I must babysit Aran's runaways? This grows tiresome.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 159 // from:
  SAY #58190 /* ~Let me be the first to express concerns about going somewhere designed to hold Mages. I do not like this.~ */
  IF ~!IsValidForPartyDialogue("KORGAN")~ THEN REPLY #58201 /* ~We will do what we must, Edwin.~ */ EXTERN ~ARAN~ 41
  IF ~!IsValidForPartyDialogue("KORGAN")~ THEN REPLY #58202 /* ~You will follow where I lead.~ */ EXTERN ~ARAN~ 41
  IF ~IsValidForPartyDialogue("KORGAN")~ THEN EXTERN ~KORGANJ~ 185
END

IF ~~ THEN BEGIN 160 // from:
  SAY #58200 /* ~And where do you suppose I should be going?  You have a nose that seems to sniff out the path of power, and I will wrest what portion of it I wish until I am sated..  (And then, perhaps, we see what becomes of *you*!)~ */
  IF ~True()~ THEN EXTERN ~PLAYER1~ 53
  IF ~IsValidForPartyDialog("Anomen")
Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 52
  IF ~IsValidForPartyDialog("Aerie")
Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 51
  IF ~IsValidForPartyDialog("Viconia)
Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 50
  IF ~IsValidForPartyDialog("Jaheira")
Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 49
  IF ~IsValidForPartyDialog("Anomen")
!Global("AnomenRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 48
  IF ~IsValidForPartyDialog("Aerie")
!Global("AerieRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 47
  IF ~IsValidForPartyDialog("Viconia)
!Global("ViconiaRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 46
  IF ~IsValidForPartyDialog("Jaheira")
!Global("JaheiraRomanceActive","GLOBAL",2)~ THEN EXTERN ~PLAYER1~ 45
  IF ~IsValidForPartyDialog("Cernd")~ THEN EXTERN ~PLAYER1~ 44
  IF ~IsValidForPartyDialog("Nalia")~ THEN EXTERN ~PLAYER1~ 43
  IF ~IsValidForPartyDialog("Korgan")~ THEN EXTERN ~PLAYER1~ 42
  IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~PLAYER1~ 41
  IF ~IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~PLAYER1~ 40
END

IF ~~ THEN BEGIN 161 // from:
  SAY #58750 /* ~Rest assured, a Red Wizard lets no debt go unpaid, and you, Yoshimo, have just earned more pain than you thought possible.~ */
  IF ~!IsValidForPartyDialogue("MAZZY")
!IsValidForPartyDialogue("JAN")
!IsValidForPartyDialogue("VALYGAR")
!IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("CERND")
!IsValidForPartyDialogue("MINSC")~ THEN EXTERN ~YOSHJ~ 114
  IF ~IsValidForPartyDialogue("MAZZY")~ THEN EXTERN ~MAZZYJ~ 201
  IF ~IsValidForPartyDialogue("JAN")
!IsValidForPartyDialogue("MAZZY")~ THEN EXTERN ~JANJ~ 182
  IF ~IsValidForPartyDialogue("VALYGAR")
!IsValidForPartyDialogue("JAN")
!IsValidForPartyDialogue("MAZZY")~ THEN EXTERN ~VALYGARJ~ 119
  IF ~IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("VALYGAR")
!IsValidForPartyDialogue("JAN")
!IsValidForPartyDialogue("MAZZY")~ THEN EXTERN ~HAERDAJ~ 150
  IF ~IsValidForPartyDialogue("CERND")
!IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("VALYGAR")
!IsValidForPartyDialogue("JAN")
!IsValidForPartyDialogue("MAZZY")~ THEN EXTERN ~CERNDJ~ 137
  IF ~IsValidForPartyDialogue("MINSC")
!IsValidForPartyDialogue("CERND")
!IsValidForPartyDialogue("HAERDALIS")
!IsValidForPartyDialogue("VALYGAR")
!IsValidForPartyDialogue("JAN")
!IsValidForPartyDialogue("MAZZY")~ THEN EXTERN ~MINSCJ~ 211
END

IF WEIGHT #9 ~Dead("degard")
!Global("TalkedDegardan","GLOBAL",4)~ THEN BEGIN 162 // from:
  SAY #61093 /* ~Hah!  And he thought himself a capable spellcaster!  Perhaps those fools will think twice, now, before they send another of their goons to bellow hollow threats!~ */
  IF ~~ THEN REPLY #61094 /* ~Everything not well between you and the Red Wizards, Edwin?~ */ DO ~SetGlobal("TalkedDegardan","GLOBAL",4)~ GOTO 163
  IF ~~ THEN REPLY #61095 /* ~So what, exactly, did you do to anger the Thayans?~ */ DO ~SetGlobal("TalkedDegardan","GLOBAL",4)~ GOTO 163
  IF ~~ THEN REPLY #61096 /* ~So!  You're nothing better than a rogue and a liar!  Not even a Red Wizard, I see!~ */ DO ~SetGlobal("TalkedDegardan","GLOBAL",4)~ GOTO 165
  IF ~~ THEN REPLY #61097 /* ~Alright, alright, let's just go.~ */ DO ~SetGlobal("TalkedDegardan","GLOBAL",4)~ GOTO 166
END

IF ~~ THEN BEGIN 163 // from: 162.1 162.0
  SAY #61098 /* ~Hmph.  Let's just say that not every colleague is pleased with my disposition and I have been on an... extended leave from my compatriots in Thay.~ */
  IF ~~ THEN GOTO 164
END

IF ~~ THEN BEGIN 164 // from: 163.0
  SAY #61099 /* ~Not that it's any of your business!  Being saddled with the company of monkeys should be enough self-punishment for anyone!  But enough!  Let us away!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 165 // from: 162.2
  SAY #61100 /* ~I am a Red Wizard, fool, and my difficulties with my colleagues are but a momentary obstacle!  Continue to mock me and you'll be speaking from a charred stump!~ */
  IF ~~ THEN REPLY #61102 /* ~Fine, fine.  Let's just move on, then.~ */ GOTO 166
  IF ~~ THEN REPLY #61103 /* ~You've given me enough grief, wizard!  Leave... and take your attitude with you.~ */ GOTO 167
  IF ~OR(2)
!AreaType(CITY)
!AreaType(OUTDOOR)~ THEN REPLY #61104 /* ~You've threatened me once too often, Edwin!~ */ GOTO 168
  IF ~AreaType(CITY)
AreaType(OUTDOOR)~ THEN REPLY #61108 /* ~You've threatened me once too often, Edwin!~ */ GOTO 169
END

IF ~~ THEN BEGIN 166 // from: 165.0 162.3
  SAY #61101 /* ~So be it.  I've had enough banal chit-chat as of late to last me several lifetimes.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 167 // from: 165.1
  SAY #61105 /* ~As you would have it, foolish little <PRO_MANWOMAN>!  There are a thousand other uses for my skills besides wasting them on such as you!~ */
  IF ~~ THEN DO ~ChangeAIScript("",DEFAULT)
SetLeavePartyDialogFile()
SetGlobal("KickedOut","LOCALS",1)
LeaveParty()
EscapeAreaMove("AR0406",1045,523,0)~ EXIT
END

IF ~~ THEN BEGIN 168 // from: 165.2
  SAY #61106 /* ~Not often enough, it seems!!~ */
  IF ~~ THEN DO ~LeaveParty()
Enemy()~ EXIT
END

IF ~~ THEN BEGIN 169 // from: 165.3
  SAY #61107 /* ~Not often enough, it seems!  But I'll not waste another moment with you, here!  A million other exploits await elsewhere!~ */
  IF ~~ THEN DO ~ChangeAIScript("",DEFAULT)
SetLeavePartyDialogFile()
LeaveParty()
ForceSpell(Myself,DRYAD_TELEPORT)~ EXIT
END

IF WEIGHT #10 ~Gender(Myself,FEMALE)
Global("EdwinWoman","LOCALS",0)~ THEN BEGIN 170 // from:
  SAY #61477 /* ~This is blasphemy! An outrage against nature and order! I must redouble my efforts to cancel the hideous and deforming nature of this Nether scourge!~ */
  IF ~~ THEN DO ~SetGlobal("EdwinWoman","LOCALS",1)~ GOTO 171
END

IF ~~ THEN BEGIN 171 // from: 170.0
  SAY #61478 /* ~What! Nothing! This is shameful and revolting! What are you pie-eyed vagrants gawking at? Staring at me with a plebian vandal's charm! This is beyond treachery!~ */
  IF ~Gender(Player1,MALE)~ THEN REPLY #61480 /* ~He-he-he. Looks like you're in some trouble. And by the way, nice rack.~ */ DO ~MakeUnselectable(0)~ GOTO 172
  IF ~Gender(Player1,FEMALE)~ THEN REPLY #61484 /* ~Hah!  Looks like you're in some trouble now, wizard! I must admit, though, you've gained a fair shape.~ */ DO ~MakeUnselectable(0)~ GOTO 172
  IF ~Gender(Player1,MALE)~ THEN REPLY #61481 /* ~Edwin! Edwin! Calm down, calm down. We'll find a way to get you back to your original, not quite as pleasing to the eye shape.~ */ DO ~MakeUnselectable(0)~ GOTO 173
  IF ~Gender(Player1,FEMALE)~ THEN REPLY #61485 /* ~Edwin! Edwin! Calm down, calm down. We'll find a way to get you back to your original form.~ */ DO ~MakeUnselectable(0)~ GOTO 173
  IF ~~ THEN REPLY #61482 /* ~If you're a woman, you've no place amongst us.~ */ DO ~MakeUnselectable(0)~ GOTO 174
END

IF ~~ THEN BEGIN 172 // from: 171.1 171.0
  SAY #61483 /* ~What?! How dare you, scoundrel! Gawking at my mantle! (Hey, they aren't that bad come to think of it..wait a moment. What happened to my... oh no. No. NO!)~ */
  IF ~~ THEN GOTO 180
END

IF ~~ THEN BEGIN 173 // from: 174.1 171.3 171.2
  SAY #61486 /* ~You must find a way to cure this malignant ill! I would eternally grateful and bestow untold riches upon you and your kind.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 174 // from: 171.4
  SAY #61487 /* ~No! No! My moment of greatest need!  I plead you remain! I beg of you! Sweet merciful warriors! Virtuous crusaders! Clever cutpurses! Please!~ */
  IF ~~ THEN REPLY #61488 /* ~Get lost... and stay lost.~ */ GOTO 175
  IF ~~ THEN REPLY #61489 /* ~Alright then, stay with us. That was fun watching you beg though.~ */ GOTO 173
END

IF ~~ THEN BEGIN 175 // from: 174.0
  SAY #61490 /* ~I'll not coax sparks from carved sticks or farts from stones! My strange magics will free you from the surly bonds of earthly servitude!~ */
  IF ~~ THEN DO ~LeaveParty()
Enemy()~ EXIT
END

IF ~~ THEN BEGIN 176 // from: DEGARD:5.0 DEGARD:4.0 DEGARD:3.2
  SAY #61491 /* ~Traitors! Traitorous filth! Of all the low-down, double-dealing, twisted and perverted betrayals!  I WILL MAKE YOU PAY! DO YOU HEAR ME?!  I WILL MAKE YOU PAY!~ */
  IF ~~ THEN DO ~SetGlobal("TurnedInEdwin","GLOBAL",1)
LeaveParty()
Enemy()~ EXTERN ~DEGARD~ 6
END

IF ~~ THEN BEGIN 177 // from: DEGARD:7.0
  SAY #61492 /* ~What? I've no idea of what you are talking about. (What is this fool babbling to me for?)~ */
  IF ~~ THEN EXTERN ~DEGARD~ 8
END

IF ~~ THEN BEGIN 178 // from: DEGARD:8.0
  SAY #61493 /* ~Er... I am no Edwin, as you claim. I know him not. He sounds like a worthy mage of distinction, and I am probably weaker having not made his acquaintance.~ */
  IF ~~ THEN GOTO 181
END

IF ~~ THEN BEGIN 179 // from:
  SAY #61494 /* ~I am NOT!  Uh, I mean, bah!  Get out of my sight, you rotten urchin, before I fry you where you stand!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 180 // from: 172.0
  SAY #61495 /* ~Woman or not, my spellthrowing is unparalleled and will bring the wrath of cleansing hellfire upon you should the mood move me!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 181 // from: 178.0
  SAY #61496 /* ~My name is... Celisa of Waterdeep. Yes, daughter of... Kur..Kurdall Al... Ale... Kurdall Aleconnor, a wealthy mead-maker and owner of a chain of festhalls.~ */
  IF ~~ THEN GOTO 182
END

IF ~~ THEN BEGIN 182 // from: 181.0
  SAY #61497 /* ~No Edwin in our midst I'm most sorry to say. Only Celisa Aleconnor. You'd best be off to capture this Edwin. He sounds like a formidable foe.~ */
  IF ~~ THEN EXTERN ~DEGARD~ 9
END

IF ~~ THEN BEGIN 183 // from:
  SAY #61498 /* ~Why... I'm just fine, you -- (aargh!  hold your tongue, fool!)  Begone, you slithering eel!~ */
  IF ~~ THEN EXTERN ~SALVANAS~ 16
END

IF ~~ THEN BEGIN 184 // from:
  SAY #61499 /* ~I said begone!  Can you not understand the simplest of common, you lumbering piece of filth!~ */
  IF ~~ THEN EXTERN ~SALVANAS~ 17
END

IF ~~ THEN BEGIN 185 // from:
  SAY #61500 /* ~My, but you are a flatterer!  (Gah!)  I mean... stop it, get lost!  A fireball in your gullet would dampen your mood, lizard!!~ */
  IF ~~ THEN EXTERN ~SALVANAS~ 18
END

IF ~~ THEN BEGIN 186 // from:
  SAY #61501 /* ~GAAAAAHHHH!!  (Pig!)  NOW YOU DIE!!~ */
  IF ~~ THEN DO ~SpellNoDec("salvanas",WIZARD_MAGIC_MISSILE)~ EXIT
END

IF ~~ THEN BEGIN 187 // from:
  SAY #61502 /* ~Really?  That is the nicest... Gah!  Begone, wench!  (Although I always did think this robe fit rather well...)~ */
  IF ~~ THEN EXIT
END
