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

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

IF ~~ THEN BEGIN 0 // from: AMMONK02:0.0
  SAY #66919 /* ~This is ridiculous!  The Monastery has never objected to our actions in the past.~ [AMCARR07] */
  IF ~~ THEN EXTERN ~AMMONK02~ 1
END

IF ~~ THEN BEGIN 1 // from: AMMONK02:1.0
  SAY #66920 /* ~Esamon isn't here - I haven't seen him in weeks.~ [AMCARR08] */
  IF ~~ THEN EXTERN ~AMMONK02~ 2
END

IF ~~ THEN BEGIN 2 // from: AMMONK02:2.0
  SAY #66921 /* ~No, you can't do this... this is an outrage!  When did the Monastery become a puppet slave to the whims of a bunch of foreign mercenaries?~ [AMCARR09] */
  IF ~~ THEN EXTERN ~AMMONK02~ 3
END

IF WEIGHT #0 ~Global("SmugglerPlot","GLOBAL",1)
!See([ENEMY.0.0.MONK])
!See([NEUTRAL.0.0.MONK])
CombatCounter(0)~ THEN BEGIN 3 // from:
  SAY #66922 /* ~Thank you for your assistance in this... unpleasant matter.  I am sure if Esamon were here himself he would offer his thanks as well.~ [AMCARR11] */
  IF ~OR(2)
CheckStatGT(LastTalkedToBy,14,INT)
Global("SaemonPlot","GLOBAL",1)~ THEN REPLY #66923 /* ~Esamon?  You mean Saemon Havarian, don't you?~ */ DO ~SetGlobalTimer("ThievesScoot","AR5504",ONE_DAY)~ GOTO 9
  IF ~~ THEN REPLY #66924 /* ~Looks like your leader has hung you out to dry, Carras.~ */ DO ~SetGlobalTimer("ThievesScoot","AR5504",ONE_DAY)~ GOTO 4
  IF ~~ THEN REPLY #66925 /* ~But he's not here, is he?  Lucky for him.~ */ DO ~SetGlobalTimer("ThievesScoot","AR5504",ONE_DAY)~ GOTO 4
  IF ~Global("SaemonPlot","GLOBAL",1)~ THEN REPLY #66972 /* ~I've got a bone to pick with Esamon... Saemon... whatever you call him!~ */ DO ~SetGlobalTimer("ThievesScoot","AR5504",ONE_DAY)~ GOTO 9
END

IF ~~ THEN BEGIN 4 // from: 9.3 9.2 9.0 3.2 3.1
  SAY #66926 /* ~Ahem... yes, well... be that as it may, I still think some type of reward is in order for helping us in this matter.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #66927 /* ~With our erstwhile leader gone, the best I can do is offer you a discount on goods.  The scope of my authority is somewhat limited in his absence, you understand.~ */
  IF ~~ THEN REPLY #66928 /* ~You mean every time I come back here I'll get a discount?~ */ GOTO 6
  IF ~~ THEN REPLY #66929 /* ~Maybe I'll come back later and take you up on that offer.~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.1 5.0
  SAY #66930 /* ~Of course you must realize that we cannot stay here in Amkethran, now that we have been involved in the death of several of Balthazar's envoys.~ */
  IF ~~ THEN DO ~SetGlobal("SmugglerPlot","GLOBAL",2)~ GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #66932 /* ~I suggest you use your discount soon.  If you return tomorrow, our little "store" will be long gone.  We cannot stay and suffer the wrath of Balthazar's vengeance.~ */
  IF ~~ THEN REPLY #66936 /* ~What about my own involvement in killing Balthazar's monks?~ */ GOTO 8
  IF ~~ THEN REPLY #67054 /* ~Very well, let me see your services.~ */ GOTO 15
  IF ~~ THEN REPLY #67056 /* ~I think I'll be going now.~ */ GOTO 14
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #66937 /* ~There are no witnesses to the battle but ourselves, and we will make sure Balthazar knows nothing of your involvement.~ */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 9 // from: 3.3 3.0
  SAY #66942 /* ~Our leader goes by many names, but I assure you I do not know his current whereabouts.  Whatever your trouble with... Saemon, I had nothing to do with it.~ */
  IF ~~ THEN REPLY #67023 /* ~If you're lying to me, Carras, I'll torture you until you beg for the merciful release of death.~ */ GOTO 4
  IF ~~ THEN REPLY #67025 /* ~I'd rather kill Saemon, but for now I'll just extract my revenge on you!~ */ DO ~Shout(79)
