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

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

IF WEIGHT #0 ~Global("HiredByCowled","GLOBAL",0)
!Detect("Valygar")
!Global("ValygarGone","GLOBAL",1)
OR(2)
!InParty("Korgan")
!See("Korgan")~ THEN BEGIN 0 // from:
  SAY #11448 /* ~Ah, yes, I see Madeen has proven to be his faithful self, as usual.  How do you do, my <PRO_LADYLORD>, considering the city is so harsh on strangers, eh?~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToTolgerias","GLOBAL",1)
EraseJournalEntry(7994)
~ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 86.0 0.0
  SAY #18279 /* ~Perhaps Madeen has let slip a little of what this is about?  No?  Hmm.  Well, yes, I do have something I would like you very much to do, if you'd care to hear it.~ */
  IF ~~ THEN REPLY #18280 /* ~I'm here now, so you may as well tell me what you would have me do.~ */ GOTO 75
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #18281 /* ~First I would like to know where Imoen is.~ */ GOTO 3
  IF ~~ THEN REPLY #18282 /* ~Actually, I've changed my mind.  I'll be going.~ */ GOTO 4
END

IF ~~ THEN BEGIN 2 // from: YOSHJ:46.0 75.0
  SAY #18283 /* ~So what do you say, then, hm?  Agree to the task and I shall tell you all you need to know.~ */
  IF ~~ THEN REPLY #18284 /* ~How can I agree to a task if I do not even know what it is?~ */ GOTO 5
  IF ~~ THEN REPLY #18285 /* ~I would like to know what the reward is, then, before I agree to anything.~ */ GOTO 7
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #18286 /* ~I am leery of working for the people who kidnapped Imoen.  Tell me where she is, first.~ */ GOTO 3
  IF ~~ THEN REPLY #18287 /* ~If that is the way it must be, so be it.  You have my agreement.~ */ GOTO 9
END

IF ~~ THEN BEGIN 3 // from: 8.1 2.2 1.1
  SAY #18288 /* ~Imoen?  Ah... the girl arrested along with the wizard.  I do not have such inconsequential information on me, so put aside such demands.~ */
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #18290 /* ~I will not put it aside.  Either you tell me where Imoen is or you shall not receive my assistance.~ */ GOTO 14
  IF ~~ THEN REPLY #18291 /* ~If I must.  Tell me, then, what the reward is for this task of yours.~ */ GOTO 7
  IF ~~ THEN REPLY #18292 /* ~If I must.  But you put me in a difficult position, asking for a commitment to a task I know nothing about.~ */ GOTO 5
  IF ~~ THEN REPLY #18293 /* ~Very well.  I agree to perform your task, then.  Tell me what it is.~ */ GOTO 9
END

IF ~~ THEN BEGIN 4 // from: 1.2
  SAY #18294 /* ~Leaving so soon?  How... unfortunate.  You realize the reward the Cowled Wizards can offer for completing this task is considerable.  Can I change your mind, hm?~ */
  IF ~~ THEN REPLY #18295 /* ~Well, that depends.  Exactly what kind of reward are you talking about?~ */ GOTO 7
  IF ~~ THEN REPLY #18296 /* ~You ask me to commit to a task I know nothing of.  You are asking too much.~ */ GOTO 5
  IF ~~ THEN REPLY #18297 /* ~No, I don't think you can.  Another time, perhaps.~ */ GOTO 15
END

IF ~~ THEN BEGIN 5 // from: 26.1 25.1 14.2 8.0 4.1 3.2 2.0
  SAY #18298 /* ~Yes, it is a lot for even I to ask, eh?   You are more than capable of performing this task and it will conflict with none of your current loyalties.~ */
  IF ~!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("HaerDalis")~ THEN GOTO 6
  IF ~IsValidForPartyDialog("Edwin")~ THEN EXTERN ~EDWINJ~ 48
  IF ~!IsValidForPartyDialog("Edwin")
IsValidForPartyDialog("HaerDalis")~ THEN EXTERN ~HAERDAJ~ 62
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #18299 /* ~And you would garner the goodwill of the Cowled Wizards... not to mention a substantial reward.  But if you are determined to refuse, I certainly cannot stop you.~ */
  IF ~~ THEN REPLY #18300 /* ~That is true.  I shall be on my way, then.~ */ GOTO 15
  IF ~~ THEN REPLY #18301 /* ~I would know more of this reward before I agree.~ */ GOTO 7
  IF ~~ THEN REPLY #18302 /* ~Alright, then.  I agree to perform this task.  Tell me what you would have me do.~ */ GOTO 9
END

IF ~~ THEN BEGIN 7 // from: 25.0 14.1 6.1 4.0 3.1 2.1
  SAY #18303 /* ~The reward...  adventurers have much use for items the Cowled Wizards hold.  It is sad that magic is so despised in Athkatla, for it has many uses.~ */
  IF ~!IsValidForPartyDialog("Korgan")~ THEN GOTO 8
  IF ~IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 71
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #18304 /* ~We will offer you an item of substantial magical power as well as a good deal of gold coin.  But, again, I must have your word on the matter before I continue.~ */
  IF ~~ THEN REPLY #18308 /* ~I do not know how I can give my word on a matter I know nothing of.~ */ GOTO 5
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #18309 /* ~Perhaps if you tell me of Imoen's location it will convince me to agree.~ */ GOTO 3
  IF ~~ THEN REPLY #18310 /* ~Forget it, then.  I'll be on my way.~ */ GOTO 15
  IF ~~ THEN REPLY #18311 /* ~If that is how it must be, then I agree.  You have my word.~ */ GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 26.2 25.3 14.3 8.3 6.2 3.3 2.3
  SAY #18305 /* ~Excellent.  Your agreement means that the Cowled Wizards shall hold you to your word.  This matter must be handled with discretion and expediency.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #18307 /* ~There is something that has been plaguing us for more than a week, now, and has become quite alarming.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #18312 /* ~You know of the prevailing attitude against magic here in Amn, yes?  Well, amongst some it is even worse than that... a burning, palpable hatred.~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #18313 /* ~One particular man here in Athkatla has murdered two of our number in cold blood.  He is currently in hiding, and we need you to track the fellow down.~ */
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #18314 /* ~We have been unable to do so, much to our frustration.  Cowled Wizards cannot be assaulted without repercussions or it will lead to... serious problems.~ */
  IF ~~ THEN REPLY #18315 /* ~Who is this murderer, then, and how am I supposed to track him down when you failed?~ */ GOTO 16
  IF ~False()~ THEN REPLY #18316 /* ~I am no assassin.  Why have you hired me to do this?~ */ GOTO 18
  IF ~False()~ THEN REPLY #18317 /* ~Is there anything else that I should be aware of?~ */ GOTO 20
END

IF ~~ THEN BEGIN 14 // from: 3.0
  SAY #18318 /* ~(sigh)  I will look into the matter for you if you perform this task.  However I can guarantee nothing.  If this means we do not work together, so be it.~ */
  IF ~~ THEN REPLY #18319 /* ~That is exactly what it means.  Excuse me, I'll be on my way.~ */ UNSOLVED_JOURNAL #8126 /* ~Meet with Tolgerias the Cowled Wizard.

Tolgerias, the Cowled Wizard in the government building, has promised to find some information out on Imoen if I perform the service that he is asking of me.~ */ GOTO 15
  IF ~~ THEN REPLY #18320 /* ~I had hoped differently, but a chance is better than nothing.  Tell me more about the reward and I may be more inclined.~ */ DO ~SetGlobal("Tolgeriaspromised","GLOBAL",1)~ UNSOLVED_JOURNAL #8126 /* ~Meet with Tolgerias the Cowled Wizard.

