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

BEGIN ~GNOBLEF1~ 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 #29537 /* ~If you weren't aware otherwise, this is certainly the part of town to see and be seen in.  Hm... but, then, you're a commoner.~ */
  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 #29538 /* ~(yawn)  Oh, I apologize... were you actually speaking to me?~ */
  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 #29539 /* ~If you wait here long enough, a member of the Council and his entourage is sure to pass by.~ */
  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 #29540 /* ~They need to build a coliseum, I think.  There simply isn't enough entertainment for the Amnish nobility, truly.  Maybe have some of those Mazticans fight each other to death or something.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~InParty("Valygar")
See("Valygar")
!StateCheck("Valygar",STATE_SLEEPING)
RandomNum(2,1)
Global("gnoblef1Valygar","GLOBAL",0)
~ THEN BEGIN 4 // from:
  SAY #29541 /* ~Oh, how absolutely delicious!  If it isn't Valygar Corthala!  How is your mother, darling boy?~ */
  IF ~~ THEN DO ~SetGlobal("gnoblef1Valygar","GLOBAL",1)
~ EXTERN ~VALYGARJ~ 21
END

IF WEIGHT #1 ~InParty("Keldorn")
See("Keldorn")
!StateCheck("Keldorn",STATE_SLEEPING)
RandomNum(2,1)
Global("gnoblef1Keldorn","GLOBAL",0)
~ THEN BEGIN 5 // from:
  SAY #29543 /* ~Well, well, well.  If it isn't Lord Keldorn, himself.  You should keep a closer eye on Lady Maria, I think, my Lord.  <chuckle>~ */
  IF ~~ THEN DO ~SetGlobal("gnoblef1Keldorn","GLOBAL",1)
~ EXTERN ~KELDORJ~ 72
END

IF WEIGHT #2 ~InParty("Nalia")
See("Nalia")
!StateCheck("Nalia",STATE_SLEEPING)
RandomNum(2,1)
Global("gnoblef1Nalia","LOCALS",0)~ THEN BEGIN 6 // from:
  SAY #50349 /* ~Nalia!  Nalia de'Arnise!  It is so good to see you again!  My dear son Filbert has been asking about you as of late... will you not come again and see the dear boy?~ */
  IF ~~ THEN DO ~SetGlobal("gnoblef1Nalia","LOCALS",1)~ EXTERN ~NALIAJ~ 263
END

IF WEIGHT #3 ~InParty("HaerDalis")
See("HaerDalis")
!StateCheck("HaerDalis",STATE_SLEEPING)
RandomNum(2,2)
Global("gnoblef1HaerDalis","LOCALS",0)~ THEN BEGIN 7 // from:
  SAY #50352 /* ~Oooh, is this the handsome actor I heard so much about with his plays in the Bridge District?  You should stage them in a more suitable venue.~ */
  IF ~~ THEN DO ~SetGlobal("gnoblef1HaerDalis","LOCALS",1)~ EXTERN ~HAERDAJ~ 94
END
