// creator  : weidu.exe (version 23600)
// argument : ALYTH.DLG
// game     : .
// source   : ./override/ALYTH.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

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

IF WEIGHT #3 /* Triggers after states #: 4 5 6 even though they appear after this state */
~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #8335 /* ~Good eve to you. I am Alyth, the owner and proprietor. I trust the Elfsong will fit your needs, whatever they should be. I should be wary of the clientele if I were you. Everyone is quite on edge as of late.~ */
  IF ~~ THEN REPLY #8342 /* ~Apart from looking a little haggard, everyone seems quite ordinary. What have I to fear here?~ */ GOTO 1
  IF ~~ THEN REPLY #8343 /* ~Why should melancholy be so pervasive here? Is there not an ill feeling throughout the Coast?~ */ GOTO 2
  IF ~~ THEN REPLY #8344 /* ~I have nothing to fear from this rabble. They will find themselves on MY edge for any threat posed.~ */ GOTO 3
  IF ~Global("X#AloraAlyth1","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AloraAlyth1","GLOBAL",1)~ GOTO 8
END

IF ~~ THEN BEGIN 1 // from: ALORAJ:62.0 9.0 8.0 0.0
  SAY #8336 /* ~The Elfsong is somewhat of a refuge for the less appreciated members of society. You will find that the city patrols give us a wide berth, though we are not unprotected. Thievery is kept in check by the willingness of our patrons to answer with a blade, though I suppose this is successful just as often as it is not. We tend to go through a large number of customers, though we keep the smart ones.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 2 // from: ALORAJ:62.1 9.1 8.1 0.1
  SAY #8337 /* ~We have lost more than the average citizen; we have lost the Lady. Often we are blessed by a strange phantom voice. It is an elvish maiden lamenting a lost love drowned at sea. Her voice is quite beautiful, and the reason I purchased this establishment in the first place. She has not uttered a note for nigh unto several tenday. Surely it is an omen of sorts, though I canna say of what. I would have thought the economic troubles of the land too paltry to affect the concerns of the dead, but matters are often more complicated than they seem. I suppose they are often simpler as well, though that truth does not support my argument quite as well. Forget I mentioned it. Enjoy your stay.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 3 // from: ALORAJ:62.2 9.2 8.2 0.2
  SAY #8338 /* ~Your confidence is impressive, though it will prove a poor shield against the blows sure to come if you insist on continuing with that attitude. My tavern is as much a place for self-reflection as it is for shady deals and the hiring of killers. You will find that most of the regulars are not to be taken lightly. Watch your back against the stares of strangers.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~  NumTimesTalkedToGT(0)
ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN BEGIN 4 // from:
  SAY #8340 /* ~I do not wish to seem inhospitable, but I choose not to share your company. Leave me to my business.~ */
  IF ~~ THEN EXIT
  IF ~Global("X#AloraAlyth2","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AloraAlyth2","GLOBAL",1)~ EXTERN ~ALORAJ~ 63
END

IF WEIGHT #1 ~  NumTimesTalkedToGT(0)
ReactionGT(LastTalkedToBy(Myself),HOSTILE_UPPER)
~ THEN BEGIN 5 // from:
  SAY #8341 /* ~Hello again. I trust you are finding my tavern to your liking? I do endeavor to sculpt it to the needs of all who frequent it.~ */
  IF ~~ THEN DO ~StartStore("tav0705",LastTalkedToBy(Myself))
~ EXIT
  IF ~Global("X#AloraAlyth3","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AloraAlyth3","GLOBAL",1)~ GOTO 10
END

IF WEIGHT #2 ~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 6 // from:
  SAY #8345 /* ~I wish I could help you friend, but I have many problems of my own, not the least of which is the loss of our phantom singer.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 7 // from:
  SAY #9191 /* ~I find you distasteful. Leave me!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 8 // from: 0.3
  SAY #46892 /* ~But then Alora has probably already warned you of this place, did she not?~ */
  IF ~~ THEN REPLY #8342 /* ~Apart from looking a little haggard, everyone seems quite ordinary. What have I to fear here?~ */ GOTO 1
  IF ~~ THEN REPLY #8343 /* ~Why should melancholy be so pervasive here? Is there not an ill feeling throughout the Coast?~ */ GOTO 2
  IF ~~ THEN REPLY #8344 /* ~I have nothing to fear from this rabble. They will find themselves on MY edge for any threat posed.~ */ GOTO 3
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN GOTO 9
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN EXTERN ~ALORAJ~ 62
END

IF ~~ THEN BEGIN 9 // from: ALORAJ:62.3 8.3
  SAY #46894 /* ~I thought so.~ */
  IF ~~ THEN REPLY #8342 /* ~Apart from looking a little haggard, everyone seems quite ordinary. What have I to fear here?~ */ GOTO 1
  IF ~~ THEN REPLY #8343 /* ~Why should melancholy be so pervasive here? Is there not an ill feeling throughout the Coast?~ */ GOTO 2
  IF ~~ THEN REPLY #8344 /* ~I have nothing to fear from this rabble. They will find themselves on MY edge for any threat posed.~ */ GOTO 3
END

IF ~~ THEN BEGIN 10 // from: 5.1
  SAY #46896 /* ~As Alora will no doubt testify.~ */
  IF ~~ THEN DO ~StartStore("tav0705",LastTalkedToBy(Myself))
~ EXIT
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN GOTO 11
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN EXTERN ~ALORAJ~ 64
END

IF ~~ THEN BEGIN 11 // from: ALORAJ:64.1 10.1
  SAY #46898 /* ~Good, good. Farewell, and do please keep out of trouble.~ */
  IF ~~ THEN DO ~StartStore("tav0705",LastTalkedToBy(Myself))
~ EXIT
END