Tolgerias, the Cowled Wizard in the government building, has promised to find some information out on Imoen if I perform the service that he is asking of me.~ */ GOTO 7
  IF ~~ THEN REPLY #18321 /* ~It galls me greatly, and it is even worse that you ask for a blind leap of faith from me.  How can I agree to something I am not even sure I can do?~ */ DO ~SetGlobal("Tolgeriaspromised","GLOBAL",1)~ UNSOLVED_JOURNAL #8126 /* ~Meet with Tolgerias the Cowled Wizard.

Tolgerias, the Cowled Wizard in the government building, has promised to find some information out on Imoen if I perform the service that he is asking of me.~ */ GOTO 5
  IF ~~ THEN REPLY #18322 /* ~If there is a chance that I will find out more, then I agree to do your task, wizard.~ */ DO ~SetGlobal("Tolgeriaspromised","GLOBAL",1)~ UNSOLVED_JOURNAL #8126 /* ~Meet with Tolgerias the Cowled Wizard.

Tolgerias, the Cowled Wizard in the government building, has promised to find some information out on Imoen if I perform the service that he is asking of me.~ */ GOTO 9
END

IF ~~ THEN BEGIN 15 // from: 14.0 8.2 6.0 4.2
  SAY #18323 /* ~(sigh)  As you wish.  It confounds me you would be so dense, but if you change your mind I will be here for some time yet.  Off you go, fool.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 16 // from: 20.0 19.0 13.0
  SAY #18324 /* ~He is Valygar Corthala, last son of a wealthy family and a true brute.   Ask around and you may discover if he is hiding within the city or someplace else.~ */
  IF ~~ THEN GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #18326 /* ~He has a home in the Docks district, or he may have fled to the Umar Hills.  His friends and servants will not speak to us, but they may to you.~ */
  IF ~~ THEN REPLY #18327 /* ~And just what am I supposed to do with this Valygar fellow once I find him?  I am no murderer.~ */ DO ~RevealAreaOnMap("AR1100")~ GOTO 18
  IF ~~ THEN REPLY #18328 /* ~Is there anything else I should know about?~ */ DO ~RevealAreaOnMap("AR1100")~ GOTO 20
  IF ~~ THEN REPLY #18335 /* ~Very well.  I shall track this murderer down and procure him for you.~ */ DO ~RevealAreaOnMap("AR1100")~ GOTO 21
  IF ~~ THEN REPLY #18336 /* ~I refuse to hunt this man down, regardless of what I said earlier.~ */ DO ~RevealAreaOnMap("AR1100")~ GOTO 22
END

IF ~~ THEN BEGIN 18 // from: 20.1 17.0 13.1
  SAY #18329 /* ~We do not ask that you commit any murder.  We wish Valygar be delivered to us, that is all.  He will likely resist, so if you must kill him so be it.~ */
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Jaheira")~ THEN GOTO 19
  IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 107
  IF ~!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~MAZZYJ~ 125
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 361
END

IF ~~ THEN BEGIN 19 // from: 18.0
  SAY #18330 /* ~But if you do kill him, I simply must have his body.  Valygar must be delivered to us whether he is dead or alive, you understand, yes?~ */
  IF ~~ THEN REPLY #18332 /* ~Tell me more about this Valygar fellow.  Who is he and how am I supposed to find him where you failed?~ */ GOTO 16
  IF ~~ THEN REPLY #18333 /* ~Is there anything else I should know?~ */ GOTO 20
  IF ~~ THEN REPLY #18334 /* ~Very well, then.  I shall do my best to procure this murderer for you.~ */ GOTO 21
  IF ~~ THEN REPLY #18331 /* ~I have no interest in performing this ghoulish task.  I will not hunt this man down for you, regardless of what I said earlier.~ */ GOTO 22
END

IF ~~ THEN BEGIN 20 // from: 19.1 17.1 13.2
  SAY #18337 /* ~There is nothing I can think of.  Perform your promised task, and the Cowled Wizards shall be pleased.~ */
  IF ~~ THEN REPLY #18338 /* ~Tell me more about this target of mine, then, and what convinces you I can find answers where you cannot.~ */ GOTO 16
  IF ~~ THEN REPLY #18339 /* ~And once I have found this fellow... what am I to do with him?~ */ GOTO 18
  IF ~~ THEN REPLY #18340 /* ~Very well.  I will hunt this murderer down and return him to you.~ */ GOTO 21
  IF ~~ THEN REPLY #18341 /* ~I have changed my mind.  I shall not perform this hunt, regardless of what I said earlier.~ */ GOTO 22
END

IF ~~ THEN BEGIN 21 // from: 20.2 19.2 17.2
  SAY #18342 /* ~You gave your word, so I expect nothing less.  I await the sight of this murderer's body soon.~ */
  IF ~!IsValidForPartyDialog("Korgan")~ THEN DO ~SetGlobal("HiredByCowled","GLOBAL",1)
~ UNSOLVED_JOURNAL #7995 /* ~The hunt for Valygar Corthala.

I have agreed to find a man named Valygar Corthala, a murderer who has killed two Cowled Wizards, and bring him dead or alive to Tolgerias in the government building in the Government District.  According to the wizard, Valygar holds a great hatred of magic... and since wizards are distrusted in the city in general, he feels I will have a far better chance than most in tracking down the man.
According to the wizard, Valygar comes from a noble family, and may be hiding in the city or outside.  One clue, at least, is that he has a house in the Docks district... perhaps a place to start looking.~ */ EXIT
  IF ~IsValidForPartyDialog("Korgan")~ THEN DO ~SetGlobal("HiredByCowled","GLOBAL",1)~ UNSOLVED_JOURNAL #7995 /* ~The hunt for Valygar Corthala.

I have agreed to find a man named Valygar Corthala, a murderer who has killed two Cowled Wizards, and bring him dead or alive to Tolgerias in the government building in the Government District.  According to the wizard, Valygar holds a great hatred of magic... and since wizards are distrusted in the city in general, he feels I will have a far better chance than most in tracking down the man.
According to the wizard, Valygar comes from a noble family, and may be hiding in the city or outside.  One clue, at least, is that he has a house in the Docks district... perhaps a place to start looking.~ */ EXTERN ~KORGANJ~ 219
END

IF ~~ THEN BEGIN 22 // from: 34.1 33.1 28.4 20.3 19.3 17.3
  SAY #18343 /* ~Hmph.  Such a declaration is dangerous, my <PRO_LADYLORD>.  The Cowled Wizards will not treat treachery lightly.   Return to your task, or things will get ... unpleasant.~ */
  IF ~~ THEN REPLY #18344 /* ~If you'll force me, then I suppose I have little choice.~ */ GOTO 23
  IF ~~ THEN REPLY #18345 /* ~I'll not be coerced in such a manner, fool.  I have dealt with far greater powers than a group of wizards!~ */ GOTO 24
END

IF ~~ THEN BEGIN 23 // from: 22.0
  SAY #18346 /* ~Aye, we will if need be.  This is a delicate matter, and we shall not allow it to be dealt with callously.  Perform your task, or suffer our wrath.  Go.~ */
  IF ~!IsValidForPartyDialog("Korgan")~ THEN DO ~SetGlobal("HiredByCowled","GLOBAL",1)~ UNSOLVED_JOURNAL #7995 /* ~The hunt for Valygar Corthala.

