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

BEGIN ~AMBAR01~ 4 // non-zero flags may indicate non-pausing dialogue

IF ~Global("TalkedToAmbar01","GLOBAL",0)
!Dead("balth")~ THEN BEGIN 0 // from:
  SAY #67024 /* ~'Allo to you, my friend!  More travelers coming to tiny little Amkethran, eh?  Be you yet another soldier-for-hire that our good Balthazar has called for?~ */
  IF ~~ THEN REPLY #67029 /* ~No, I'm not.~ */ DO ~SetGlobal("TalkedToAmbar01","GLOBAL",1)~ GOTO 2
  IF ~~ THEN REPLY #67031 /* ~Mind your own business, barkeep.~ */ DO ~SetGlobal("TalkedToAmbar01","GLOBAL",1)~ GOTO 1
  IF ~~ THEN REPLY #67033 /* ~And what if I were?~ */ DO ~SetGlobal("TalkedToAmbar01","GLOBAL",1)~ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.2 0.1
  SAY #67034 /* ~Oh, I did not mean to imply anything by my question, dear <MANWOMAN>.  All are welcome in the Zephir, never let it be said that Zakee Rafeha turned aside a customer, no sir!~ */
  IF ~~ THEN REPLY #67040 /* ~Can I ask you a few questions?~ */ GOTO 3
  IF ~~ THEN REPLY #67041 /* ~How about some service, then?~ */ GOTO 4
  IF ~~ THEN REPLY #67042 /* ~I'll be on my way.~ */ GOTO 5
END

IF ~~ THEN BEGIN 2 // from: 0.0
  SAY #67037 /* ~No?  It is not often that we get travelers passing through Amkethran, especially in these times.  Welcome to the Zephir, then, my good <MANWOMAN>!  Zakee Rafeha at your service!~ */
  IF ~~ THEN REPLY #67043 /* ~Can I ask you a few questions?~ */ GOTO 3
  IF ~~ THEN REPLY #67044 /* ~How about some service, then?~ */ GOTO 4
  IF ~~ THEN REPLY #67045 /* ~I'll be on my way.~ */ GOTO 5
END

IF ~~ THEN BEGIN 3 // from: 20.0 2.0 1.0
  SAY #67046 /* ~Certainly, certainly.  I am not so overcome with business that I cannot answer a few queries now and then.  Ho ho!  Ask away, dear <MANWOMAN>!~ */
  IF ~~ THEN REPLY #67049 /* ~What can you tell me about this Balthazar?~ */ GOTO 6
  IF ~~ THEN REPLY #67050 /* ~Do you know anything about a woman named Melissan?~ */ GOTO 11
  IF ~Global("metbal","GLOBAL",1)
!Dead("sendai")~ THEN REPLY #73768 /* ~Do you know anything about someone named Sendai?~ */ GOTO 34
  IF ~Global("metbal","GLOBAL",1)
!Dead("abazigal")~ THEN REPLY #73769 /* ~Do you know anything about someone named Abazigal?~ */ GOTO 37
  IF ~GlobalLT("Enclave","GLOBAL",2)~ THEN REPLY #67051 /* ~Tell me about the order of monks in the fortress.~ */ GOTO 13
  IF ~~ THEN REPLY #67058 /* ~What are all these mercenaries about for?~ */ GOTO 15
  IF ~GlobalGT("Enclave","GLOBAL",1)
!Dead("amfaheed")~ THEN REPLY #71898 /* ~Do you know how to get inside the monastery?~ */ GOTO 22
  IF ~GlobalGT("Enclave","GLOBAL",1)
Dead("amfaheed")~ THEN REPLY #71912 /* ~Do you know how to get inside the monastery?~ */ GOTO 25
  IF ~Global("TalkedToMarlowe","GLOBAL",1)~ THEN REPLY #73763 /* ~What can you tell me about that fellow Marlowe?~ */ GOTO 32
  IF ~~ THEN REPLY #67052 /* ~Never mind.  I would prefer some service.~ */ GOTO 4
  IF ~~ THEN REPLY #67053 /* ~Never mind.  I'll be on my way.~ */ GOTO 5
END