Enemy()~ EXIT
  IF ~~ THEN REPLY #73947 /* ~I owe him a debt of pain.  You can tell him that.~ */ GOTO 4
  IF ~~ THEN REPLY #73948 /* ~True enough.  He'll turn up eventually, somehow I just know it.~ */ GOTO 4
END

IF WEIGHT #1 ~False()~ THEN BEGIN 10 // from:
  SAY #67026 /* ~You are not the first who would rather taste our blades than see our wares!~ [AMCARR12] */
  IF ~~ THEN DO ~Enemy()~ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 16 even though they appear after this state */
~Global("SmugglerPlot","GLOBAL",0)~ THEN BEGIN 11 // from:
  SAY #67027 /* ~Welcome to our little store!  I'm sure you'll find we stock the finest merchandise procured from lands near and far... without the added cost of tariffs or taxes passed on to the consumer.~ [AMCARR10] */
  IF ~~ THEN REPLY #67028 /* ~I'd like to see your services.~ */ GOTO 13
  IF ~Global("SmugglerTalk","GLOBAL",0)~ THEN REPLY #67030 /* ~What is this place? Why have you built a store inside this cave?~ */ GOTO 12
  IF ~~ THEN REPLY #67032 /* ~I'm looking for a woman named Melissan.~ */ GOTO 24
  IF ~~ THEN REPLY #67035 /* ~What can you tell me about Balthazar and his followers?~ */ GOTO 19
  IF ~Global("SmugglerTalk","GLOBAL",0)~ THEN REPLY #67036 /* ~This merchandise is stolen, isn't it?~ */ GOTO 12
  IF ~~ THEN REPLY #67039 /* ~I'll be going now.~ */ GOTO 14
END

IF ~~ THEN BEGIN 12 // from: 11.4 11.1
  SAY #67047 /* ~We are simply an alternative to shopping in the more traditional stores.  Some might call our little operation a "black market", but I find that term somewhat distasteful.~ */
  IF ~~ THEN REPLY #67153 /* ~Who's in charge of this place?~ */ GOTO 17
END

IF ~~ THEN BEGIN 13 // from: 24.0 23.0 21.1 18.0 11.0
  SAY #67048 /* ~Feel free to look around, but please be discreet when recommending us.  We smugglers... uh, I mean *entrepreneurs* are somewhat frowned upon by the town officials.~ */
  IF ~~ THEN DO ~StartStore("amsmug01",LastTalkedToBy())~ EXIT
END

IF ~~ THEN BEGIN 14 // from: 24.1 23.1 22.1 21.2 16.1 11.5 7.2
  SAY #67057 /* ~As you wish.  If fortunes permit, perhaps we shall meet again.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 15 // from: 7.1
  SAY #67059 /* ~Peruse our wares, but do not tarry.  Time is money, and we can afford to waste neither now.~ */
  IF ~~ THEN DO ~StartStore("amsmug02",LastTalkedToBy())~ EXIT
END

IF WEIGHT #2 ~OR(2)
Global("ThfArrest","GLOBAL",1)
Global("SmugglerPlot","GLOBAL",2)~ THEN BEGIN 16 // from: 8.0
  SAY #67061 /* ~I cannot waste time with idle banter right now.  Do you wish to buy something before we pack up our merchandise?~ */
  IF ~~ THEN REPLY #67062 /* ~Yes, I would like to see your wares.~ */ DO ~StartStore("amsmug02",LastTalkedToBy())~ EXIT
  IF ~~ THEN REPLY #67063 /* ~No thanks.  I'll be going now.~ */ GOTO 14
END

