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

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

IF ~~ THEN BEGIN 0 // from: AMMERC02:0.0
  SAY #66567 /* ~Now let's not do anything hasty, gentlemen.  As you know, I could not have been involved as I have only recently returned to Amkethran...~ [AMSAEM07] */
  IF ~~ THEN EXTERN ~AMMERC01~ 1
END

IF ~~ THEN BEGIN 1 // from: AMMERC02:1.0
  SAY #66570 /* ~Well, of course I... uh... by my sea salt stinging eyes!  Look who's coming this way - a familiar face from my past.~ [AMSAEM08] */
  IF ~~ THEN REPLY #66571 /* ~I see you're in a bit of a bind, Saemon.~ */ GOTO 3
  IF ~~ THEN REPLY #66572 /* ~I see your cheating ways have finally caught up with you.~ */ GOTO 3
  IF ~~ THEN REPLY #66573 /* ~I'm sorry. You must have me confused with someone else.~ */ GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.2
  SAY #66574 /* ~Aw... don't say that, old friend.  After all we've been through together,  the good... and the bad.~ [AMSAEM09] */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0 1.1 1.0
  SAY #66575 /* ~Your arrival is a happy coincidence, given the situation.  You can actually solve my dispute with these rather upset gentlemen.~ [AMSAEM10] */
  IF ~~ THEN EXTERN ~AMMERC01~ 2
END

IF ~~ THEN BEGIN 4 // from: AMMERC02:2.0
  SAY #66581 /* ~But I can solve this little dispute quite easily, now.  <CHARNAME>... please return that equipment I sold you yesterday to these fine men.~ */
  IF ~~ THEN EXTERN ~AMMERC01~ 3
END

IF ~~ THEN BEGIN 5 // from: AMMERC01:3.0
  SAY #66584 /* ~Don't be difficult, <CHARNAME>.  We can all plainly see you are carrying equipment that does not rightfully belong to you.~ */
  IF ~~ THEN EXTERN ~AMMERC01~ 4
END

IF ~~ THEN BEGIN 6 // from: AMMERC02:3.2 AMMERC02:3.1 AMMERC02:3.0
  SAY #66592 /* ~I guess <CHARNAME> isn't going to cooperate.  I'm afraid this can only end in violence.~ */
  IF ~~ THEN EXTERN ~AMMERC01~ 5
END

IF ~~ THEN BEGIN 7 // from: AMMERC02:4.0
  SAY #66598 /* ~Sorry, <CHARNAME>, but I'm afraid you're on your own here.~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("SaemonPlot","GLOBAL",1)
