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

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

IF WEIGHT #1 /* Triggers after states #: 11 even though they appear after this state */
~Global("LyrosJob","GLOBAL",0)
~ THEN BEGIN 0 // from:
  SAY #22559 /* ~Oh, it's you again.  Finally screwed up your courage to help poor Monty, then?  Or do I have wait until doomsday for someone competent to pass me by?~ */
  IF ~~ THEN REPLY #22560 /* ~I'm willing to do the job... what was it again that you wanted me to do?~ */ GOTO 16
  IF ~~ THEN REPLY #22561 /* ~No, I'm still not interested.~ */ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.1
  SAY #22562 /* ~Well, then what are you bothering me for?  You think I enjoy chatting with rabble like you merely for its own sake?  Begone!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 /* Triggers after states #: 11 even though they appear after this state */
~Global("LyrosJob","GLOBAL",1)
~ THEN BEGIN 2 // from:
  SAY #22563 /* ~You're back, are you?  Is it safe for me to assume that you have succeeded in your mission or am I merely subject to a grueling social call?~ */
  IF ~~ THEN REPLY #22564 /* ~No, I haven't found out what happened to Montaron, yet.~ */ GOTO 3
  IF ~!PartyHasItem("MISC5D")
Global("TalkedToSpectres","GLOBAL",1)
~ THEN REPLY #22568 /* ~Yes, actually.  Montaron was turned into a bird and put in the Harper's aviary... but I don't have it with me.~ */ GOTO 4
  IF ~PartyHasItem("MISC5D")
~ THEN REPLY #22569 /* ~I have found out what happened to him, yes.  He was turned into a bird... which I have with me, here.~ */ DO ~AddXPObject(Player1,35500)
AddXPObject(Player2,35500)
AddXPObject(Player3,35500)
AddXPObject(Player4,35500)
AddXPObject(Player5,35500)
AddXPObject(Player6,35500)
~ GOTO 5
  IF ~~ THEN REPLY #22595 /* ~Forget your mission!  I've decided it would be far more satisfying to kill you!~ */ GOTO 9
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #22570 /* ~Bah!  This is annoying!  Will you carry out your job, or must Montaron pay for your indolence?  Must I find someone more competent than you?!~ */
  IF ~~ THEN REPLY #22571 /* ~No, I intend to finish the job.~ */ GOTO 7
  IF ~~ THEN REPLY #22572 /* ~That's right... find someone else to do your work for you.  I tire of your attitude.~ */ GOTO 8
  IF ~~ THEN REPLY #22573 /* ~It would be much more satisfying if I just killed you!~ */ GOTO 9
END

IF ~~ THEN BEGIN 4 // from: 2.1
  SAY #22574 /* ~Well, what are you waiting for?!  Go and get that bird and bring it back to me?  Bah... do I have to tell you everything?!~ */
  IF ~~ THEN REPLY #22576 /* ~That wasn't part of the deal... I found out what happened and I told you.~ */ GOTO 10
  IF ~~ THEN REPLY #22577 /* ~Very well... I'll go and return with the bird.~ */ GOTO 7
  IF ~~ THEN REPLY #22586 /* ~Forget it, I tire of this job.  Find someone else to do it for you.~ */ GOTO 8
END

IF ~~ THEN BEGIN 5 // from: 2.2
  SAY #22579 /* ~Finally Montaron will be returned to my side!  This is excellent news... especially since some fools broke into my laboratory and slaughtered all my creations!~ */
  IF ~~ THEN GOTO 23
END

IF ~~ THEN BEGIN 6 // from: 23.0
  SAY #22580 /* ~Before I reward you, I'll polymorph Monty into his proper form... just to make sure you're not lying.  Monty must have something interesting to say...~ */
  IF ~~ THEN DO ~SetGlobal("LyrosJob","GLOBAL",2)
TakePartyItem("MISC5D")
DestroyItem("MISC5D")
ForceSpell(Myself,HARPASS_CHANGE)
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 10.0 4.1 3.0
  SAY #22582 /* ~Then get moving.  Bah!  The amount of incompetence I am forced to deal with on a regular basis astounds me!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 8 // from: 10.1 4.2 3.1
  SAY #22583 /* ~I knew you were too incompetent to be trusted.  Very well!  If you've not the courage to perform a simple task I'll find somebody else with more gumption.~ */
  IF ~~ THEN DO ~SetGlobal("LyrosJob","GLOBAL",2)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 27.3 10.2 3.2 2.3
  SAY #22589 /* ~Bah!  This is what I get for dealing with rabble!~ */
  IF ~~ THEN DO ~SetGlobal("LyrosJob","GLOBAL",2)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 10 // from: 4.0
  SAY #22590 /* ~You'll get nothing from me until I have that bird in my hands!~ */
  IF ~~ THEN REPLY #22591 /* ~You try my patience... but I will go and return with the bird.~ */ GOTO 7
  IF ~~ THEN REPLY #22592 /* ~Forget it... get somebody else to get the bird.~ */ GOTO 8
  IF ~~ THEN REPLY #22593 /* ~Breaking the deal, eh?  As you wish!  I'll be paid with the satisfaction of seeing you dead!~ */ GOTO 9