IF ~~ THEN BEGIN 17 // from: 12.0
  SAY #67152 /* ~I suppose there is no harm... everyone in town knows the name of Esamon, our leader.  Esamon's exploits are legend among the smugglers and pirates of these lands.~ */
  IF ~~ THEN GOTO 18
END

IF ~~ THEN BEGIN 18 // from: 17.0
  SAY #67154 /* ~But Esamon is not here right now... he has been absent for several months, attending to some of his many ventures in other cities.  For now I, Carras, am in charge.~ */
  IF ~~ THEN GOTO 13
  IF ~IsValidForPartyDialog("Edwin")~ THEN EXTERN ~EDWIN25J~ 1
  IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDO25J~ 3
END

IF ~~ THEN BEGIN 19 // from: 24.2 11.3
  SAY #67155 /* ~Ah, the monks.  Let's just say we all have an understanding... they leave us alone and we leave them alone.~ */
  IF ~~ THEN REPLY #67156 /* ~So you wouldn't know any way I could get inside the Monastery?~ */ GOTO 20
END

IF ~~ THEN BEGIN 20 // from: 19.0
  SAY #67157 /* ~Inside?  Impossible.  Even before Balthazar became the leader that place was a fortress.  And now, with those mages he's hired for extra protection... forget it.  No one gets inside.~ */
  IF ~~ THEN REPLY #67158 /* ~But I've heard rumors you smugglers know a way to get inside.~ */ GOTO 21
  IF ~~ THEN REPLY #67159 /* ~Well, do you know of anyway I can get a meeting with Balthazar?~ */ GOTO 22
END

IF ~~ THEN BEGIN 21 // from: 20.0
  SAY #67160 /* ~You shouldn't go around believing every rumor you hear.  It'll get you into trouble.~ */
  IF ~Global("metbal","GLOBAL",1)~ THEN REPLY #67161 /* ~Well, do you know of a way I could get a meeting with Balthazar?~ */ GOTO 22
  IF ~Global("metbal","GLOBAL",0)~ THEN REPLY #73973 /* ~Show me your merchandise, then.~ */ GOTO 13
  IF ~Global("metbal","GLOBAL",0)~ THEN REPLY #73974 /* ~Yeah, thanks for the tip.  I'll be on my way.~ */ GOTO 14
  IF ~Global("metbal","GLOBAL",0)~ THEN REPLY #73975 /* ~Do you know anything about Melissan, then?~ */ GOTO 24
END

IF ~~ THEN BEGIN 22 // from: 21.0 20.1
  SAY #67162 /* ~Balthazar doesn't speak to anybody... ever.~ */
  IF ~Global("metbal","GLOBAL",1)~ THEN REPLY #67163 /* ~He spoke to me when I first arrived in town.~ */ GOTO 23
  IF ~Global("metbal","GLOBAL",0)~ THEN REPLY #73976 /* ~Well, I was told he'd speak to me.  Perhaps I should go and find out.~ */ GOTO 14
END

IF ~~ THEN BEGIN 23 // from: 22.0
  SAY #67164 /* ~He did?  How very strange.  Well, if that's true you probably know more about Balthazar than I do.  Anything else we can help you with?~ */
  IF ~~ THEN REPLY #67165 /* ~Yes, I'd like to see your merchandise.~ */ GOTO 13
  IF ~~ THEN REPLY #67166 /* ~No, I'll be going now.~ */ GOTO 14
  IF ~~ THEN REPLY #67167 /* ~What do you know about Melissan?~ */ GOTO 24
END

IF ~~ THEN BEGIN 24 // from: 23.2 21.3 11.2
  SAY #67168 /* ~I know the Lady Melissan used to be on good terms with Balthazar and the Monastery, but I haven't seen much of her recently.  Anything else I can help you with?~ */
  IF ~~ THEN REPLY #67169 /* ~I'd like to see your merchandise.~ */ GOTO 13
  IF ~~ THEN REPLY #67170 /* ~No, I'll be going now.~ */ GOTO 14
  IF ~~ THEN REPLY #67171 /* ~What can you tell me about Balthazar and the Monastery?~ */ GOTO 19
END