I have agreed to find a man named Valygar Corthala, a murderer who has killed two Cowled Wizards, and bring him dead or alive to Tolgerias in the government building in the Government District.  According to the wizard, Valygar holds a great hatred of magic... and since wizards are distrusted in the city in general, he feels I will have a far better chance than most in tracking down the man.
According to the wizard, Valygar comes from a noble family, and may be hiding in the city or outside.  One clue, at least, is that he has a house in the Docks district... perhaps a place to start looking.~ */ EXIT
  IF ~IsValidForPartyDialog("Korgan")~ THEN DO ~SetGlobal("HiredByCowled","GLOBAL",1)~ UNSOLVED_JOURNAL #7995 /* ~The hunt for Valygar Corthala.

I have agreed to find a man named Valygar Corthala, a murderer who has killed two Cowled Wizards, and bring him dead or alive to Tolgerias in the government building in the Government District.  According to the wizard, Valygar holds a great hatred of magic... and since wizards are distrusted in the city in general, he feels I will have a far better chance than most in tracking down the man.
According to the wizard, Valygar comes from a noble family, and may be hiding in the city or outside.  One clue, at least, is that he has a house in the Docks district... perhaps a place to start looking.~ */ EXTERN ~KORGANJ~ 219
END

IF ~~ THEN BEGIN 24 // from: 22.1
  SAY #18347 /* ~We shall see about that, fool!~ */
  IF ~~ THEN DO ~SetInterrupt(False)
SetGlobal("HiredByCowled","GLOBAL",0)
ForceSpell(Myself,DRYAD_TELEPORT)
SetInterrupt(True)
~ UNSOLVED_JOURNAL #8127 /* ~The hunt for Valygar Corthala.

It appears that Tolgerias, a Cowled Wizard, has taken my promise to perform an unnamed service for him seriously.  He had asked me to track down a man by the name of Valygar Corthala and bring him back dead or alive.  I refused... and may face retaliation from the Cowled Wizards as a result.~ */ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 85 even though they appear after this state */
~NumTimesTalkedToGT(0)
Global("HiredByCowled","GLOBAL",0)
!Detect("Valygar")
!Global("ValygarGone","GLOBAL",1)~ THEN BEGIN 25 // from:
  SAY #18348 /* ~You have returned, I see.  Ah, very good, yes.  You have changed your mind regarding our offer, yes?~ */
  IF ~~ THEN REPLY #18349 /* ~Perhaps.  I wish to know about the reward that is being offered.~ */ GOTO 7
  IF ~~ THEN REPLY #18350 /* ~I still think it is too much to ask to have me agree to something I have no knowledge of.~ */ GOTO 5
  IF ~~ THEN REPLY #18351 /* ~Actually, no, I have not.  I shall be leaving, now.~ */ GOTO 26
  IF ~~ THEN REPLY #18352 /* ~Yes, I have.  I agree to perform this task of yours.  Tell me what you would have me do.~ */ GOTO 9
END

IF ~~ THEN BEGIN 26 // from: 25.2
  SAY #18353 /* ~You waste my time yet again?!  This grows near the point of outrage, my <PRO_LADYLORD>!  I will give you one last chance to change your mind.~ */
  IF ~~ THEN REPLY #18354 /* ~I will not.  I refuse to agree to your terms.~ */ GOTO 27
  IF ~~ THEN REPLY #18355 /* ~It is too much for you to ask for me to agree to something I know nothing of!  How do I even know I can perform this task?~ */ GOTO 5
  IF ~~ THEN REPLY #18356 /* ~I have no desire to upset the Cowled Wizards.  I suppose I must agree to perform this task of yours, if that is how it must be.~ */ GOTO 9
END

IF ~~ THEN BEGIN 27 // from: 26.0
  SAY #18357 /* ~Then begone!  And return not to my sight!~ */
  IF ~~ THEN DO ~SetInterrupt(False)
ActionOverride("Madeen",EscapeArea())
ForceSpell(Myself,DRYAD_TELEPORT)
SetInterrupt(True)
~ EXIT
END

IF WEIGHT #6 /* Triggers after states #: 47 77 79 85 even though they appear after this state */
~Global("HiredByCowled","GLOBAL",1)
!PartyHasItem("MISC7L")
!Detect("Valygar")
!Global("ValygarGone","GLOBAL",1)~ THEN BEGIN 28 // from:
  SAY #18358 /* ~Yes?  I see that you have come before me, but I do not spy the murderer in your possession.  What is amiss?~ */
  IF ~Global("ValygarHome","GLOBAL",1)~ THEN REPLY #18360 /* ~I have discovered the location of Valygar, but I cannot bring him to you.  I will, however, tell you of his location in return for the reward.~ */ GOTO 30
  IF ~Global("ValygarHome","GLOBAL",1)~ THEN REPLY #18362 /* ~I have found Valygar, that is true, but I have decided not to bring him to you.  You lied about a great many things, wizard, and I refuse to be used.~ */ GOTO 29
  IF ~~ THEN REPLY #18363 /* ~I am still searching for him.  I wish to know more about my target, however.~ */ GOTO 32
  IF ~~ THEN REPLY #18364 /* ~I am still searching for him.  I would like to know, however, what you wish me to do with him once he is found.~ */ GOTO 34
  IF ~~ THEN REPLY #18365 /* ~I have decided that this errand of yours is not worth my time.  Find someone else to do your work for you.~ */ GOTO 22
  IF ~Dead("valygar")~ THEN REPLY #18399 /* ~Valygar is dead, but I was unable to bring his body here.  I shall tell you where his body lies.~ */ GOTO 41
  IF ~Dead("valygar")~ THEN REPLY #18400 /* ~Valygar is dead, but I have hidden his body.  I know what you need it for, wizard, and I desire a larger reward before I hand it over to you.~ */ GOTO 42
  IF ~Dead("valygar")~ THEN REPLY #18402 /* ~Valygar is dead, but his body has been destroyed.  I cannot do as you ask.~ */ GOTO 40
  IF ~~ THEN REPLY #18367 /* ~Nothing is wrong.  I shall return to my search.~ */ GOTO 35
END

IF ~~ THEN BEGIN 29 // from: 42.1 31.4 28.1
  SAY #18368 /* ~Then I shall discover his location by questioning your dead corpse, fool!  I shall not be deterred by the likes of you!~ */
  IF ~~ THEN DO ~SetInterrupt(False)
SetGlobal("BetrayedCowled","GLOBAL",1)
ForceSpell(Myself,DRYAD_TELEPORT)
SetInterrupt(True)
~ UNSOLVED_JOURNAL #8128 /* ~The hunt for Valygar Corthala.

Tolgerias has stormed off, accusing me of betraying him and the Cowled Wizards... something I may come to regret if they decide to retaliate against me for it.~ */ EXIT
END

IF ~~ THEN BEGIN 30 // from: 28.0
  SAY #18369 /* ~Ah, yes?  I suppose that would do almost as well.  I agree to your terms, so long as you tell me the truth of Valygar's location.~ */
  IF ~~ THEN GOTO 31
END

IF ~~ THEN BEGIN 31 // from: 30.0
  SAY #18370 /* ~I warn you, however, not to lie to me.  I will know the truth of your words.  So, then... where is the fool?~ */
  IF ~Global("ValygarHome","GLOBAL",1)~ THEN REPLY #18372 /* ~He is currently in his home in the Docks District, but he will not be there for very long.~ */ GOTO 36
  IF ~~ THEN REPLY #18374 /* ~I do not know his exact location, but he has returned to Athkatla.  The servant in his home will know exactly where he is, I am told.~ */ GOTO 38
  IF ~~ THEN REPLY #18376 /* ~He is in a cabin in the Umar Hills area, hiding out.~ */ GOTO 38
  IF ~~ THEN REPLY #18377 /* ~He has left the area and traveled south to Tethyr.~ */ GOTO 40
  IF ~~ THEN REPLY #18378 /* ~Forget it, I shall tell you nothing of his location.~ */ GOTO 29
