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

BEGIN ~GFTOWN02~ 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 #29521 /* ~I'm off t' pay me taxes, I am.  Almost twice as much as last year, too...'tis a most horrid travesty!~ */
  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 #29522 /* ~I would invite ye all to join in on me family's feast this eve, but there be barely enough spread these days t' cover the table.~ */
  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 #29523 /* ~I hope ye haven't tried dealin' with the bloody bureaucracy in the city.  Tsk.  They don't calls this the 'City of Coin' for nothing, me friend.~ */
  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 #29524 /* ~Don't ye go near the docks... I warn ye, it's dangerous and nearly unguarded.  Fie on the guard, fie!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~InParty("Keldorn")
See("Keldorn")
!StateCheck("Keldorn",STATE_SLEEPING)
RandomNum(2,1)
Global("gftown02Keldorn","GLOBAL",0)
~ THEN BEGIN 4 // from:
  SAY #29525 /* ~Why, Lord Keldorn... pleased to meet you, sir.  I just came from droppin' off Leona at yer estate, I did.~ */
  IF ~~ THEN DO ~SetGlobal("gftown02Keldorn","GLOBAL",1)
~ EXTERN ~KELDORJ~ 71
END

IF WEIGHT #1 ~InParty("Jan")
See("Jan")
!StateCheck("Jan",STATE_SLEEPING)
RandomNum(2,1)
Global("gftown02Jan","GLOBAL",0)
~ THEN BEGIN 5 // from:
  SAY #29527 /* ~Well, if it isn't Jan Jansen.  You incorrigible old gnome, you!  Married a lass yet, hmm?~ */
  IF ~~ THEN DO ~SetGlobal("gftown02Jan","GLOBAL",1)
~ EXTERN ~JANJ~ 75
END

IF WEIGHT #2 ~InParty("Anomen")
See("Anomen")
!StateCheck("Anomen",STATE_SLEEPING)
RandomNum(2,1)
Global("gftown02Anomen","LOCALS",0)~ THEN BEGIN 6 // from:
  SAY #50302 /* ~Wait one moment... that wouldn't be Cor's son there, would it?  Why, I remember when I used to swaddle you in diapers, I do!  My, but you haven't changed a bit!~ */
  IF ~~ THEN DO ~SetGlobal("gftown02Anomen","LOCALS",1)~ EXTERN ~ANOMENJ~ 244
END

IF WEIGHT #3 ~InParty("Edwin")
See("Edwin")
!StateCheck("Edwin",STATE_SLEEPING)
RandomNum(2,2)
Global("gftown02Edwin","LOCALS",0)~ THEN BEGIN 7 // from:
  SAY #50303 /* ~Oh, hello... why... HELLO, there.  It's been a while since I've seen a well-dressed gentleman of such obvious well-breeding.  You would be... hmmn... Thayvian, perhaps?~ */
  IF ~~ THEN DO ~SetGlobal("gftown02Edwin","LOCALS",1)~ EXTERN ~EDWINJ~ 90
END