Wait(1)
EndCutSceneMode()
ReallyForceSpell(Myself,DRYAD_TELEPORT)
ActionOverride("AMMERC01",Enemy())
ActionOverride("AMMERC02",Enemy())~ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 42 43 even though they appear after this state */
~Global("Enclave","GLOBAL",2)
Global("SaemonDisguise","GLOBAL",0)~ THEN BEGIN 8 // from:
  SAY #67214 /* ~Why, hullo again, <CHARNAME>.  I have been waiting for you.~ */
  IF ~~ THEN REPLY #67216 /* ~Saemon Havarian!  I must be cursed to keep running into you.~ */ GOTO 9
  IF ~~ THEN REPLY #67218 /* ~Not you again!  Just go away and leave me alone.~ */ GOTO 10
  IF ~~ THEN REPLY #67219 /* ~What's this, an ambush?~ */ GOTO 11
  IF ~~ THEN REPLY #67220 /* ~Big mistake staying here, Saemon - I've got a score to settle with you!~ */ GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.3 8.0
  SAY #71782 /* ~Ah, yes, yes.  I suppose we could re-hash our differences, were I a mind to... but surrounded by my slaughtered old comrades as I am, I'm hardly in the mood.~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 10 // from: 8.1
  SAY #71783 /* ~Oh, I suppose you have your reasons to be sore with me.  And were circumstances different, I'd be happy to accommodate your request.  Surrounded by my dead comrades as I am, however, I'm not going to.~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 11 // from: 8.2
  SAY #71784 /* ~Does it look like an ambush?  Do you suppose my slaughtered comrades, here, will attack you?  I wouldn't blame you for the thought, but I'm hardly in the mood for frivolities.~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0 10.0 9.0
  SAY #71785 /* ~I figured you'd be coming back to Amkethran soon enough... and so I waited for you.  I have a proposition, if you're interested.~ */
  IF ~~ THEN REPLY #71791 /* ~What?  After all you've pulled on me?  Forget it!~ */ GOTO 13
  IF ~~ THEN REPLY #71792 /* ~I'd rather you stand still and let me kill you now.~ */ GOTO 13
  IF ~Global("SaemonPlot","GLOBAL",0)~ THEN REPLY #71793 /* ~You've double-crossed me before.  Why should I trust you now?~ */ GOTO 13
  IF ~Global("SaemonPlot","GLOBAL",1)~ THEN REPLY #71794 /* ~You've betrayed me constantly, even with those guards!  Why should I trust you?!~ */ GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.3 12.2 12.1 12.0
  SAY #71795 /* ~I've done only what I've had to, in the past.  I may owe you for my unfortunate rudeness, perhaps, but overall you and I are pretty even, <CHARNAME>.~ */
  IF ~~ THEN REPLY #71796 /* ~What?!  Even?!~ */ GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.0
  SAY #71797 /* ~You don't think I had much of a choice with all that business in Spellhold, did you?  And for all my troubles, for bringing you to the island, I ended up losing my best ship.~ */
  IF ~~ THEN GOTO 15
END

IF ~~ THEN BEGIN 15 // from: 14.0
  SAY #71798 /* ~And then there's the business of my poor men, here.  If it wasn't for you and all those other Bhaalspawn, my little smuggling business here could have continued quietly as it was.~ */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 15.0
  SAY #71799 /* ~As it is, I've lost nearly all my investment.  And I'm not very happy about it.~ */
  IF ~~ THEN REPLY #71800 /* ~You're not laying all your misfortunes at *my* feet, are you?~ */ GOTO 20
  IF ~~ THEN REPLY #71801 /* ~Don't try squirming out of the retribution you deserve, Saemon!  It won't work!~ */ GOTO 19
  IF ~~ THEN REPLY #71802 /* ~I don't care a whit about your investment.  I have my own problems.~ */ GOTO 18
  IF ~Global("metgith","GLOBAL",1)~ THEN REPLY #71803 /* ~And what about the business with the Githyanki?  I suppose you were forced into that, too?~ */ GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.3
  SAY #71804 /* ~Well, no, that's true.  Would you believe I truly didn't intend that to work out as it did?  No, I suppose you wouldn't.  Well, you survived just fine... so no harm done, right?~ */
  IF ~~ THEN GOTO 19
END

IF ~~ THEN BEGIN 18 // from: 16.2
  SAY #71805 /* ~No doubt, but your and my most immediate problem may have more in common than you think.  Just hear me out for a moment, <CHARNAME>, and then you can go ahead and kill me if you want.~ */
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 19 // from: 20.0 17.0 16.1
  SAY #71806 /* ~We could argue about who's done what to whom all day.  Or maybe less, as I imagine my being chopped to bits might make your argument a little more effective than mine.  Regardless, hear me out first.~ */
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 20 // from: 16.0
  SAY #71807 /* ~Did I say that?  But you are involved at least indirectly, whether you had any malicious intent or no.  I certainly don't harbor any ill-will towards you, after all.~ */
  IF ~~ THEN GOTO 19
END

IF ~~ THEN BEGIN 21 // from: 19.0 18.0
  SAY #71808 /* ~I blame Balthazar, if anything.  He's made my life nothing short of difficult and now he's gone and curtailed me completely.  And harmed some perfectly innocent people.  He's got to pay for that.~ */
  IF ~~ THEN GOTO 22
END