END

IF ~~ THEN BEGIN 32 // from: 34.0 28.2
  SAY #18379 /* ~The murderer's name is Valygar Corthala, last member of a once wealthy family.  Beyond that, I only know he is a brute and a fighter of some prowess.~ */
  IF ~~ THEN GOTO 33
END

IF ~~ THEN BEGIN 33 // from: 32.0
  SAY #18380 /* ~You can likely find out much more than us, yes?  The people of Athkatla hold us in disregard and will say nothing of any use.~ */
  IF ~~ THEN REPLY #18381 /* ~Perhaps you could tell me what I am supposed to do with him once he is found.~ */ GOTO 34
  IF ~~ THEN REPLY #18382 /* ~I have decided to end my work on this task.  Find someone else to do it for you.~ */ GOTO 22
  IF ~~ THEN REPLY #18383 /* ~I see.  I shall return to my search, then.~ */ GOTO 35
END

IF ~~ THEN BEGIN 34 // from: 33.0 28.3
  SAY #18385 /* ~It is very simple, my <PRO_LADYLORD>. Return him to me, dead or alive.  I would prefer alive, but I must have his body, otherwise.  You understand this?~ */
  IF ~~ THEN REPLY #18387 /* ~I do.  Perhaps you could tell me more about my target, however.~ */ GOTO 32
  IF ~~ THEN REPLY #18388 /* ~I am no bounty hunter.  I refuse to continue with this task.  Find someone else to perform your dirty work.~ */ GOTO 22
  IF ~~ THEN REPLY #18390 /* ~I understand.  I shall continue with my search.~ */ GOTO 35
END

IF ~~ THEN BEGIN 35 // from: 34.2 33.2 28.8
  SAY #18391 /* ~Very good.  Do not make us wait overlong, my <PRO_LADYLORD>, or we shall get very upset.  After that, things would become... dangerous.  Begone.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 36 // from: 31.0
  SAY #18392 /* ~Most excellent!  I shall go and retrieve him shortly.  Very well, <CHARNAME>, you have earned your reward.~ */
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
OR(2)
!IsValidForPartyDialog("Aerie")
!CheckStatLT(Player1,13,CHR)~ THEN DO ~ReputationInc(-1)
EraseJournalEntry(6534)
EraseJournalEntry(7994)
EraseJournalEntry(7995)
EraseJournalEntry(8126)
EraseJournalEntry(8127)
EraseJournalEntry(8128)
EraseJournalEntry(8129)
EraseJournalEntry(10128)
EraseJournalEntry(16302)
EraseJournalEntry(16343)
EraseJournalEntry(16524)
EraseJournalEntry(16544)
EraseJournalEntry(16569)
EraseJournalEntry(20179)
EraseJournalEntry(20365)
EraseJournalEntry(20453)
EraseJournalEntry(23371)
EraseJournalEntry(23409)~ SOLVED_JOURNAL #15714 /* ~The hunt for Valygar is over.

I have informed Tolgerias, a Cowled Wizard, of the location of Valygar here in the city.  Despite the fact that I did not bring them the ranger's body, it was good enough for the wizard and I received my reward.  He left immediately... likely to capture the ranger and use him for whatever purposes he had intended.~ */ GOTO 37
  IF ~IsValidForPartyDialog("Keldorn")~ THEN DO ~ReputationInc(-1)
EraseJournalEntry(6534)
EraseJournalEntry(7994)
EraseJournalEntry(7995)
EraseJournalEntry(8126)
EraseJournalEntry(8127)
EraseJournalEntry(8128)
EraseJournalEntry(8129)
EraseJournalEntry(10128)
EraseJournalEntry(16302)
EraseJournalEntry(16343)
EraseJournalEntry(16524)
EraseJournalEntry(16544)
EraseJournalEntry(16569)
EraseJournalEntry(20179)
EraseJournalEntry(20365)
EraseJournalEntry(20453)
EraseJournalEntry(23371)
EraseJournalEntry(23409)~ SOLVED_JOURNAL #15714 /* ~The hunt for Valygar is over.

I have informed Tolgerias, a Cowled Wizard, of the location of Valygar here in the city.  Despite the fact that I did not bring them the ranger's body, it was good enough for the wizard and I received my reward.  He left immediately... likely to capture the ranger and use him for whatever purposes he had intended.~ */ EXTERN ~KELDORJ~ 108
  IF ~!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Mazzy")~ THEN DO ~ReputationInc(-1)
EraseJournalEntry(6534)
EraseJournalEntry(7994)
EraseJournalEntry(7995)
EraseJournalEntry(8126)
EraseJournalEntry(8127)
EraseJournalEntry(8128)
EraseJournalEntry(8129)
EraseJournalEntry(10128)
EraseJournalEntry(16302)
EraseJournalEntry(16343)
EraseJournalEntry(16524)
EraseJournalEntry(16544)
EraseJournalEntry(16569)
EraseJournalEntry(20179)
EraseJournalEntry(20365)
EraseJournalEntry(20453)
EraseJournalEntry(23371)
EraseJournalEntry(23409)~ SOLVED_JOURNAL #15714 /* ~The hunt for Valygar is over.

I have informed Tolgerias, a Cowled Wizard, of the location of Valygar here in the city.  Despite the fact that I did not bring them the ranger's body, it was good enough for the wizard and I received my reward.  He left immediately... likely to capture the ranger and use him for whatever purposes he had intended.~ */ EXTERN ~MAZZYJ~ 126
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
IsValidForPartyDialog("Aerie")
CheckStatLT(Player1,13,CHR)~ THEN DO ~ReputationInc(-1)
EraseJournalEntry(6534)
EraseJournalEntry(7994)
EraseJournalEntry(7995)
EraseJournalEntry(8126)
EraseJournalEntry(8127)
EraseJournalEntry(8128)
EraseJournalEntry(8129)
EraseJournalEntry(10128)
EraseJournalEntry(16302)
EraseJournalEntry(16343)
EraseJournalEntry(16524)
EraseJournalEntry(16544)
EraseJournalEntry(16569)
EraseJournalEntry(20179)
EraseJournalEntry(20365)
EraseJournalEntry(20453)
EraseJournalEntry(23371)
EraseJournalEntry(23409)~ SOLVED_JOURNAL #15714 /* ~The hunt for Valygar is over.

I have informed Tolgerias, a Cowled Wizard, of the location of Valygar here in the city.  Despite the fact that I did not bring them the ranger's body, it was good enough for the wizard and I received my reward.  He left immediately... likely to capture the ranger and use him for whatever purposes he had intended.~ */ EXTERN ~AERIEJ~ 58
END

IF ~~ THEN BEGIN 37 // from: 47.0 36.0
  SAY #18393 /* ~You have pleased both myself and the Cowled Wizards with your co-operation.  Speak of this to no one, however, or you will suffer our wrath.~ */
  IF ~GlobalLT("chapter","GLOBAL",4)
