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

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

IF WEIGHT #1 /* Triggers after states #: 6 even though they appear after this state */
~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #117 /* ~Hey ho there, fellow travelers! You look to be wanderers of the adventuring sort. Tell me, what direction calls you?~ */
  IF ~  ReactionGT(LastTalkedToBy(Myself),NEUTRAL_UPPER)
~ THEN REPLY #119 /* ~I am proceeding in a northerly direction this day.~ */ GOTO 1
  IF ~  ReactionLT(LastTalkedToBy(Myself),FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy(Myself),HOSTILE_UPPER)
~ THEN REPLY #134 /* ~I am proceeding in a northerly direction this day.~ */ GOTO 2
  IF ~  ReactionLT(LastTalkedToBy(Myself),NEUTRAL_LOWER)
~ THEN REPLY #135 /* ~I am proceeding in a northerly direction this day.~ */ GOTO 3
  IF ~  ReactionGT(LastTalkedToBy(Myself),NEUTRAL_UPPER)
~ THEN REPLY #120 /* ~I am heading south for a time, though that may change.~ */ GOTO 1
  IF ~  ReactionLT(LastTalkedToBy(Myself),FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy(Myself),HOSTILE_UPPER)
~ THEN REPLY #121 /* ~I am heading south for a time, though that may change.~ */ GOTO 2
  IF ~  ReactionLT(LastTalkedToBy(Myself),NEUTRAL_LOWER)
~ THEN REPLY #122 /* ~I am heading south for a time, though that may change.~ */ GOTO 3
  IF ~  ReactionGT(LastTalkedToBy(Myself),NEUTRAL_UPPER)
~ THEN REPLY #136 /* ~If it's your business, east is my direction.~ */ GOTO 1
  IF ~  ReactionLT(LastTalkedToBy(Myself),FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy(Myself),HOSTILE_UPPER)
~ THEN REPLY #137 /* ~If it's your business, east is my direction.~ */ GOTO 2
  IF ~  ReactionLT(LastTalkedToBy(Myself),NEUTRAL_LOWER)
~ THEN REPLY #138 /* ~If it's your business, east is my direction.~ */ GOTO 3
  IF ~  ReactionGT(LastTalkedToBy(Myself),NEUTRAL_UPPER)
~ THEN REPLY #139 /* ~Westward till dawn, if plans stay unchanged.~ */ GOTO 1
  IF ~  ReactionLT(LastTalkedToBy(Myself),FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy(Myself),HOSTILE_UPPER)
~ THEN REPLY #140 /* ~Westward till dawn, if plans stay unchanged.~ */ GOTO 2
  IF ~  ReactionLT(LastTalkedToBy(Myself),NEUTRAL_LOWER)
~ THEN REPLY #141 /* ~Westward till dawn, if plans stay unchanged.~ */ GOTO 3
END

IF ~~ THEN BEGIN 1 // from: 0.9 0.6 0.3 0.0
  SAY #123 /* ~It is the same as I! Surely this lends us a familial bond of sorts. The smart move would be to travel as one, especially with the number of bandits in the area. You probably need the counterbalance of my intelligence, as well.~ */
  IF ~~ THEN REPLY #128 /* ~I suppose there would be no harm in your joining me.~ */ GOTO 4
  IF ~~ THEN REPLY #129 /* ~No, and don't call me Shirley.~ */ GOTO 5
END

IF ~~ THEN BEGIN 2 // from: 0.10 0.7 0.4 0.1
  SAY #124 /* ~Ah, my loutish friends, that is my direction too. Fate has crossed our paths, and we could all benefit by traveling together. It will be the classic pairing of you, the stalwart adventurers, and I, the intelligent one. How could you refuse?~ */
  IF ~~ THEN REPLY #130 /* ~Whatever. Come if ye must, but watch your mouth.~ */ GOTO 4
  IF ~~ THEN REPLY #131 /* ~How could I refuse? Watch me. Taketh thou a hike!~ */ GOTO 5
END

IF ~~ THEN BEGIN 3 // from: 0.11 0.8 0.5 0.2
  SAY #125 /* ~Oh no, not my way at all. Nevertheless, since you are so obviously in need of guidance from someone with not quite so much orcish heritage, I shall alter my course and come with you. Don't bother to thank me; just grunt approval.~ */
  IF ~~ THEN REPLY #132 /* ~Uh HUH. If you must.~ */ GOTO 4
  IF ~~ THEN REPLY #133 /* ~Thou art a dink, to be sure. Get lost.~ */ GOTO 5
END

IF ~~ THEN BEGIN 4 // from: 3.0 2.0 1.0
  SAY #126 /* ~Well, I suppose I'll be on my way then you idi— You said YES! I mean, of course I'll come with you. My intellect and skill as a cleric will undoubtedly make your group much better than it is. Onward.~ */
  IF ~~ THEN DO ~JoinParty()
~ EXIT
  IF ~Global("X#SharQuayleJoin","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SharQuayleJoin","GLOBAL",1)~ EXTERN ~SHARTJ~ 86
END

IF ~~ THEN BEGIN 5 // from: 3.1 2.1 1.1
  SAY #127 /* ~I should have guessed by your knuckle-dragging gait and minuscule nose, you're a complete and utter moron, aren't ya?~ */
  IF ~~ THEN JOURNAL #27373 /* ~Quayle
I have met a man named Quayle near Baldur's Gate who requested he be allowed to join my party. It was the bum's rush I gave him, as he seemed a touch too smarmy for my liking.~ */ EXIT
END

IF WEIGHT #0 ~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 6 // from:
  SAY #6367 /* ~You will find that I make a most magnificent friend!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~  True()
~ THEN BEGIN 7 // from:
  SAY #6368 /* ~Bumbling simpletons, get out of my way! Unless, of course, you need my services. Well, do you?~ */
  IF ~~ THEN REPLY #10891 /* ~We don't need your services... shorty.~ */ EXIT
  IF ~~ THEN REPLY #10892 /* ~All right, you can join our party.~ */ DO ~JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 8 // from:
  SAY #14745 /* ~Hmph! You are superfluous to my well-being and I can't say I'll miss being confronted with your orcish face and troll-like breath each morning! Good riddance to stupid rubbish!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 9 // from:
  SAY #14746 /* ~Please don't leave me out here! Do you hear buzzards? I hear buzzards.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 10 // from:
  SAY #46446 /* ~Ha ha. Very droll. We will see who laughs last.~ */
  IF ~~ THEN DO ~JoinParty()
~ EXIT
END
