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

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

IF WEIGHT #0 ~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #2783 /* ~The barkeep's name is Bernard. He will sell you high quality equipment at a reasonable price. If you have the time, though, I would suggest the Adventure Mart in the promenade.~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToThief","GLOBAL",1)
SetGlobal("TalkedToAlatos","GLOBAL",1)
~ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #2784 /* ~Excellent. What rumors have you heard?~ */
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #2785 /* ~I would like you to join my party.~ */ GOTO 2
  IF ~~ THEN REPLY #2786 /* ~That is all that I need at present.~ */ GOTO 5
  IF ~~ THEN REPLY #2787 /* ~Aye, the servant god, always ready to sacrifice himself in duty's name.  I have a family I have not been with in some time; Torm requires sacrifice from us all.~ */ GOTO 4
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #2803 /* ~Wyrm's Brew Ale~ */ GOTO 3
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #2788 /* ~I would be honored to wield my sword for you.~ */
  IF ~~ THEN REPLY #2789 /* ~Oh, taker-of-my-honor, do not return to torment me further. Unless you have come to take back your cruel words, I ask you to leave now.~ [YOSHIM61] */ GOTO 3
  IF ~~ THEN REPLY #2790 /* ~I have returned to apologize.~ */ GOTO 5
  IF ~~ THEN REPLY #2791 /* ~I will leave.~ */ GOTO 4
END

IF ~~ THEN BEGIN 3 // from: 19.2 18.2 2.0 1.3
  SAY #2792 /* ~Welcome to the Copper Coronet, my home here in Athkatla. What can Yoshimo offer you? Information? Contacts? Equipment? Perhaps you would like me to join you?~ */
  IF ~~ THEN DO ~Shout(1)
Enemy()
~ JOURNAL #9978 /* ~Inside the Drow City

I have returned to the city to meet Solaufein, where we were told by Imrae that we had done well.  She also informed us that we were to report to the drow tavern within a day to meet Phaere once again... to be rewarded, apparently.~ */ EXIT
END

IF ~~ THEN BEGIN 4 // from: 2.2 1.2
  SAY #2793 /* ~Information. Have you heard any rumors?~ */
  IF ~~ THEN REPLY #2794 /* ~Where might I get equipment for a reasonable price?~ */ GOTO 6
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #2795 /* ~Join me, join me, by all means. I could use the help, to be honest.~ */ GOTO 7
  IF ~~ THEN REPLY #2796 /* ~Mind Flayer~ */ GOTO 9
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #2821 /* ~I'm sorry to bother you. I will be leaving shortly.~ */ GOTO 8
END

IF ~~ THEN BEGIN 5 // from: 2.1 1.1
  SAY #2798 /* ~Spore Colony~ */
  IF ~~ THEN REPLY #2799 /* ~Mind Flayer~ */ GOTO 6
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #2800 /* ~Spore Colony~ */ GOTO 7
  IF ~~ THEN REPLY #2801 /* ~Woodland Ale~ */ GOTO 9
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #2822 /* ~Clay Golem~ */ GOTO 8
END

IF ~~ THEN BEGIN 6 // from: 7.0 5.0 4.0
  SAY #2804 /* ~Orbbz'hin~ */
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #2807 /* ~Streea~ */ GOTO 7
  IF ~~ THEN REPLY #2808 /* ~A powerful psychic force lashes out at you, preventing you from moving.  From the look at all the dead adventurers on the ground, whatever lies ahead seems extremely powerful and dangerous.~ */ GOTO 9
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #2823 /* ~Clay Golem~ */ GOTO 8
END

IF ~~ THEN BEGIN 7 // from: 6.0 5.1 4.1
  SAY #2809 /* ~Deer~ */
  IF ~~ THEN REPLY #2824 /* ~Stone Golem~ */ GOTO 6
  IF ~~ THEN REPLY #2825 /* ~Stone Golem~ */ GOTO 9
  IF ~~ THEN REPLY #2826 /* ~Iron Golem~ */ GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 19.0 7.2 6.2 5.3 4.3
  SAY #2810 /* ~You don't seem... comfortable, here.~ [AERIE52] */
  IF ~~ THEN DO ~Shout(1)
Enemy()
~ JOURNAL #9979 /* ~Investigate activities in the Copper Coronet's rooms.

After refusing to help Hendak in the Copper Coronet, I reported the incident to Lehtinan, the proprietor.  He hired me to kill Hendak as an example, which I did.  Part of Lehtinan's reward is cheaper prices from Bernard, his clerk.~ */ EXIT
END

IF ~~ THEN BEGIN 9 // from: 7.1 6.1 5.2 4.2
  SAY #2811 /* ~Forgive me, dear elf.  It is just that I have never understood the city.~ [CERND47] */
  IF ~~ THEN REPLY #2827 /* ~Iron Golem~ */ DO ~SetGlobal("ASSNUTS","GLOBAL",1)