END

IF WEIGHT #0 ~NumTimesTalkedTo(0)
~ THEN BEGIN 11 // from:
  SAY #20911 /* ~You there!  Unwashed one!  I would have a word with you!~ */
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")~ THEN REPLY #22351 /* ~Yes?  What is it?~ */ DO ~SetGlobal("TalkedToLyros","GLOBAL",1)
~ GOTO 12
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")~ THEN REPLY #22530 /* ~Xzar...?  It's me, <CHARNAME>... don't you recognize me?~ */ DO ~SetGlobal("TalkedToLyros","GLOBAL",1)
~ GOTO 13
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Minsc")~ THEN REPLY #22531 /* ~Xzar?  Aren't you dead?~ */ DO ~SetGlobal("TalkedToLyros","GLOBAL",1)
~ GOTO 14
  IF ~IsValidForPartyDialog("Jaheira")~ THEN DO ~SetGlobal("TalkedToLyros","GLOBAL",1)~ EXTERN ~JAHEIRAJ~ 387
  IF ~!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Minsc")~ THEN DO ~SetGlobal("TalkedToLyros","GLOBAL",1)~ EXTERN ~MINSCJ~ 115
END

IF ~~ THEN BEGIN 12 // from: 29.0 28.0 14.0 13.0 11.0
  SAY #22532 /* ~I saw you dealing with those Harpers ... but it is obvious you are not a Harper yourself.  You would be willing,  then, to render me a service regarding them.~ */
  IF ~~ THEN REPLY #24757 /* ~What Harpers?  What are you talking about?~ */ GOTO 24
END

IF ~~ THEN BEGIN 13 // from: 29.1 28.1 11.1
  SAY #22536 /* ~Hm.  Mmm.  I remember working with someone rather inept who resembled you.  If Monty were here, he would certainly be able to remind me.  No matter!~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 14 // from: 29.2 28.2 11.2
  SAY #22538 /* ~I may have been.  It happens when you are forced to deal with buffoons.  If Monty were here, he would be able to tell for certain.  Bah!  It matters not!~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 15 // from:
  SAY #22539 /* ~Well!  I see there is no one with sufficient courage to take on even the most noble of tasks!  Not even to save the life of a poor soul in dire jeopardy!~ */
  IF ~~ THEN REPLY #22540 /* ~(sigh)  Very well... exactly what is it that you want, then?~ */ GOTO 16
  IF ~~ THEN REPLY #22541 /* ~That's right.  Excuse me while I leave you be.~ */ GOTO 18
END

IF ~~ THEN BEGIN 16 // from: 30.0 24.0 17.0 15.0 0.0
  SAY #22542 /* ~My friend Montaron has been taken captive by those irksome Harpers.  I would have you enter their building and find Monty for me.~ */
  IF ~~ THEN REPLY #22543 /* ~Alright, I'll see what I can do.~ */ GOTO 19
  IF ~~ THEN REPLY #22544 /* ~I see.  And what is in it for me?~ */ GOTO 26
  IF ~~ THEN REPLY #22545 /* ~You want me to sneak into that Harper base?  And what would stop me from ending up the same as Montaron?~ */ GOTO 21
  IF ~~ THEN REPLY #22546 /* ~I never liked you much, anyway, Xzar.  Forget it.~ */ GOTO 22
  IF ~~ THEN REPLY #22547 /* ~I have no time to perform this task for you.~ */ GOTO 18
END

IF ~~ THEN BEGIN 17 // from: 30.1 24.1
  SAY #22548 /* ~I am not asking you to kill anyone!  Bah!  A simple mission of mercy and you cannot find it within your heart to perform this task?  Where is your compassion?~ */
  IF ~~ THEN REPLY #22549 /* ~Very well, then.  What, exactly, is it that you wish me to do?~ */ GOTO 16
  IF ~~ THEN REPLY #22550 /* ~Same place yours is, I suspect.  I'll not be duped into doing anything against the Harpers.  So long.~ */ GOTO 18
END