IF ~~ THEN BEGIN 4 // from: 21.9 20.1 3.9 2.1 1.1
  SAY #67055 /* ~The many pleasures of the Zephir are yours to indulge in, good customer!  If I have the supply, that is... these days, one can never be sure.~ */
  IF ~~ THEN DO ~StartStore("ambar01",LastTalkedToBy)~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 21.10 20.2 3.10 2.2 1.2
  SAY #67060 /* ~As you wish.  Walk carefully, good <MANWOMAN>... not even the streets of tiny Amkethran are safe these nights.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from: 21.0 3.0
  SAY #67064 /* ~Balthazar is the leader of the monastic order within the fortress, and has been for quite some time.  He is... not overly popular, as I'm sure you're well aware.~ */
  IF ~~ THEN REPLY #67065 /* ~Perhaps.  Tell me what you know.~ */ GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #67066 /* ~The monks have always been supportive of Amkethran, providing guidance when it was necessary and even protection from the creatures that sometimes come out of the Calim Desert.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #67067 /* ~We have always been grateful for their presence, they and the smugglers who bring us supplies to live.  Since Balthazar assumed leadership of the order, however, nothing has been the same.~ */
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #67068 /* ~The order ignores us.  They apply restrictions on the smugglers and have even killed some, restricting the supplies the village can be brought.  And then there are all the mercenaries...~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #67069 /* ~It... it is to be expected, I suppose.  Many say that Balthazar is one of the terrible spawn of the dead god, Bhaal.  He prepares for war, no doubt, and we simply pray that this war does not come to Amkethran.

~ */
  IF ~~ THEN REPLY #67073 /* ~Balthazar is a Bhaalspawn?~ */ GOTO 17
END

IF ~~ THEN BEGIN 11 // from: 21.1 3.1
  SAY #67076 /* ~Melissan is a protector of all of Bhaal's children, it is said, just as Elminster protects those who harp.  Why such a mage would protect godspawn who only bring terror and destruction I do not know... nor does anyone.~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #67077 /* ~I know little else of her, however, my friend.  No-one has told me of seeing Melissan the mage for many months, now.~ */
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 13 // from: 21.4 3.4
  SAY #67083 /* ~There is little to say.  The order built their fortress in this remote place long ago.  It is said they are an ancient order of warriors that once fought for an ancient Shah and were exiled when he was murdered.~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.0
  SAY #67084 /* ~The village grew up around the fortress, depending on their goodwill and guidance... which was received in abundance.  At least, that is, until Balthazar became their leader.  Now we are strangers.~ */
  IF ~~ THEN REPLY #67086 /* ~How does one get inside this fortress?~ */ GOTO 18
END

IF ~~ THEN BEGIN 15 // from: 21.5 3.5
  SAY #67093 /* ~If I could tell you that, casadhi, then I would know far more of the goings-on of this world than I would like.  I hear stories, occasionally, from the mercenaries when they come here and they frighten me.~ */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 15.0
  SAY #67094 /* ~I have heard tales of great wars and destruction in the lands beyond the desert, and while the order has never involved itself in such things before, it seems Balthazar has changed things.  He plans a war... a great and terrible war... but I do not know against whom.~ */
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 17 // from: 10.0
  SAY #67100 /* ~So it is said.  He was brought here long ago by the mage, Melissan, who protects him.  We fear that the old tales of destruction brought by the children of Bhaal may come true, after all.~ */
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 18 // from: 14.0
  SAY #67106 /* ~I do not know.  Balthazar sees no-one, and has not for months.  The gates are well-guarded and even protected by spells placed by Balthazar's hired sorcerers.  To force entry would be foolish.~ */
  IF ~True()~ THEN GOTO 19
  IF ~IsValidForPartyDialog("Cernd")~ THEN EXTERN ~CERND25J~ 3
  IF ~IsValidForPartyDialog("Imoen")~ THEN EXTERN ~IMOEN25J~ 21
  IF ~IsValidForPartyDialog("Sarevok")~ THEN EXTERN ~SAREV25J~ 8
END

IF ~~ THEN BEGIN 19 // from: 18.0
  SAY #67107 /* ~Perhaps the smugglers know of a way in, it is hard to say.  Word carries of boasts by a few of them that they have stolen into the fortress secretly for acts of thievery.  This may be nothing more than idle tales, however.~ */
  IF ~~ THEN GOTO 21
END

IF ~Global("TalkedToAmbar01","GLOBAL",1)
!Dead("balth")~ THEN BEGIN 20 // from:
  SAY #67114 /* ~Zakee Rafeha at your service, dear customer!  Name your desire and the Zephir will endeavor to provide it to you!~ */
  IF ~~ THEN REPLY #67115 /* ~I'd like to ask you a few questions, if I could.~ */ GOTO 3
  IF ~~ THEN REPLY #67116 /* ~Let me see what you have available.~ */ GOTO 4
  IF ~~ THEN REPLY #67117 /* ~Never mind, I'll be going.~ */ GOTO 5
END