~ GOTO 10
  IF ~~ THEN REPLY #2828 /* ~Vampire~ */ GOTO 18
END

IF ~~ THEN BEGIN 10 // from: 19.1 18.1 9.0
  SAY #2812 /* ~What is there to understand? Cities are where you go when you have no place else to be.~ */
  IF ~~ THEN DO ~SetGlobal("HelpAlatos","GLOBAL",1)
~ JOURNAL #9980 /* ~Finding Irenicus in Hell

I encountered a demon that seemed to perform some kind of test of character.  It explained that there are two paths to a Tear of Bhaal... both are paths of fear.  It offered me a cloak of nymph's skin to protect me from the fear, saying the path would be easier.  I attacked the demon and it fled, taking the cloak with it.  I suppose I shall have to gain the Tear on my own power.~ */ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 12 13 even though they appear after this state */
~Global("HelpAlatos","GLOBAL",2)
!Dead("Resar")
~ THEN BEGIN 11 // from:
  SAY #2813 /* ~Perhaps that is it.  I have my grove, and the beauty tethers my heart to its ferns and mosses.  When next we visit, would you like me to show them to you?~ */
  IF ~~ THEN DO ~TakePartyItem("MISC69")
TakePartyItem("MISC70")
TakePartyItem("MISC71")
~ EXTERN ~RESAR~ 0
END

IF WEIGHT #2 /* Triggers after states #: 13 even though they appear after this state */
~PartyHasItem("MISC69")
PartyHasItem("MISC70")
PartyHasItem("MISC71")
!Dead("Resar")
~ THEN BEGIN 12 // from:
  SAY #2814 /* ~Deer~ */
  IF ~~ THEN DO ~SetGlobal("HelpAlatos","GLOBAL",2)
AddexperienceParty(4000)
TakePartyItem("MISC69")
TakePartyItem("MISC70")
TakePartyItem("MISC71")
~ EXTERN ~RESAR~ 1
END

IF WEIGHT #1 ~PartyHasItem("MISC69")
PartyHasItem("MISC70")
PartyHasItem("MISC71")
!Dead("Helshara")
!Dead("Delorna")
!Dead("Ithmeera")
!Dead("Oberon")
!Dead("Resar")
~ THEN BEGIN 13 // from:
  SAY #2815 /* ~The pain will only be passing.  You should survive the process.~ [DPJON158] */
  IF ~~ THEN DO ~SetGlobal("HelpAlatos","GLOBAL",2)
AddexperienceParty(4000)
TakePartyItem("MISC69")
TakePartyItem("MISC70")
TakePartyItem("MISC71")
~ EXTERN ~RESAR~ 2
END

IF ~~ THEN BEGIN 14 // from:
  SAY #2816 /* ~Interesting.  You have much untapped power.~ [DPJON159] */
  IF ~~ THEN EXTERN ~RESAR~ 3
END

IF ~~ THEN BEGIN 15 // from:
  SAY #2817 /* ~I'm sorry to bother you. I will be leaving shortly.~ */
  IF ~~ THEN EXTERN ~NARLEN~ 27
END

IF ~~ THEN BEGIN 16 // from:
  SAY #2818 /* ~A pretty one? Have you come to join the merriment for all eternity?~ */
  IF ~~ THEN EXTERN ~NARLEN~ 28
END

IF ~~ THEN BEGIN 17 // from:
  SAY #2819 /* ~Do you even realize your potential?~ [DPJON160] */
  IF ~~ THEN EXTERN ~NARLEN~ 29
END

IF ~~ THEN BEGIN 18 // from: 9.1
  SAY #2830 /* ~Vampire~ */
  IF ~~ THEN REPLY #2831 /* ~Air Elemental~ */ GOTO 19
  IF ~~ THEN REPLY #2832 /* ~Air Elemental~ */ GOTO 10
  IF ~~ THEN REPLY #2834 /* ~No matter, they will only prove a slight delay.~ [DPJON162] */ GOTO 3
END

IF ~~ THEN BEGIN 19 // from: 18.0
  SAY #2833 /* ~They act sooner than we had anticipated.~ [DPJON161] */
  IF ~~ THEN REPLY #2829 /* ~Male Vampire
~ */ GOTO 8
  IF ~~ THEN REPLY #2835 /* ~Tazok~ */ GOTO 10
  IF ~~ THEN REPLY #2836 /* ~Tazok~ */ GOTO 3
END

IF WEIGHT #4 ~Dead("Resar")
~ THEN BEGIN 20 // from:
  SAY #11813 /* ~Enough!  I have had enough of your insane babble!~ */
  IF ~~ THEN EXIT
END