IF ~~ THEN BEGIN 18 // from: 30.2 27.2 24.2 22.3 21.2 20.3 17.1 16.4 15.1
  SAY #22551 /* ~Bah!  To deal with gutless, whining whelps is excruciating!   When you gather enough courage to take up my offer, I shall be here.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 19 // from: 27.0 22.2 21.0 20.0 16.0
  SAY #22552 /* ~Excellent.  Go to their building and return once you have found him.  Short... halfling... thief... even one of your intellectual capacity can't miss him.~ */
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Yoshimo")
!IsValidForPartyDialog("Edwin")~ THEN DO ~SetGlobal("LyrosJob","GLOBAL",1)
~ UNSOLVED_JOURNAL #47862 /* ~Find out what happened to Montaron.

I've run into none other than Xzar, who tells me that not only is the place I just delivered the poisoned man to a Harper stronghold, but that his companion Montaron sneaked in several days before and has not come out.  I have agreed to approach these Harpers and see if I can find out what has become of the annoying halfling thief.~ */ EXIT
  IF ~IsValidForPartyDialog("Jaheira")~ THEN DO ~SetGlobal("LyrosJob","GLOBAL",1)~ UNSOLVED_JOURNAL #47862 /* ~Find out what happened to Montaron.

I've run into none other than Xzar, who tells me that not only is the place I just delivered the poisoned man to a Harper stronghold, but that his companion Montaron sneaked in several days before and has not come out.  I have agreed to approach these Harpers and see if I can find out what has become of the annoying halfling thief.~ */ EXTERN ~JAHEIRAJ~ 389
  IF ~!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Anomen")~ THEN DO ~SetGlobal("LyrosJob","GLOBAL",1)~ UNSOLVED_JOURNAL #47862 /* ~Find out what happened to Montaron.

I've run into none other than Xzar, who tells me that not only is the place I just delivered the poisoned man to a Harper stronghold, but that his companion Montaron sneaked in several days before and has not come out.  I have agreed to approach these Harpers and see if I can find out what has become of the annoying halfling thief.~ */ EXTERN ~ANOMENJ~ 214
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Anomen")
IsValidForPartyDialog("Yoshimo")~ THEN DO ~SetGlobal("LyrosJob","GLOBAL",1)~ UNSOLVED_JOURNAL #47862 /* ~Find out what happened to Montaron.

I've run into none other than Xzar, who tells me that not only is the place I just delivered the poisoned man to a Harper stronghold, but that his companion Montaron sneaked in several days before and has not come out.  I have agreed to approach these Harpers and see if I can find out what has become of the annoying halfling thief.~ */ EXTERN ~YOSHJ~ 63
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Yoshimo")
IsValidForPartyDialog("Edwin")~ THEN DO ~SetGlobal("LyrosJob","GLOBAL",1)~ UNSOLVED_JOURNAL #47862 /* ~Find out what happened to Montaron.

I've run into none other than Xzar, who tells me that not only is the place I just delivered the poisoned man to a Harper stronghold, but that his companion Montaron sneaked in several days before and has not come out.  I have agreed to approach these Harpers and see if I can find out what has become of the annoying halfling thief.~ */ EXTERN ~EDWINJ~ 66
END

IF ~~ THEN BEGIN 20 // from: 26.0
  SAY #22555 /* ~I know certain information... the mage who captured you, Irenicus; I know where he is.  Do my task and I shall tell you... heh, heh.~ */
  IF ~~ THEN REPLY #22556 /* ~Very well, I will see what I can do.~ */ GOTO 19
  IF ~~ THEN REPLY #22557 /* ~You want me to sneak into a base full of Harpers?  What is to stop me from ending up like your Montaron?~ */ GOTO 21
  IF ~~ THEN REPLY #42652 /* ~You know where Irenicus is?!  I demand that you tell me now!~ */ GOTO 27
  IF ~~ THEN REPLY #23762 /* ~I don't believe you.  Forget it.~ */ GOTO 18
END

IF ~~ THEN BEGIN 21 // from: 27.1 22.0 20.1 16.2
  SAY #23763 /* ~I... well, you're the one that knows them!  They're not going to kill you just because you're looking for the whereabouts of a spy... er... thief.  Bah!~ */
  IF ~~ THEN REPLY #23764 /* ~Fine.  I will see what I can do.~ */ GOTO 19
  IF ~~ THEN REPLY #23765 /* ~And what would be my reward for this job?~ */ GOTO 26
  IF ~~ THEN REPLY #23766 /* ~Forget it.  Not interested.~ */ GOTO 18
END