Global("Tolgeriaspromised","GLOBAL",1)~ THEN REPLY #42508 /* ~You said you could look into Imoen's location for me if I did as you asked, and I have done it.~ */ DO ~GiveGoldForce(500)
GiveItemCreate("ring33",LastTalkedToBy,1,0,0)
SetGlobal("BetrayedValygar","GLOBAL",1)~ GOTO 69
  IF ~GlobalLT("chapter","GLOBAL",4)
Global("Tolgeriaspromised","GLOBAL",0)~ THEN REPLY #42509 /* ~I have done as you asked and proven myself to you... now, I want to know what you've done with Imoen.~ */ DO ~GiveGoldForce(500)
GiveItemCreate("ring33",LastTalkedToBy,1,0,0)
SetGlobal("BetrayedValygar","GLOBAL",1)~ GOTO 70
  IF ~~ THEN REPLY #42511 /* ~Very well, I'll be on my way, then.~ */ DO ~GiveGoldForce(500)
GiveItemCreate("ring33",LastTalkedToBy,1,0,0)
SetGlobal("BetrayedValygar","GLOBAL",1)~ GOTO 76
END

IF ~~ THEN BEGIN 38 // from: 42.2 41.0 31.2 31.1
  SAY #18395 /* ~Bah!  More clues for us to follow?!  This is not what we asked of you!~ */
  IF ~~ THEN GOTO 39
END

IF ~~ THEN BEGIN 39 // from: 38.0
  SAY #18396 /* ~We shall follow this up, to be certain.  You, however, deserve nothing other than the silence of the grave!~ */
  IF ~~ THEN DO ~EraseJournalEntry(6534)
EraseJournalEntry(7994)
EraseJournalEntry(7995)
EraseJournalEntry(8126)
EraseJournalEntry(8127)
EraseJournalEntry(8128)
EraseJournalEntry(8129)
EraseJournalEntry(10128)
EraseJournalEntry(16302)
EraseJournalEntry(16343)
EraseJournalEntry(16524)
EraseJournalEntry(16544)
EraseJournalEntry(16569)
EraseJournalEntry(20179)
EraseJournalEntry(20365)
EraseJournalEntry(20453)
EraseJournalEntry(23371)
EraseJournalEntry(23409)
SetGlobal("BetrayedValygar","GLOBAL",1)
ForceSpell(Myself,DRYAD_TELEPORT)~ SOLVED_JOURNAL #15693 /* ~The hunt for Valygar is over.

I tried to tell the Cowled Wizard Tolgerias where Valygar could be found, but the wizard obviously had expected me to bring his body only.  He has stormed off to look into the matter, refusing to reward me... I suspect I shall face repercussions from the Cowled Wizards, as well.  I doubt I shall see Valygar again.~ */ EXIT
END

IF ~~ THEN BEGIN 40 // from: 31.3 28.7
  SAY #18397 /* ~You lie!  Fool, you shall suffer the wrath of the Cowled Wizards!~ */
  IF ~~ THEN DO ~SetGlobal("BetrayedCowled","GLOBAL",1)
SetGlobal("CowledHQ","GLOBAL",1)
ForceSpell(Myself,DRYAD_TELEPORT)~ UNSOLVED_JOURNAL #6509 /* ~The hunt for Valygar Corthala.

I attempted to misdirect Tolgerias in his search for Valygar, but the mage obviously detected my lie.  He has stormed off, accusing me of betraying the wizards... something I shall no doubt feel repercussions for in the future.~ */ EXIT
END

IF ~~ THEN BEGIN 41 // from: 28.5
  SAY #18401 /* ~That was the best that you could do?? The stories of your prowess are greatly exaggerated! Bah! Tell me where the body is, you ineffective fool.~ */
  IF ~~ THEN REPLY #50107 /* ~I shall mark it on your map.~ */ GOTO 38
  IF ~~ THEN REPLY #50109 /* ~I shall tell you for more treasure.~ */ GOTO 42
END

IF ~~ THEN BEGIN 42 // from: 41.1 28.6
  SAY #18403 /* ~Of all the... Ignorant troglodyte!  Do you not understand the important of what lies inside that sphere?!  Tell me where the body is or suffer our wrath!~ */
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)~ THEN REPLY #18404 /* ~I will not.  Give me a larger reward or you shall never get inside the sphere.~ */ GOTO 43
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)~ THEN REPLY #18410 /* ~I will not.  Give me a larger reward or you shall never get inside the sphere.~ */ GOTO 29
  IF ~~ THEN REPLY #18406 /* ~Very well, I've no desire to upset you further.  Here is the location of the body.~ */ GOTO 38
END

IF ~~ THEN BEGIN 43 // from: 42.0
  SAY #18408 /* ~Bah!~ */
  IF ~~ THEN GOTO 44
END

IF ~~ THEN BEGIN 44 // from: 43.0
  SAY #18409 /* ~You win, fool.  But the Cowled Wizards shall remember this betrayal.  Here is a ring in exchange for the body.  Now begone from my sight ere I change my mind.~ */
  IF ~~ THEN DO ~SetInterrupt(False)
GiveGoldForce(500)
GiveItemCreate("ring33",LastTalkedToBy,1,0,0)
SetGlobal("BetrayedCowled","GLOBAL",1)
SetGlobal("BetrayedValygar","GLOBAL",1)
ForceSpell(Myself,DRYAD_TELEPORT)
SetInterrupt(True)
~ EXIT
END

IF WEIGHT #7 /* Triggers after states #: 47 77 79 85 even though they appear after this state */
~Global("HiredByCowled","GLOBAL",1)
PartyHasItem("MISC7L")~ THEN BEGIN 45 // from:
  SAY #18411 /* ~Ah!  I see that you have returned.  And returned with the murderer's body in your possession.  Most excellent.~ */
  IF ~~ THEN REPLY #18412 /* ~Never mind the murderer business.  I know what you need Valygar's body for.  I require a larger reward or you will not get this body.~ */ GOTO 46
  IF ~~ THEN REPLY #18413 /* ~Very well, here you go.~ */ DO ~

~ GOTO 47
END

IF ~~ THEN BEGIN 46 // from: 45.0
  SAY #18414 /* ~Fool!  I shall not be deterred by the likes of you!  We shall have a reckoning... elsewhere.  And then I shall take the ranger from your dead hands if need be!~ */
  IF ~~ THEN DO ~SetGlobal("BetrayedCowled","GLOBAL",1)
ForceSpell(Myself,DRYAD_TELEPORT)
~ UNSOLVED_JOURNAL #8128 /* ~The hunt for Valygar Corthala.

Tolgerias has stormed off, accusing me of betraying him and the Cowled Wizards... something I may come to regret if they decide to retaliate against me for it.~ */ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 85 even though they appear after this state */
~Global("ValygarGone","GLOBAL",1)~ THEN BEGIN 47 // from: 45.1
  SAY #18415 /* ~This body will ensure an era of power for the Cowled Wizards unlike any other known!  You have earned your reward, my <PRO_LADYLORD>!~ */
  IF ~~ THEN DO ~EraseJournalEntry(6534)
EraseJournalEntry(7994)
EraseJournalEntry(7995)
EraseJournalEntry(8126)
EraseJournalEntry(8127)
EraseJournalEntry(8128)
EraseJournalEntry(8129)
EraseJournalEntry(10128)
EraseJournalEntry(16302)
EraseJournalEntry(16343)
EraseJournalEntry(16524)
EraseJournalEntry(16544)
EraseJournalEntry(16569)
EraseJournalEntry(20179)
EraseJournalEntry(20365)
EraseJournalEntry(20453)
EraseJournalEntry(23371)
EraseJournalEntry(23409)
TakePartyItem("MISC7L")
AddExperienceParty(11250)
ReputationInc(-1)~ SOLVED_JOURNAL #3654 /* ~The hunt for Valygar is over.