IF ~~ THEN BEGIN 21 // from: 39.0 36.0 33.0 30.0 29.0 28.1 24.0 19.0 17.0 16.0 12.0
  SAY #71899 /* ~Is there something else I can answer for you, my good <MANWOMAN>?~ */
  IF ~~ THEN REPLY #71900 /* ~What can you tell me about this Balthazar?~ */ GOTO 6
  IF ~~ THEN REPLY #71901 /* ~Do you know anything about a woman named Melissan?~ */ GOTO 11
  IF ~Global("metbal","GLOBAL",1)
!Dead("sendai")~ THEN REPLY #73766 /* ~Do you know anything about someone named Sendai?~ */ GOTO 34
  IF ~Global("metbal","GLOBAL",1)
!Dead("abazigal")~ THEN REPLY #73767 /* ~Do you know anything about someone named Abazigal?~ */ GOTO 37
  IF ~GlobalLT("Enclave","GLOBAL",2)~ THEN REPLY #71902 /* ~Tell me about the order of monks in the fortress.~ */ GOTO 13
  IF ~~ THEN REPLY #71903 /* ~What are all these mercenaries about for?~ */ GOTO 15
  IF ~GlobalGT("Enclave","GLOBAL",1)
!Dead("amfaheed")~ THEN REPLY #71904 /* ~Do you know how to get inside the monastery?~ */ GOTO 22
  IF ~GlobalGT("Enclave","GLOBAL",1)
Dead("amfaheed")~ THEN REPLY #71913 /* ~Do you know how to get inside the monastery?~ */ GOTO 25
  IF ~Global("TalkedToMarlowe","GLOBAL",1)~ THEN REPLY #73762 /* ~What can you tell me about that fellow Marlowe?~ */ GOTO 32
  IF ~~ THEN REPLY #71905 /* ~No, I would prefer some service.~ */ GOTO 4
  IF ~~ THEN REPLY #71906 /* ~Never mind.  I'll be on my way.~ */ GOTO 5
END

IF ~~ THEN BEGIN 22 // from: 21.6 3.6
  SAY #71907 /* ~Ordinarily I would say no, my friend.  But it comes to mind that I have heard this question asked numerous times before, and recently... so I am thinking that perhaps there is someone who can help you, after all.~ */
  IF ~~ THEN DO ~SetGlobal("ZakeeFaheed","GLOBAL",1)~ GOTO 23
END

IF ~~ THEN BEGIN 23 // from: 22.0
  SAY #71908 /* ~A pair of adventurers from Calimshan came to Amkethran months ago.  They seem a quiet pair, and properly married, so I asked no question of them.~ */
  IF ~~ THEN GOTO 24
END

IF ~~ THEN BEGIN 24 // from: 23.0
  SAY #71911 /* ~They have been asking about the fortress, as well.  Perhaps they could help you.  I speak of Faheed and Majira... they live in a home here in the village, if you wish to seek them out.~ */
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 25 // from: 21.7 3.7
  SAY #71914 /* ~Hmmm.  I would direct you to an adventurer I know in the village for such information, one Faheed... but you killed him, as I understand it.  A shame.  He was a good man.~ */
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26 // from: 25.0
  SAY #71915 /* ~I know that the smugglers were interested in his home after you left the place.  They took most of his belongings... perhaps they have something you require.  I am told, however, that they are dead, as well.~ */
  IF ~OR(2)
Alignment(LastTalkedToBy,MASK_GOOD)
ReputationGT(LastTalkedToBy,15)~ THEN GOTO 27
  IF ~!Alignment(LastTalkedToBy,MASK_GOOD)
!ReputationGT(LastTalkedToBy,15)~ THEN GOTO 28
END

IF ~~ THEN BEGIN 27 // from: 26.0
  SAY #71916 /* ~But... you look like a good <MANWOMAN>.  If... if I give you something that may help you, will you promise not to reveal where you acquired it?~ */
  IF ~~ THEN REPLY #71918 /* ~I promise.~ */ GOTO 29
  IF ~~ THEN REPLY #71919 /* ~Give it to me now.  I promise nothing.~ */ GOTO 29
  IF ~~ THEN REPLY #71920 /* ~Forget it.  I don't need your help.~ */ GOTO 30
END

IF ~~ THEN BEGIN 28 // from: 26.1
  SAY #71917 /* ~There is nothing else I can help you with, good <MANWOMAN>.  I am sorry.~ */
  IF ~~ THEN REPLY #71921 /* ~You must know something, man!  Out with it!!~ */ GOTO 31
  IF ~~ THEN REPLY #71922 /* ~Fine, fine.~ */ GOTO 21