IF ~~ THEN BEGIN 22 // from: 16.3
  SAY #23767 /* ~You may dislike me... whoever you are... but would you not even take a small risk for Montaron?  A faultless soul, and likely being tortured even as we speak!~ */
  IF ~~ THEN REPLY #23770 /* ~Well, what is to stop me from ending up the same as him, then?  I'm not invading a house full of Harpers!~ */ GOTO 21
  IF ~~ THEN REPLY #23771 /* ~What kind of reward are you offering, then?~ */ GOTO 26
  IF ~~ THEN REPLY #23772 /* ~Fine, fine.  I'll do what I can to find him.~ */ GOTO 19
  IF ~~ THEN REPLY #23773 /* ~Nope.  I never liked Montaron either, come to think of it.~ */ GOTO 18
END

IF ~~ THEN BEGIN 23 // from: 5.0
  SAY #23774 /* ~They killed both of my apprentices, too, it seems.  Bah!  It will put my work behind interminably!  How excruciatingly annoying!~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 24 // from: 12.0
  SAY #24758 /* ~The Harpers you delivered the poisoned man to.  Or were you too idiotic to know they were Harpers?  I require your inadequate services for a job.~ */
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Yoshimo")~ THEN REPLY #24759 /* ~Exactly what kind of job are you talking about?~ */ GOTO 16
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Yoshimo")~ THEN REPLY #24760 /* ~I'm not about to cross the Harpers.  Sorry.~ */ GOTO 17
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Yoshimo")~ THEN REPLY #24762 /* ~I have no interest in doing anything for you, Xzar.~ */ GOTO 18
  IF ~IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 388
  IF ~!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 142
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Yoshimo")~ THEN EXTERN ~YOSHJ~ 62
END

IF WEIGHT #3 ~True()
~ THEN BEGIN 25 // from:
  SAY #31039 /* ~What in the..?? You're not Montaron!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 26 // from: 22.1 21.1 16.1
  SAY #42645 /* ~A reward?  It is not enough to save a fellow being in need?  Bah!  Very well... you shall have a reward in gold for your efforts and something else, as well...~ */
  IF ~~ THEN GOTO 20
END

IF ~~ THEN BEGIN 27 // from: 20.2
  SAY #42654 /* ~Never!  I will take the secret with me to the grave!  Give me my Monty and you can have your irritating little thief back, 'friend'!~ */
  IF ~~ THEN REPLY #42655 /* ~Very well... I will do as you wish.~ */ GOTO 19
  IF ~~ THEN REPLY #42656 /* ~Just how am I supposed to sneak into this base, when Montaron couldn't?!~ */ GOTO 21
  IF ~~ THEN REPLY #42657 /* ~Forget it... I don't believe you know where he is, anyway.~ */ GOTO 18
  IF ~~ THEN REPLY #42658 /* ~Then to the grave you go!!~ */ GOTO 9
END

IF ~~ THEN BEGIN 28 // from: JAHEIRAJ:387.0
  SAY #49323 /* ~I am not here to address you, heartless Harper wench.    I am here to appeal to your erstwhile companion, <CHARNAME>.~ */
  IF ~~ THEN REPLY #49328 /* ~An appeal?  What do you want?~ */ GOTO 12
  IF ~~ THEN REPLY #49329 /* ~Perhaps you don't remember the last time we met...~ */ GOTO 13
  IF ~~ THEN REPLY #49331 /* ~As I recall, Xzar, you're supposed to be dead.~ */ GOTO 14
END

IF ~~ THEN BEGIN 29 // from: MINSCJ:115.0
  SAY #49324 /* ~How dare you speak of poor Monty that way!  And I am not here to speak with you anyway, you addled excuse for a ranger.  I'm here to make a request of <CHARNAME>.~ */
  IF ~~ THEN REPLY #49325 /* ~A request?  What do you want?~ */ GOTO 12
  IF ~~ THEN REPLY #49326 /* ~Maybe you don't remember the last time we met, necromancer...~ */ GOTO 13
  IF ~~ THEN REPLY #49327 /* ~Aren't you supposed to be dead, Xzar?~ */ GOTO 14
END

IF ~~ THEN BEGIN 30 // from: KELDORJ:142.1 JAHEIRAJ:388.0
  SAY #49342 /* ~Yes, yes, I am not asking you to walk in and slaughter them, now, am I?  Tempting as that may be, I am not such a blundering fool as your friends might suppose.~ */
  IF ~~ THEN REPLY #49343 /* ~Exactly what is it you want me to do, then?~ */ GOTO 16
  IF ~~ THEN REPLY #49344 /* ~I'm not about to risk crossing the Harpers, regardless of your assurances.~ */ GOTO 17
  IF ~~ THEN REPLY #49345 /* ~I've no interest in doing anything for you, Xzar.~ */ GOTO 18
END
