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

BEGIN ~NOBLEM2~ 2 // non-zero flags may indicate non-pausing dialogue
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #4 /* Triggers after states #: 2 3 5 9 even though they appear after this state */
~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
RandomNum(2,1)
~ THEN BEGIN 0 // from:
  SAY #14991 /* ~(sigh)  Why do I always get the poor ones tugging at my pantaloons?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 2 3 5 9 even though they appear after this state */
~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
RandomNum(2,2)
~ THEN BEGIN 1 // from:
  SAY #14993 /* ~I assume you'll try to speak to me once again when you acquire some prestige and character, yes?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~See("Keldorn")
InParty("Keldorn")
!StateCheck("Keldorn",STATE_SLEEPING)
RandomNum(2,1)
Global("noblem2keldorn","AR0700",0)
~ THEN BEGIN 2 // from:
  SAY #14994 /* ~Ah!  Keldorn, is it not?  Your reputation for bravery and nobility precedes you.  How fare things in the Order?~ */
  IF ~~ THEN DO ~SetGlobal("noblem2keldorn","AR0700",1)~ EXTERN ~KELDORJ~ 55
END

IF WEIGHT #1 ~See("HaerDalis")
InParty("HaerDalis")
!StateCheck("HaerDalis",STATE_SLEEPING)
RandomNum(2,1)
Global("noblem2haerdalis","AR0700",0)
~ THEN BEGIN 3 // from:
  SAY #14996 /* ~Let me see.  You are one of that troupe I was brought to recently.  Quite good... for local entertainment, anyway.~ */
  IF ~~ THEN DO ~SetGlobal("noblem2haerdalis","AR0700",1)~ EXTERN ~HAERDAJ~ 30
END

IF ~~ THEN BEGIN 4 // from:
  SAY #14998 /* ~Why thank you!  How expressive he is, see?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
RandomNum(4,1)
!Dead("KalahIllusion")
~ THEN BEGIN 5 // from:
  SAY #14999 /* ~Something has apparently happened at that circus that came to the city.  I hope they take it all away.  I despise such garish colors!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 9 even though they appear after this state */
~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
RandomNum(4,2)
~ THEN BEGIN 6 // from:
  SAY #15002 /* ~You seem like lower-class adventurers bandying about the countryside...  seek out the Copper Coronet in the slums.  That's the perfect place for you.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 9 even though they appear after this state */
~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
RandomNum(4,3)
~ THEN BEGIN 7 // from:
  SAY #15003 /* ~I don't know why they allow those Cowled Wizards to remain in the city.  It seems to me they should be arrested along with anyone else who uses magic!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #8 /* Triggers after states #: 9 even though they appear after this state */
~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
RandomNum(4,4)
~ THEN BEGIN 8 // from:
  SAY #15004 /* ~Such wonderful weather, hasn't it been?  I rather think I may go on a fox hunt, soon.  Nothing more delightful than a fox hunt!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
RandomNum(4,2)
Dead("KalahIllusion")~ THEN BEGIN 9 // from:
  SAY #19637 /* ~Hmph.  You may have saved that circus, but I still think they should take it away.  Hideous colors, that.~ */
  IF ~~ THEN EXIT
END