END

IF ~~ THEN BEGIN 29 // from: 31.2 31.1 31.0 27.1 27.0
  SAY #71923 /* ~Then here.  This is a key that was dropped by one of the drunken mercenaries.  It opens the gate, as I understand it... and they don't know I have it.  Take it.  I want nothing more to do with it.~ */
  IF ~~ THEN DO ~GiveItemCreate("plot17a",LastTalkedToBy,0,0,0)~ GOTO 21
END

IF ~~ THEN BEGIN 30 // from: 31.3 27.2
  SAY #71924 /* ~I see.  Then there is nothing I can do.~ */
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 31 // from: 28.0
  SAY #71925 /* ~Well... there is something.  If... if I give you something that may help you, will you promise not to reveal where you acquired it?~ */
  IF ~~ THEN REPLY #71926 /* ~Yes, sure, whatever.~ */ GOTO 29
  IF ~~ THEN REPLY #71927 /* ~I promise.~ */ GOTO 29
  IF ~~ THEN REPLY #71928 /* ~I promise nothing.  Give it to me now or suffer.~ */ GOTO 29
  IF ~~ THEN REPLY #71929 /* ~Never mind.  I don't need your help.~ */ GOTO 30
END

IF ~~ THEN BEGIN 32 // from: 21.8 3.8
  SAY #73764 /* ~Only a little.  He is a stranger to Amkethran, arrived only weeks ago.  I do not believe he intended to remain... indeed, I suspect he has been traveling for some time... but his daughter fell ill, or so I hear.~ */
  IF ~~ THEN GOTO 33
END

IF ~~ THEN BEGIN 33 // from: 32.0
  SAY #73765 /* ~He has been a little crazed, as well.  He blames his daughter's illness upon the undead creatures that are said to have arisen in our graveyard cavern.  Poor soul... he drinks much, but it seems to do him little good.~ */
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 34 // from: 21.2 3.2
  SAY #73770 /* ~Hmmm.  I may, indeed, have heard such a name, dear <MANWOMAN>.  A few of the mercenaries that pass through the Zephir so often have whispered it more than once, and always with great fear.~ */
  IF ~~ THEN GOTO 35
END

IF ~~ THEN BEGIN 35 // from: 34.0
  SAY #73771 /* ~Sendai is a drow, a dark elf... or so I understand.  They say that Balthazar is mobilizing his army to attack her, and that they fear the denizens of the Underdark that such an attack would bring them face-to-face with.~ */
  IF ~~ THEN GOTO 36
END

IF ~~ THEN BEGIN 36 // from: 35.0
  SAY #73772 /* ~Some have said she is a powerful Bhaalspawn and an assassin, but few seem sure.  She lives beneath the earth like all drow, however.  I... do not know much more than this, however.~ */
  IF ~~ THEN GOTO 21
END

IF ~~ THEN BEGIN 37 // from: 21.3 3.3
  SAY #73773 /* ~Abazigal?  I have heard that name, I am sure.  Is it a person?  I am unsure... there was a group of captains in here once before, and they were talking in hushed tones about an 'army of dragons'.~ */
  IF ~~ THEN GOTO 38
END

IF ~~ THEN BEGIN 38 // from: 37.0
  SAY #73774 /* ~I believe it was during their talk that this name of yours came up.  I thought at the time that it was the name of the mountains this army was supposedly in, though I had never heard of such a range.~ */
  IF ~~ THEN GOTO 39
END

IF ~~ THEN BEGIN 39 // from: 38.0
  SAY #73775 /* ~The thought of fighting dragons is a sobering one.  If Balthazar is planning on battling such creatures with this army, he... well, I would wonder at his state of mind, perhaps.~ */
  IF ~~ THEN GOTO 21
END

IF ~Dead("Balth")~ THEN BEGIN 40 // from:
  SAY #73962 /* ~You... you have killed Balthazar.  And everyone else in the monastery?  I... I suppose Amkethran will just have to live on, despite our great loss.  Do you... wish something, my <LADYLORD>?~ */
  IF ~~ THEN REPLY #73963 /* ~Yes, let me see what you have.~ */ DO ~StartStore("ambar01",LastTalkedToBy)~ EXIT
  IF ~~ THEN REPLY #73964 /* ~No, I'll be on my way.~ */ GOTO 41
END

IF ~~ THEN BEGIN 41 // from: 40.1
  SAY #73965 /* ~As you wish, my <LADYLORD>.  You have freed our village, if at great cost... may the sand spirits walk with you always.~ */
  IF ~~ THEN EXIT
END