I have hunted down the ranger, Valygar Corthala, and returned his body to the Cowled Wizard, Tolgerias, in return for a reward and some information.~ */ GOTO 37
END

IF WEIGHT #8 /* Triggers after states #: 77 79 85 even though they appear after this state */
~Global("HiredByCowled","GLOBAL",0)
PartyHasItem("MISC7M")
!Detect("Valygar")
!Global("ValygarGone","GLOBAL",1)~ THEN BEGIN 48 // from:
  SAY #19337 /* ~Hold!  You will tell me who you are at once!~ */
  IF ~~ THEN REPLY #19338 /* ~I think I would ask you the same question!~ */ GOTO 49
  IF ~~ THEN REPLY #19339 /* ~I am <CHARNAME>, who are you?~ */ GOTO 50
  IF ~~ THEN REPLY #19340 /* ~Back off or suffer the consequences!~ */ GOTO 51
END

IF ~~ THEN BEGIN 49 // from: 48.0
  SAY #19341 /* ~Do not think to make demands of me, fool!  You will tell me who you are instantly or suffer the full wrath of the Cowled Wizards!~ */
  IF ~~ THEN REPLY #19342 /* ~I am <CHARNAME>, and I would like to know what you're doing here.~ */ GOTO 50
  IF ~~ THEN REPLY #19343 /* ~I'll tell you nothing, wizard!~ */ GOTO 51
END

IF ~~ THEN BEGIN 50 // from: 49.0 48.1
  SAY #19352 /* ~I am Master Tolgerias of the Cowled Wizards, and I seek the murderer of two of our order.  I suspect that you, too, are seeking Valygar Corthala, no?~ */
  IF ~~ THEN REPLY #19373 /* ~Actually, no... I am just curious.~ */ GOTO 52
  IF ~~ THEN REPLY #19374 /* ~I much prefer liberating the man of his belongings.  Excuse me while I continue.~ */ GOTO 52
  IF ~Global("TalkedToHervo","GLOBAL",1)~ THEN REPLY #19375 /* ~Murderer, is it?  That is not what I heard of him.~ */ GOTO 53
  IF ~~ THEN REPLY #19376 /* ~No, I'm not.  And I'll be leaving, now.~ */ GOTO 55
END

IF ~~ THEN BEGIN 51 // from: 66.0 62.1 55.2 49.1 48.2
  SAY #19378 /* ~You dare to challenge the might of the Cowled Wizards?!~ */
  IF ~~ THEN DO ~SetGlobal("AttackedByCowled","GLOBAL",1)
ForceSpell(Myself,DRYAD_TELEPORT)~ EXIT
END

IF ~~ THEN BEGIN 52 // from: 50.1 50.0
  SAY #19379 /* ~I... I see.  We are more than a little interested in finding this murderer.  Perhaps you might be amenable to assisting us in this endeavour?~ */
  IF ~~ THEN REPLY #19380 /* ~Why do you need help in finding him?~ */ GOTO 56
  IF ~~ THEN REPLY #19382 /* ~I might be.  What is in it for me?~ */ GOTO 58
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #19408 /* ~Members of your order arrested a friend of mine, Imoen.  I want to know where she is before I agree to do anything.~ */ GOTO 60
  IF ~~ THEN REPLY #19383 /* ~I've no interest in undertaking any tasks.  I go where I please.~ */ GOTO 55
END

IF ~~ THEN BEGIN 53 // from: 50.2
  SAY #19384 /* ~Still, the man is a murderer.  The Cowled Wizards cannot allow one such as he to run free or all in this city will think it permissible to stand against us.~ */
  IF ~~ THEN GOTO 54
END

IF ~~ THEN BEGIN 54 // from: 53.0
  SAY #19385 /* ~We require one such as yourself to assist us in finding this Valygar.  Would you be amenable to undertaking such a task?~ */
  IF ~~ THEN REPLY #19387 /* ~Why would you need my assistance?~ */ GOTO 56
  IF ~~ THEN REPLY #19388 /* ~And just what would I get in return for doing this?~ */ GOTO 58
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #19414 /* ~Perhaps.  Members of your order, however, arrested a friend of mine: Imoen.  I would know where she is, first.~ */ GOTO 60
  IF ~~ THEN REPLY #19389 /* ~I would not.  I'll thank you to allow me to go on my way.~ */ GOTO 55
END

IF ~~ THEN BEGIN 55 // from: 60.3 59.3 57.3 54.3 52.3 50.3
  SAY #19390 /* ~I see.  Hm.  I notice that you have something in your hand... some form of letter.  Hand it over to me at once.~ */
  IF ~~ THEN REPLY #19391 /* ~As you wish, here you go.~ */ GOTO 61
  IF ~~ THEN REPLY #19393 /* ~Why do you need this?~ */ GOTO 62
  IF ~~ THEN REPLY #19395 /* ~I'll not allow you to take anything from me, wizard.~ */ GOTO 51
END

IF ~~ THEN BEGIN 56 // from: 60.0 59.0 54.0 52.0
  SAY #19397 /* ~You have noticed the prevailing attitude against magic in Athkatla, yes?  If we allow this murderer to remain free many will think they can take arms against us.~ */
  IF ~~ THEN GOTO 57
END

IF ~~ THEN BEGIN 57 // from: 56.0
  SAY #19398 /* ~The Cowled Wizards have worked tirelessly to maintain our hold, here.  But... the commoners refuse to speak to us.  They might speak to you.~ */
  IF ~~ THEN REPLY #19399 /* ~And what might my reward be for performing such a task?~ */ GOTO 58
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #19425 /* ~I wish to know something.  Members of your order arrested a friend of mine: Imoen.  I would know where she is before I agree to anything.~ */ GOTO 60
  IF ~~ THEN REPLY #19400 /* ~Very well.  I shall do as you ask.~ */ GOTO 63
  IF ~~ THEN REPLY #19401 /* ~No, I've no interest in hunting this man for you.  Find someone else to perform this task.~ */ GOTO 55
END

IF ~~ THEN BEGIN 58 // from: 60.1 57.0 54.1 52.1
  SAY #19402 /* ~Ah, the reward.  Adventurers have much use for items the Cowled Wizards possess.  It is sad that magic is so despised in Athkatla, for it has many uses.~ */
  IF ~~ THEN GOTO 59
END

IF ~~ THEN BEGIN 59 // from: 58.0
  SAY #19403 /* ~We will offer you an item of substantial magical power as well as a good deal of gold coin.  What say you, then... will you find this man for us?~ */
  IF ~~ THEN REPLY #19404 /* ~I would like to know why you think I can find Valygar better than you can.~ */ GOTO 56
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #19405 /* ~Your order arrested a friend of mine: Imoen.  Tell me where she is and I might consider your task.~ */ GOTO 60
  IF ~~ THEN REPLY #19406 /* ~Very well, I agree to do this task for you.~ */ GOTO 63
  IF ~~ THEN REPLY #19407 /* ~Forget it.  I have no interest in this.~ */ GOTO 55
END

IF ~~ THEN BEGIN 60 // from: 59.1 57.1 54.2 52.2
  SAY #19409 /* ~Imoen?  Ah, the girl arrested along with the wizard.  I do not have such inconsequential information on me.  You must put such demands aside.~ */
  IF ~~ THEN REPLY #19410 /* ~I see.  Just what makes you think I will be able to find this Valygar better than you?~ */ GOTO 56
  IF ~~ THEN REPLY #19411 /* ~I would like to know what kind of reward I am looking at for this.~ */ GOTO 58
  IF ~~ THEN REPLY #19412 /* ~Very well, then.  I agree to perform this task.~ */ GOTO 63
  IF ~~ THEN REPLY #19413 /* ~I cannot put it aside, and I refuse to work for you unless you tell me where she is.~ */ GOTO 55
