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

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

IF WEIGHT #4 /* Triggers after states #: 4 5 6 7 even though they appear after this state */
~RandomNum(4,1)
~ THEN BEGIN 0 // from:
  SAY #29529 /* ~Three acres of perfectly good farmland destroyed by hail.  Hmph.  It has not been an easy year.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 4 5 6 7 even though they appear after this state */
~RandomNum(4,2)
~ THEN BEGIN 1 // from:
  SAY #29530 /* ~I am looking for some workers to add onto my manse... might you be interested?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 4 5 6 7 even though they appear after this state */
~RandomNum(4,3)
~ THEN BEGIN 2 // from:
  SAY #29531 /* ~I understand that the Jysstevs are hosting a famous artist... I do hope he will put on a display for us!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 4 5 6 7 even though they appear after this state */
~RandomNum(4,4)
~ THEN BEGIN 3 // from:
  SAY #29532 /* ~I think I saw one of the Cowled Wizards walking down the street, bold as day.  They should arrest all his like and be done with it.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~InParty("Anomen")
See("Anomen")
!StateCheck("Anomen",STATE_SLEEPING)
RandomNum(2,1)
Global("gnoblem1Anomen","GLOBAL",0)
~ THEN BEGIN 4 // from:
  SAY #29533 /* ~Ah!  Lord Anomen!  Is your father still carrying on his losing battle with that commoner?~ */
  IF ~~ THEN DO ~SetGlobal("gnoblem1Anomen","GLOBAL",1)
~ EXTERN ~ANOMENJ~ 147
END

IF WEIGHT #1 ~InParty("Nalia")
See("Nalia")
!StateCheck("Nalia",STATE_SLEEPING)
RandomNum(2,1)
Global("gnoblem1Nalia","GLOBAL",0)
~ THEN BEGIN 5 // from:
  SAY #29535 /* ~Let me see... you are the de'Arnise girl, aren't you?  Why aren't you decently married yet?~ */
  IF ~~ THEN DO ~SetGlobal("gnoblem1Nalia","GLOBAL",1)
~ EXTERN ~NALIAJ~ 130
END

IF WEIGHT #2 ~InParty("Mazzy")
See("Mazzy")
!StateCheck("Mazzy",STATE_SLEEPING)
RandomNum(2,1)
Global("gnoblem1Mazzy","LOCALS",0)~ THEN BEGIN 6 // from:
  SAY #50366 /* ~I see they still allow you halflings to scurry about even in the wealthier portions of the city.  (sigh)  Some things will never change, I suppose.~ */
  IF ~~ THEN DO ~SetGlobal("gnoblem1Mazzy","LOCALS",1)~ EXTERN ~MAZZYJ~ 160
END

IF WEIGHT #3 ~InParty("Viconia")
See("Viconia")
!StateCheck("Viconia",STATE_SLEEPING)
RandomNum(2,2)
Global("gnoblem1Viconia","LOCALS",0)~ THEN BEGIN 7 // from:
  SAY #50367 /* ~Ah, a dark elf here in the good districts.  I thought the guards would herd you people off to the slums, along with the halflings and dwarves.  Think of the property values!~ */
  IF ~~ THEN DO ~SetGlobal("gnoblem1Viconia","LOCALS",1)~ EXTERN ~VICONIJ~ 82
END