IF ~~ THEN BEGIN 22 // from: 21.0
  SAY #71809 /* ~As I understand it, you've got to get inside the monastery.  And I've got a couple of ideas which might enable you to do that.  Interested?~ */
  IF ~~ THEN REPLY #71810 /* ~I'll listen to what you have to say.  I promise nothing more than that.~ */ GOTO 25
  IF ~~ THEN REPLY #71811 /* ~I have no interest in hearing anything you have to offer.~ */ GOTO 23
  IF ~~ THEN REPLY #71812 /* ~No.  I think killing you will make me much, much happier.~ */ GOTO 23
END

IF ~~ THEN BEGIN 23 // from: 22.2 22.1
  SAY #71813 /* ~It's a mistake, <CHARNAME>.  Believe or not, we make a good team.~ */
  IF ~~ THEN REPLY #71814 /* ~Well, I'll just have to live with the loss.~ */ GOTO 24
  IF ~~ THEN REPLY #71815 /* ~I plan on parting your head from your shoulders.  I hear they're a good team, too.~ */ GOTO 24
  IF ~~ THEN REPLY #71816 /* ~Fine, fine.  I'll listen to what you have to say.~ */ GOTO 25
END

IF ~~ THEN BEGIN 24 // from: 23.1 23.0
  SAY #71817 /* ~Ah.  I see.  Well, you'll have to excuse me if I make my exit, then.  Good luck to you, <CHARNAME>.~ */
  IF ~~ THEN DO ~ApplySpell(Myself,WIZARD_INVISIBILITY)
ApplySpellRES("runrun",Myself)
EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 25 // from: 23.2 22.0
  SAY #71818 /* ~Now I knew you were more reasonable than you seemed.  Alright, then.  The best way I can think of to get inside the monastery is through disguise.  My men, ah, scavenged a few uniforms.~ */
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26 // from: 25.0
  SAY #71819 /* ~It's enough for you and me to bluff our way past the gate guards.  I'd need to go with you, naturally... I've done this before and I know the proper codes to tell them.~ */
  IF ~~ THEN REPLY #71820 /* ~And what do you get out of this?~ */ GOTO 27
  IF ~~ THEN REPLY #71821 /* ~You want to come with me?  Forget it.  Not interested.~ */ GOTO 28
  IF ~~ THEN REPLY #71822 /* ~The best way?  What other way is there?~ */ GOTO 28
END

IF ~~ THEN BEGIN 27 // from: 28.0 26.0
  SAY #71823 /* ~I get to exact revenge on Balthazar.  I'm a man with a reputation to uphold, after all.  I can't allow slights like this to pass, you know.  And besides... I suppose I owe you one.~ */
  IF ~~ THEN REPLY #71824 /* ~No.  I'm not interested in you coming with me.~ */ GOTO 28
  IF ~~ THEN REPLY #71825 /* ~And what else?  You mentioned that was only the best way.~ */ GOTO 28
  IF ~~ THEN REPLY #71826 /* ~Alright, then.  If it will get me inside, I'm game for it.~ */ GOTO 32
  IF ~~ THEN REPLY #71827 /* ~Fine.  We'll do that.  Double-cross me again, Saemon, and it'll be the *last* time.  Got it?~ */ GOTO 32
END

IF ~~ THEN BEGIN 28 // from: 27.1 27.0 26.2 26.1
  SAY #71828 /* ~Well the other way is quite dangerous.  I wouldn't suggest it... and I couldn't go with you.  Balthazar has, ah, warded that route against me.  Against me specifically, I mean.~ */
  IF ~~ THEN REPLY #71829 /* ~Why do you want to come with me?  What do you get out of it?~ */ GOTO 27
  IF ~~ THEN REPLY #71830 /* ~Fine, fine.  We'll do your disguise suggestion.~ */ GOTO 32
  IF ~~ THEN REPLY #71831 /* ~I don't care if you come or not.  What's this other way?~ */ GOTO 29
END

IF ~~ THEN BEGIN 29 // from: 28.2
  SAY #71832 /* ~It's through the graveyard cavern just west of here.  I hear it's full of undead creatures... but I could be wrong.  Anyhow, there's a group of caskets high up on platforms.  One of them leads into the monastery.~ */
  IF ~!Dead("amfaheed")~ THEN GOTO 30
  IF ~Dead("amfaheed")~ THEN GOTO 31