END

IF ~~ THEN BEGIN 61 // from: 62.0 55.0
  SAY #19415 /* ~Very good.  Now... it is my belief that you know too much of Cowled Wizard business.  It is time to be rid of you, as well as our friend Valygar.  My apologies.~ */
  IF ~~ THEN DO ~TakePartyItem("misc7m")
SetGlobal("AttackedByCowled","GLOBAL",1)
Enemy()~ UNSOLVED_JOURNAL #8129 /* ~The hunt for Valygar Corthala.

Although I am unsure why, a group of Cowled Wizards led by a mage named Tolgerias attacked me after I had found a tax scroll in the home of a man named Valygar Corthala.  It seems they are looking for the man... and are willing to destroy anyone who finds out too much about what they are after.~ */ EXIT
END

IF ~~ THEN BEGIN 62 // from: 55.1
  SAY #19416 /* ~It may lead us to Valygar.  Beyond that, it is none of your concern.  Hand it to me at once!~ */
  IF ~~ THEN REPLY #19417 /* ~Very well... here you go.~ */ GOTO 61
  IF ~~ THEN REPLY #19418 /* ~I will not!~ */ GOTO 51
END

IF ~~ THEN BEGIN 63 // from: 60.2 59.2 57.2
  SAY #19419 /* ~Excellent.  The Cowled Wizards will hold you to your word.  This matter that must be handled with discretion as well as expediency.~ */
  IF ~~ THEN GOTO 64
END

IF ~~ THEN BEGIN 64 // from: 63.0
  SAY #19420 /* ~Once you have Valygar in custody, bring him to me.  I shall wait here in this building, as I doubt you could locate the Cowled Wizards' headquarters.~ */
  IF ~~ THEN GOTO 65
END

IF ~~ THEN BEGIN 65 // from: 64.0
  SAY #19421 /* ~Valygar may resist.  If he does, you must kill him and bring the body to us.  Dead or alive, you MUST bring him to me, you understand, yes?~ */
  IF ~~ THEN REPLY #19422 /* ~I am no murderer!  I shall not perform this task!~ */ GOTO 66
  IF ~~ THEN REPLY #19423 /* ~Yes, I understand.  This is not a problem.~ */ GOTO 68
END

IF ~~ THEN BEGIN 66 // from: 65.0
  SAY #19427 /* ~Hmph.  Such a declaration is dangerous, my <LADYLORD>.   The Cowled Wizards will not treat treachery lightly.  Perform your task,  or things will get... unpleasant.~ */
  IF ~~ THEN REPLY #19430 /* ~I will not.  Find someone else to do your dirty work!~ */ GOTO 51
  IF ~~ THEN REPLY #19433 /* ~If you intend to force me, then I suppose I have no choice in the matter.~ */ GOTO 67
END

IF ~~ THEN BEGIN 67 // from: 66.1
  SAY #19428 /* ~We will if need be.  This is a delicate matter,  we shall not allow it to be dealt with callously.  Perform your task, and do so quickly, or suffer our wrath.~ */
  IF ~~ THEN DO ~SetGlobal("HiredByCowled","GLOBAL",1)
RevealAreaOnMap("AR1100")~ UNSOLVED_JOURNAL #7995 /* ~The hunt for Valygar Corthala.

I have agreed to find a man named Valygar Corthala, a murderer who has killed two Cowled Wizards, and bring him dead or alive to Tolgerias in the government building in the Government District.  According to the wizard, Valygar holds a great hatred of magic... and since wizards are distrusted in the city in general, he feels I will have a far better chance than most in tracking down the man.
According to the wizard, Valygar comes from a noble family, and may be hiding in the city or outside.  One clue, at least, is that he has a house in the Docks district... perhaps a place to start looking.~ */ EXIT
END

IF ~~ THEN BEGIN 68 // from: 65.1
  SAY #19429 /* ~Excellent.  I expect nothing less.  I await the sight of this murderer's body soon.~ */
  IF ~~ THEN DO ~SetGlobal("HiredByCowled","GLOBAL",1)
RevealAreaOnMap("AR1100")~ UNSOLVED_JOURNAL #7995 /* ~The hunt for Valygar Corthala.

I have agreed to find a man named Valygar Corthala, a murderer who has killed two Cowled Wizards, and bring him dead or alive to Tolgerias in the government building in the Government District.  According to the wizard, Valygar holds a great hatred of magic... and since wizards are distrusted in the city in general, he feels I will have a far better chance than most in tracking down the man.
According to the wizard, Valygar comes from a noble family, and may be hiding in the city or outside.  One clue, at least, is that he has a house in the Docks district... perhaps a place to start looking.~ */ EXIT
END

IF ~~ THEN BEGIN 69 // from: 37.0
  SAY #42514 /* ~Yes, I did say that I would look into that, didn't I?  Very well.  I will tell you what I know, although no doubt you will be displeased by my answer.~ */
  IF ~~ THEN GOTO 71
END

IF ~~ THEN BEGIN 70 // from: 37.1
  SAY #42515 /* ~Do not get presumptuous with me, <GIRLBOY>... you do not want to provoke the wrath of the Cowled Wizards.  But I have heard a little of what you speak.~ */
  IF ~~ THEN GOTO 71
END

IF ~~ THEN BEGIN 71 // from: 70.0 69.0
  SAY #42516 /* ~The girl... Imoen... was detained with a powerful wizard named Irenicus.  He has caused... problems since his capture, striking fear into the heart of my order.~ */
  IF ~~ THEN GOTO 72
END

IF ~~ THEN BEGIN 72 // from: 71.0
  SAY #42517 /* ~The Cowled Wizards will not give release any information until the issue is resolved.  Your girl is tied up in this, so in effect I can tell you nothing.~ */
  IF ~~ THEN GOTO 73
END

IF ~~ THEN BEGIN 73 // from: 72.0
  SAY #42518 /* ~And even had this not occurred, you could not arrange her freedom, fool.  She broke the law, and it is final.  The Cowled Wizards do not give second chances.~ */
  IF ~~ THEN GOTO 74
END

IF ~~ THEN BEGIN 74 // from: 73.0
  SAY #42519 /* ~Now... I have told you all I know.  Do not bother any of my order further with your ignorant questions, for you shall learn no more than I have given you.~ */
  IF ~~ THEN GOTO 76
END

IF ~~ THEN BEGIN 75 // from: 1.0
  SAY #48590 /* ~This is a sensitive matter, and I cannot tell all to every curious soul.  I must have your commitment that you agree to the task.~ */
  IF ~!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Yoshimo")
!IsValidForPartyDialog("Korgan")~ THEN GOTO 2
  IF ~IsValidForPartyDialog("Edwin")~ THEN EXTERN ~EDWINJ~ 47
  IF ~!IsValidForPartyDialog("Edwin")
IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 360
  IF ~!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Yoshimo")~ THEN EXTERN ~YOSHJ~ 46
  IF ~!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Yoshimo")
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 218
END

IF ~~ THEN BEGIN 76 // from: 74.0 37.2
  SAY #48603 /* ~Be on your way, then.  I doubt we shall see each other again.~ */
  IF ~!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Jan")~ THEN DO ~SetInterrupt(False)
