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

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

IF WEIGHT #0 ~NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
  SAY #20781 /* ~The faithless shall beware his coming, and the faithful shall rejoice!~ */
  IF ~~ THEN REPLY #20782 /* ~I see better than you, faithless one!  I see the false god's stink as it wafts from your soul!  Cast aside your unholy ways and bow down before the Unseeing Eye!~ */ DO ~SetGlobal("TalkedToMendas","GLOBAL",1)
SetGlobal("MetMendas","GLOBAL",1)~ GOTO 2
  IF ~~ THEN REPLY #20783 /* ~And who might you be, then?~ */ DO ~SetGlobal("TalkedToMendas","GLOBAL",1)~ GOTO 22
  IF ~~ THEN REPLY #20784 /* ~Tell me more about this Unseeing Eye.~ */ DO ~SetGlobal("TalkedToMendas","GLOBAL",1)~ GOTO 16
END

IF WEIGHT #4 /* Triggers after states #: 12 15 25 even though they appear after this state */
~Global("TalkedToMendas","GLOBAL",1)~ THEN BEGIN 1 // from:
  SAY #20785 /* ~I'll be leaving you now, excuse me.~ */
  IF ~~ THEN REPLY #20786 /* ~Gaaaah!  You have eyes!  Eyes!  Foolish you are!!~ */ GOTO 2
  IF ~~ THEN REPLY #20787 /* ~Er... why would having eyes make me foolish?~ */ GOTO 22
END

IF ~~ THEN BEGIN 2 // from: 22.0 21.0 20.0 17.0 16.2 1.0 0.0
  SAY #20788 /* ~I see.  Well, I'll leave you alone, then.~ */
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)~ THEN REPLY #20789 /* ~The Unseeing Eye shall destroy you!  Destroy you, he will!~ */ GOTO 5
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)~ THEN REPLY #20790 /* ~Cast you down!  Into the Pit!  Take my eyes, take my eyes oh beautiful one!  I offer them to you freely!   Aaaah, aaah!~ */ GOTO 7
  IF ~~ THEN REPLY #20791 /* ~Aaaah!  He shall come, he shall come!  Put out your eyes while you can!  Aaaaiiie!~ */ GOTO 5
  IF ~~ THEN REPLY #20792 /* ~Who are you talking about?  Who is this Unseeing Eye?~ */ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.3
  SAY #20793 /* ~You have no eyes... who did this to you?~ */
  IF ~~ THEN REPLY #20794 /* ~I gave them up to the Unseeing Eye!  Forgive me, mighty one!  Talos is a false god and I shall no longer serve him!   Aaaaah!~ */ GOTO 4
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)~ THEN REPLY #20795 /* ~Aaaaiiee!  Do not throw me into the pit!  Master, master!  Tell him that I am one of the faithful!!~ */ GOTO 7
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)~ THEN REPLY #20796 /* ~Who is this Unseeing Eye you speak of?~ */ GOTO 5
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #20797 /* ~The Eye!  He is beautiful... sooo beautiful!  Worship him!  Kneel and worship him, I tell you, before he casts you down!  Throw aside your gods and bow, bow, boooowwww!!~ */
  IF ~~ THEN REPLY #20798 /* ~Aaaah!!  Aaah!!  Away from me, faithless one!  Away!!~ */ GOTO 5
  IF ~~ THEN REPLY #20799 /* ~Er, perhaps I should go.~ */ GOTO 6
END

IF ~~ THEN BEGIN 5 // from: 6.0 4.0 3.2 2.2 2.0
  SAY #20800 /* ~I'll leave you alone.~ */
  IF ~~ THEN REPLY #20801 /* ~Seek ye out the true sight and put out your eyes in the name of the Unseeing Eye!~ */ GOTO 14
  IF ~~ THEN REPLY #20802 /* ~Pluck out your vile eyes or be thrown into the Pit!  You are the faithless before His might!~ */ GOTO 8
  IF ~~ THEN REPLY #20803 /* ~The Unseeing Eye is the true one, the one who shall lead us all into the divine!  Come, all, and bow before Him!~ */ GOTO 8
  IF ~~ THEN REPLY #20804 /* ~Tremble before the might of the Unseeing Eye!  He is greater than all your false gods!~ */ GOTO 7