END

IF ~~ THEN BEGIN 30 // from: 29.0
  SAY #71833 /* ~But you'd need a key to open that casket.  And I no longer have it... and there's no guarantee who has it now will give it to you.  But if you're sure you want to go that way...~ */
  IF ~~ THEN REPLY #71835 /* ~I'll manage.  Tell me where this key is.~ */ GOTO 33
  IF ~~ THEN REPLY #71836 /* ~You made your point.  We'll do the disguise, as you suggested.~ */ GOTO 32
  IF ~~ THEN REPLY #71837 /* ~I don't want your help, period, Saemon.  I don't trust you.  I'll find my own way.~ */ GOTO 35
END

IF ~~ THEN BEGIN 31 // from: 29.1
  SAY #71834 /* ~But you'd need a key to open that casket.  Fortunately, you happened to kill the person who last had the key and one of my men, ah, acquired it.  I can sell you that key for a nice fee, if you like.~ */
  IF ~~ THEN REPLY #71838 /* ~No, I don't like.  Give it to me, now, or suffer the consequences.~ */ GOTO 36
  IF ~~ THEN REPLY #71839 /* ~Sell?  How much?~ */ GOTO 37
  IF ~~ THEN REPLY #71840 /* ~I'm not interested in bargaining with you, Saemon.  We'll do the disguise route.~ */ GOTO 32
  IF ~~ THEN REPLY #71841 /* ~Forget it.  I don't want your help, period.  I'll find my own way.~ */ GOTO 35
END

IF ~~ THEN BEGIN 32 // from: 37.2 31.2 30.1 28.1 27.3 27.2
  SAY #71842 /* ~Alright, then.  Give me a few moments to prepare.  Come and talk to me again once you're ready to go, alright?~ */
  IF ~~ THEN DO ~SetGlobal("SaemonDisguise","GLOBAL",1)~ EXIT
END

IF ~~ THEN BEGIN 33 // from: 30.0
  SAY #71843 /* ~If that's the way you want it, I doubt I can dissuade you.  So be it.  Find the gentleman Faheed, here in Amkethran.  You'll likely find him indoors somewhere.  Get the key from him, if you can.~ */
  IF ~~ THEN GOTO 34
END

IF ~~ THEN BEGIN 34 // from: 33.0
  SAY #71844 /* ~I trust that's enough help for you.  Hopefully Balthazar can suffer just as much without my presence, yes?  Perhaps we shall meet again...~ */
  IF ~~ THEN DO ~SetGlobal("SaemonFaheed","GLOBAL",1)
ApplySpell(Myself,WIZARD_INVISIBILITY)
ApplySpellRES("runrun",Myself)
EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 35 // from: 39.2 37.3 31.3 30.2
  SAY #71845 /* ~I don't suppose there's some way to convince you otherwise?  No?  Ah, well.  So be it.  I'm sure you'll find some way to do what you wish.  Excuse me, then, while I make my exit.  Good luck, <CHARNAME>.~ */
  IF ~~ THEN DO ~ApplySpell(Myself,WIZARD_INVISIBILITY)
ApplySpellRES("runrun",Myself)
EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 36 // from: 37.1 31.0
  SAY #71846 /* ~Gah.  Fine, fine.  I suppose Balthazar will suffer just as much without my presence.  Here you go, <CHARNAME>.  Take the key and good luck.  Now excuse me as I make my exit.~ */
  IF ~~ THEN DO ~GiveItemCreate("plot17b",Player1,0,0,0)
ApplySpell(Myself,WIZARD_INVISIBILITY)
ApplySpellRES("runrun",Myself)
EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 37 // from: 31.1
  SAY #71847 /* ~Oh, I don't know.  100,000 gold?  That'll get me a new ship.  And, after all... it's not like you'll need gold where you're going, am I right?~ */
  IF ~PartyGoldGT(99999)~ THEN REPLY #71848 /* ~Right you are.  Here you go... and this had better work.~ */ DO ~TakePartyGold(100000)