ForceSpell(Myself,DRYAD_TELEPORT)
SetInterrupt(True)
~ EXIT
  IF ~IsValidForPartyDialog("Edwin")~ THEN DO ~SetInterrupt(False)
ForceSpell(Myself,DRYAD_TELEPORT)
SetInterrupt(True)~ EXTERN ~EDWINJ~ 49
  IF ~!IsValidForPartyDialog("Edwin")
IsValidForPartyDialog("Nalia")~ THEN DO ~SetInterrupt(False)
ForceSpell(Myself,DRYAD_TELEPORT)
SetInterrupt(True)~ EXTERN ~NALIAJ~ 233
  IF ~!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Nalia")
IsValidForPartyDialog("Jan")~ THEN DO ~SetInterrupt(False)
ForceSpell(Myself,DRYAD_TELEPORT)
SetInterrupt(True)~ EXTERN ~JANJ~ 99
END

IF WEIGHT #4 /* Triggers after states #: 85 even though they appear after this state */
~Detect("Valygar")
Global("HiredByCowled","GLOBAL",0)
!Global("ValygarGone","GLOBAL",1)~ THEN BEGIN 77 // from:
  SAY #58511 /* ~So... the fool shows his face amongst us.  And he has allies, I see.  So be it.  The Cowled Wizards shall have their way whether you like it or not, ranger!~ */
  IF ~~ THEN DO ~ForceSpell(Myself,DRYAD_TELEPORT)~ EXIT
END

IF ~~ THEN BEGIN 78 // from: 83.0 81.0
  SAY #58512 /* ~This, however, is not the place for a confrontation.  A reckoning shall come soon enough, my foolish friends...~ */
  IF ~~ THEN DO ~SetGlobal("BetrayedCowled","GLOBAL",1)
ForceSpell(Myself,DRYAD_TELEPORT)~ EXIT
END

IF WEIGHT #5 /* Triggers after states #: 85 even though they appear after this state */
~Detect("Valygar")
Global("HiredByCowled","GLOBAL",1)
!Global("ValygarGone","GLOBAL",1)~ THEN BEGIN 79 // from:
  SAY #58513 /* ~So.  <CHARNAME> has returned, I see.  And with the fool ranger in tow, no less.  This is as good as anything else, I suppose.~ */
  IF ~~ THEN GOTO 80
END

IF ~~ THEN BEGIN 80 // from: 79.0
  SAY #58514 /* ~Unless you've decided to throw in your lot with the ranger.  I suppose a true fool might be talked into such.  What shall it be, <CHARNAME>?  Are you a fool?~ */
  IF ~!IsValidForPartyDialog("Valygar")
IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 249
  IF ~!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Mazzy")~ THEN EXTERN ~MAZZYJ~ 200
  IF ~!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 523
  IF ~!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Minsc")~ THEN EXTERN ~MINSCJ~ 210
  IF ~!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Aerie")~ THEN EXTERN ~AERIEJ~ 190
  IF ~!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Aerie")
IsValidForPartyDialog("Anomen")
!Alignment("Anomen",CHAOTIC_NEUTRAL)~ THEN EXTERN ~ANOMENJ~ 304
  IF ~!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Aerie")
OR(2)
!IsValidForPartyDialog("Anomen")
Alignment("Anomen",CHAOTIC_NEUTRAL)
IsValidForPartyDialog("Nalia")~ THEN EXTERN ~NALIAJ~ 316
  IF ~!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Aerie")
OR(2)
!IsValidForPartyDialog("Anomen")
Alignment("Anomen",CHAOTIC_NEUTRAL)
!IsValidForPartyDialog("Nalia")
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 189
  IF ~!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Aerie")
OR(2)
!IsValidForPartyDialog("Anomen")
Alignment("Anomen",CHAOTIC_NEUTRAL)
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")~ THEN REPLY #58526 /* ~I'm no fool.  Take the ranger and do with him as you will.~ */ GOTO 84
  IF ~!IsValidForPartyDialog("Valygar")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Aerie")
OR(2)
!IsValidForPartyDialog("Anomen")
Alignment("Anomen",CHAOTIC_NEUTRAL)
!IsValidForPartyDialog("Nalia")
!IsValidForPartyDialog("Korgan")~ THEN REPLY #58527 /* ~Forget it, Tolgerias.  You're not getting your hands on him, period.~ */ GOTO 83
  IF ~IsValidForPartyDialog("Valygar")~ THEN EXTERN ~VALYGARJ~ 117
END

IF ~~ THEN BEGIN 81 // from:
  SAY #58524 /* ~I wonder if <CHARNAME> feels the same.  Regardless, he has chosen your insipid company, and I'll not tolerate such threats... you shall all suffer for it.~ */
  IF ~~ THEN GOTO 78
END

IF ~~ THEN BEGIN 82 // from: VALYGARJ:117.8
  SAY #58525 /* ~So, then, <CHARNAME>... what will it be?~ */
  IF ~~ THEN REPLY #58529 /* ~Take the ranger and do with him as you will.  Our contract is fulfilled.~ */ GOTO 84
  IF ~~ THEN REPLY #58530 /* ~Forget it, Tolgerias.  You're not getting him, period.~ */ GOTO 83
END

IF ~~ THEN BEGIN 83 // from: 82.1 80.9
  SAY #58528 /* ~As you wish.  The Cowled Wizards are no mean opponent, <CHARNAME>, and you shall suffer dearly for your decision.~ */
  IF ~~ THEN GOTO 78
END

IF ~~ THEN BEGIN 84 // from: 82.0 80.8
  SAY #58531 /* ~A prudent decision.  Allow me a moment to deal with your former team-mate, then.~ */
  IF ~!IsValidForPartyDialog("Aerie")
OR(2)
!IsValidForPartyDialog("Anomen")
Alignment("Anomen",CHAOTIC_NEUTRAL)
!IsValidForPartyDialog("Valygar")~ THEN DO ~StartCutSceneMode()
StartCutScene("Cut61a")~ EXIT
  IF ~IsValidForPartyDialog("Aerie")~ THEN EXTERN ~AERIEJ~ 191
  IF ~!IsValidForPartyDialog("Aerie")
IsValidForPartyDialog("Anomen")
!Alignment("Anomen",CHAOTIC_NEUTRAL)~ THEN EXTERN ~ANOMENJ~ 305
  IF ~!IsValidForPartyDialog("Aerie")
OR(2)
!IsValidForPartyDialog("Anomen")
Alignment("Anomen",CHAOTIC_NEUTRAL)
IsValidForPartyDialog("Valygar")~ THEN EXTERN ~VALYGARJ~ 118
END

IF WEIGHT #1 ~Global("TalkedToTolgerias","GLOBAL",0)
Global("HiredByCowled","GLOBAL",0)
!Detect("Valygar")
!Global("ValygarGone","GLOBAL",1)
InParty("Korgan")
See("Korgan")~ THEN BEGIN 85 // from:
  SAY #59362 /* ~Ah, yes, I do see Madeen has proven to be his faithful self.  How are you, my dwarven mercenary?  Are you up to the task Madeen has recruited you for?~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToTolgerias","GLOBAL",1)
EraseJournalEntry(7994)
~ EXTERN ~KORGANJ~ 217
END

IF ~~ THEN BEGIN 86 // from:
  SAY #59364 /* ~Truly?  A more tempered attitude than I expected of you, dwarf.  The advantage of serving the Cowled Wizards should be plain for anyone to see.~ */
  IF ~~ THEN GOTO 1
END