END

IF ~~ THEN BEGIN 6 // from: 4.1
  SAY #20805 /* ~What kind of monstrous blasphemy is this?~ */
  IF ~~ THEN REPLY #20806 /* ~It is no blasphemy!  It is the truth!  Put out your unholy eyes as I have!!  Come!~ */ GOTO 5
  IF ~~ THEN REPLY #20807 /* ~Come!  Join in the worship of the Unseeing Eye!  Put out your eyes and witness the holiest of sights!~ */ GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.1 5.3 3.1 2.1
  SAY #20824 /* ~Dog~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToMendas","GLOBAL",1)~ JOURNAL #23553 /* ~~ */ EXIT
END

IF ~~ THEN BEGIN 8 // from: 5.2 5.1
  SAY #20825 /* ~Dog~ */
  IF ~~ THEN REPLY #20827 /* ~Is that so?  Have they protected you from famine?  Have they protected you from disease?  Have they wrought harmony upon Faerun?~ [GAAL14] */ DO ~SetGlobal("ChartQuest","GLOBAL",1)
SetGlobal("TalkedToMendas","GLOBAL",2)
SetGlobal("MendasMore","GLOBAL",1)~ GOTO 11
  IF ~ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)~ THEN REPLY #20828 /* ~No, they have not!  They lie and cloud your sight to gain your worship of their false images!  I have stripped myself of their foul eyes and I see what is the truth!  The truth, I tell you!~ [GAAL15] */ GOTO 9
  IF ~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)~ THEN REPLY #20874 /* ~I'd rather know who I'm dealing with, first.~ */ GOTO 10
  IF ~~ THEN REPLY #20826 /* ~No!  What you are saying cannot be true!  The gods have ever protected us!~ [CSHEC101] */ DO ~SetGlobal("TalkedToMendas","GLOBAL",1)~ GOTO 14
END

IF ~~ THEN BEGIN 9 // from: 8.1
  SAY #20829 /* ~You lie!  You lie!  The gods exist!~ [CSHEC201] */
  IF ~~ THEN REPLY #20830 /* ~Such words are a horrid affront to the gods!  Surely you will pay for this!~ [CSCLER02] */ DO ~SetGlobal("ChartQuest","GLOBAL",1)
SetGlobal("TalkedToMendas","GLOBAL",2)
SetGlobal("MendasLess","GLOBAL",1)
~ GOTO 11
  IF ~~ THEN REPLY #20831 /* ~Quiet!  Listen to what he has t' say!~ [CSSUP101] */ DO ~SetGlobal("TalkedToMendas","GLOBAL",1)~ GOTO 14
  IF ~~ THEN REPLY #20833 /* ~What... what does that mean?  Shall we tear our own eyes out, then?  Don't be foolish!~ [CSHEC301] */ GOTO 18
END

IF ~~ THEN BEGIN 10 // from: 8.2
  SAY #20834 /* ~What shall we do, then?  Who shall we turn to if there's no gods?~ [CSSUP201] */
  IF ~~ THEN REPLY #20835 /* ~But there is a god!  There is the true god!  The Unseeing Eye is here amongst us!  He offers the faithful a clarity of vision, the true path to the divine!  He offers you protection and succor!~ [GAAL17] */ GOTO 14
  IF ~~ THEN REPLY #20836 /* ~Illusion Dispelled~ */ GOTO 18
  IF ~~ THEN REPLY #20837 /* ~Do not listen to him!  He seeks to poison your minds!~ [CSCLER03] */ DO ~SetGlobal("ChartQuest","GLOBAL",1)
SetGlobal("TalkedToMendas","GLOBAL",2)
SetGlobal("MendasMore","GLOBAL",1)
~ GOTO 11
END

IF WEIGHT #5 /* Triggers after states #: 12 15 25 even though they appear after this state */
~Global("ChartQuest","GLOBAL",1)
Global("TalkedToMendas","GLOBAL",2)~ THEN BEGIN 11 // from: 18.0 10.2 9.0 8.0
  SAY #20839 /* ~Don't speak to the priest in that tone!  The gods will be offended!~ [CSHEC102] */
  IF ~~ THEN DO ~SetGlobal("ChartQuest","GLOBAL",1)