DestroyGold(100000)
GiveItemCreate("plot17b",Player1,0,0,0)~ GOTO 38
  IF ~~ THEN REPLY #71849 /* ~Forget it!  I'm not paying you 100,000 gold!!  Hand over the key... now.~ */ GOTO 36
  IF ~~ THEN REPLY #71850 /* ~Never mind.  We'll do the disguise route, as you suggested.~ */ GOTO 32
  IF ~~ THEN REPLY #71851 /* ~Trying to rip me off again, eh?  Forget it, Saemon.  I don't trust you and I don't want your help.  Period.~ */ GOTO 35
END

IF ~~ THEN BEGIN 38 // from: 37.0
  SAY #71852 /* ~Fair enough.  You're a good sport, <CHARNAME>.  Good luck to you.  Now... excuse me while I make my exit...~ */
  IF ~~ THEN DO ~ApplySpell(Myself,WIZARD_INVISIBILITY)
ApplySpellRES("runrun",Myself)
EscapeArea()~ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 42 43 even though they appear after this state */
~Global("Enclave","GLOBAL",2)
Global("SaemonDisguise","GLOBAL",1)~ THEN BEGIN 39 // from:
  SAY #71853 /* ~Are you ready to go, then?  I've got the uniforms ready.~ */
  IF ~~ THEN REPLY #71854 /* ~Fine, let's go.  But you'd better be on the level.~ */ GOTO 41
  IF ~~ THEN REPLY #71855 /* ~No, not yet.  Give me some time, yet.~ */ GOTO 40
  IF ~~ THEN REPLY #71856 /* ~Forget it.  I've decided I can't trust you, rogue.~ */ DO ~SetGlobal("SaemonDisguise","GLOBAL",0)~ GOTO 35
END

IF ~~ THEN BEGIN 40 // from: 39.1
  SAY #71857 /* ~Give Balthazar enough time and he'll come to us.  But go ahead... I'll wait.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 41 // from: 39.0
  SAY #71858 /* ~Would I steer you wrong, <CHARNAME>?~ */
  IF ~~ THEN DO ~ClearAllActions()
SetGlobal("SaemonDisguise","GLOBAL",2)
StartCutSceneMode()
StartCutScene("cut241a")
~ EXIT
END

IF WEIGHT #0 ~Global("Enclave","GLOBAL",2)
Global("Attacked","LOCALS",1)~ THEN BEGIN 42 // from:
  SAY #71859 /* ~I must say I've never liked this side of you, <CHARNAME>.  Ah, well, excuse me while I beat a retreat, as they say...~ */
  IF ~~ THEN DO ~ApplySpell(Myself,WIZARD_INVISIBILITY)
ApplySpellRES("runrun",Myself)
EscapeArea()~ EXIT
END

IF WEIGHT #1 ~!Global("Enclave","GLOBAL",2)
Global("Attacked","LOCALS",1)~ THEN BEGIN 43 // from:
  SAY #71860 /* ~Oops!  I didn't think you had this many hard feelings about me, <GABBER>.  I, ah... better let you cool down for a while!~ */
  IF ~~ THEN DO ~SetGlobal("Attacked","LOCALS",0)
ApplySpell(Myself,WIZARD_INVISIBILITY)
ApplySpellRES("runrun",Myself)
EscapeArea()~ EXIT
END

IF ~~ THEN BEGIN 44 // from: AMMONK03:0.0
  SAY #71864 /* ~I brought <PRO_HIMHER>.  But <PRO_HESHE> may be more than you can handle.  I drugged this one once before... I owe <PRO_HIMHER> one.~ */
  IF ~~ THEN EXTERN ~AMMONK03~ 1
END

IF ~~ THEN BEGIN 45 // from:
  SAY #71865 /* ~Well, I did my best, <CHARNAME>.  Sorry, but Balthazar had me over a barrel, so to speak.  Good luck!~ */
  IF ~~ THEN DO ~ApplySpell(Myself,WIZARD_INVISIBILITY)
ApplySpellRES("runrun",Myself)
EscapeArea()
~ EXIT
END