SetGlobal("TalkedToMendas","GLOBAL",2)
~ JOURNAL #22947 /* ~~ */ EXIT
END

IF WEIGHT #1 ~PartyHasItem("misc1c")
Global("MendasLess","GLOBAL",1)
Global("TalkedToMendas","GLOBAL",2)~ THEN BEGIN 12 // from:
  SAY #20840 /* ~Don't you hear what he's saying?  There are no gods to be offended!  I say we see what this Unseeing Eye has to offer!~ [CSSUP202] */
  IF ~~ THEN REPLY #20841 /* ~Aye!  I wish to see!~ [CSSUP301] */ DO ~GiveGoldForce(2000)
TakePartyItem("misc1c")
SetGlobal("TalkedToMendas","GLOBAL",3)~ GOTO 24
  IF ~~ THEN REPLY #20842 /* ~No, my friends... you do not wish to 'see'. Forget what the years of lies have taught your eyes! You wish to 'know'.  You wish to 'learn'.  These are the truths that the Unseeing Eye can offer to you.~ [GAAL19] */ DO ~GiveGoldForce(2000)
TakePartyItem("misc1c")
SetGlobal("ReadyToSail","GLOBAL",1)~ GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 25.0 15.1 12.1
  SAY #20844 /* ~No!  Do not go with him!~ [CSCLER04] */
  IF ~~ THEN DO ~SetGlobal("ReadyToSail","GLOBAL",1)
EscapeArea()~ JOURNAL #22946 /* ~~ */ EXIT
END

IF ~~ THEN BEGIN 14 // from: 19.2 18.1 10.0 9.1 8.3 5.0
  SAY #20845 /* ~I'll do as I wish!  I want the truth!  Show me the Unseeing Eye!~ [CSSUP302] */
  IF ~~ THEN DO ~SetGlobal("TalkedToMendas","GLOBAL",1)~ EXIT
END

IF WEIGHT #2 ~PartyHasItem("misc1c")
Global("MendasMore","GLOBAL",1)
Global("TalkedToMendas","GLOBAL",2)~ THEN BEGIN 15 // from:
  SAY #20847 /* ~Come, then!  Those of you who wish to become the truly faithful, to witness the magnificence of the Unseeing Eye and the truth he brings, come with me!~ [GAAL21] */
  IF ~~ THEN REPLY #20848 /* ~What are you doing?  Are you mad?~ [CSHEC302] */ DO ~GiveGoldForce(3000)
TakePartyItem("misc1c")
SetGlobal("TalkedToMendas","GLOBAL",3)~ GOTO 24
  IF ~~ THEN REPLY #20850 /* ~Aye, if you do not wish to see the truth, that is your business!~ [CSSUP303] */ DO ~GiveGoldForce(3000)
TakePartyItem("misc1c")~ GOTO 13
END

IF ~~ THEN BEGIN 16 // from: 22.2 0.2
  SAY #20851 /* ~Come, then, my faithful.  Follow me.~ [GAAL22] */
  IF ~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)~ THEN REPLY #20852 /* ~Glass Dust~ */ GOTO 17
  IF ~ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)~ THEN REPLY #20853 /* ~Waukeen's Promenade~ */ GOTO 17
  IF ~~ THEN REPLY #20854 /* ~The door and lock both seem to be damaged.  You will not be able to open this door until it is repaired.~ */ GOTO 2
END

IF ~~ THEN BEGIN 17 // from: 16.1 16.0
  SAY #20855 /* ~Coo!  You'd be the one I be looking for, if I not be mistaken.  <CHARNAME> be yer name, aye?~ [GAELEN02] */
  IF ~~ THEN REPLY #20856 /* ~Well, I'm afraid you are mistaken.~ */ DO ~SetGlobal("ChartQuest","GLOBAL",1)
SetGlobal("MendasMore","GLOBAL",1)~ GOTO 2
  IF ~~ THEN REPLY #20857 /* ~Yes, I am <HESHE>.  What is it that you want?~ */ GOTO 20
  IF ~~ THEN REPLY #20858 /* ~That so? I was thinkin' me sources of information infallible. Well, I suppose ye won't be wantin' any information on the young woman arrested by the Cowled Wizards when ye first came to Athkatla, huh?~ [GAELEN08] */ GOTO 22
END

IF ~~ THEN BEGIN 18 // from: 10.1 9.2
  SAY #20859 /* ~That's correct.  I've no interest in that.~ */
  IF ~~ THEN REPLY #20860 /* ~You're speaking of Imoen?  What do you know of her?~ */ DO ~SetGlobal("ChartQuest","GLOBAL",1)
SetGlobal("MendasLess","GLOBAL",1)~ GOTO 11
  IF ~~ THEN REPLY #20861 /* ~'Tis not what I want, but what I can be doing for ye. You might be wanting information about a young lass arrested by the wizards on your arrival here, aye?~ [GAELEN07] */ GOTO 14
END

IF ~~ THEN BEGIN 19 // from:
  SAY #20862 /* ~You're talking about Imoen?  What do you know about her?~ */
  IF ~~ THEN REPLY #20863 /* ~But they can be doing far better than the tellin', my friend.  They can also affect the rescue of your lass to boot.~ [GAELEN28] */ GOTO 20
  IF ~~ THEN REPLY #20864 /* ~I'd rather know who you are, first, before I deal with you.~ */ GOTO 21
  IF ~~ THEN REPLY #20865 /* ~Excuse me, I don't have time to deal with you right now.~ */ GOTO 14
END

IF ~~ THEN BEGIN 20 // from: 19.0 17.1
  SAY #20866 /* ~Well, now, that be right amazing.  I thought you'd at least want to know about the wizard that kept you prisoner. I have the wrong person completely?~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 21 // from: 19.1
  SAY #20868 /* ~I have already said that you have the wrong person.  Why pester me?~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 22 // from: 17.2 1.1 0.1
  SAY #20869 /* ~You know something about that wizard?  Well, now you've piqued my interest.~ */
  IF ~~ THEN REPLY #20870 /* ~Aha!  So I does have you correctly.  Coo!  An' here I thought I be talking to a complete stranger.  Wiping me brow, I am.  Heh.~ [GAELEN11] */ GOTO 2
  IF ~~ THEN REPLY #20871 /* ~Now, Imoen, aye... that be her name. Young lass made the misfortune of castin' a spell or two in a city that frowns on such business.  Bad timin', it was.  You be thinkin' ye wants to find her, then?~ [GAELEN12] */ JOURNAL #22945 /* ~Garren's child rescued.

Garren Windspear's child has been rescued and the dragon lies dead.  Garren thanked me for all that I have done and offered his home as lodgings should I ever be in the Windspear Hills area again.~ */ GOTO 23
  IF ~~ THEN REPLY #20873 /* ~I'm not really all that interested.  I was just curious, is all.~ */ GOTO 16
END

IF ~~ THEN BEGIN 23 // from: 22.1
  SAY #20872 /* ~Of course I want to find her!  What do you know?~ */
  IF ~~ THEN DO ~SetGlobal("TalkedtoMendas","GLOBAL",1)~ JOURNAL #23553 /* ~~ */ EXIT
END

IF ~~ THEN BEGIN 24 // from: 25.1 15.0 12.0
  SAY #22817 /* ~The traitor is dead, I trust? Yes, you have his dagger. Despite your useless appearance you have done well. Now go. I have matters to attend to that are above you.~ [MAEVAR11] */
  IF ~~ THEN JOURNAL #23553 /* ~~ */ EXIT
END

IF WEIGHT #3 ~Global("TalkedToMendas","GLOBAL",3)~ THEN BEGIN 25 // from:
  SAY #22749 /* ~What are his crimes? I do not wish to make a mistake in this matter.~ */
  IF ~~ THEN REPLY #22750 /* ~What will be my reward? Petty thievery is one thing, but this is murder.~ */ GOTO 13
  IF ~~ THEN REPLY #22751 /* ~Is there no other means to resolve this? Does this man have to die?~ */ GOTO 24
END
