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

BEGIN ~GMTOWN01~ 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 #29508 /* ~So much to do, so much to do... and so very little time.  It's never anything around here but run run run!~ */
  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 #29509 /* ~Were you aware that Athkatla is one of the wealthiest cities in the world?  Why, with our colonies in Maztica, there is more gold flowing through the City of Coin than anywhere east!~ */
  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 #29510 /* ~Mmm... I haven't been to one of the spa tubs in ages.  It's the only luxury we, here, in the city really have.~ */
  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 #29513 /* ~There was the oddest little gnome around here selling things like weapons and the like.  ... I could have sworn I remember seeing him selling turnips last month.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~InParty("Valygar")
See("Valygar")
!StateCheck("Valygar",STATE_SLEEPING)
RandomNum(2,1)
Global("gmtown01Valygar","GLOBAL",0)
~ THEN BEGIN 4 // from:
  SAY #29516 /* ~Ah... you wouldn't be here to sweep the street, would you, sir?~ */
  IF ~~ THEN DO ~SetGlobal("gmtown01Valygar","GLOBAL",1)
~ EXTERN ~VALYGARJ~ 20
END

IF WEIGHT #1 ~InParty("Viconia")
!Dead("Viconia")
See("Viconia")
!StateCheck("Viconia",STATE_SLEEPING)
RandomNum(2,1)
Global("gmtown01Viconia","GLOBAL",0)
~ THEN BEGIN 5 // from:
  SAY #29519 /* ~Umm... weren't you dragged in here, earlier?  I could have sworn they were going to burn you.~ */
  IF ~~ THEN DO ~SetGlobal("gmtown01Viconia","GLOBAL",1)
~ EXTERN ~VICONIJ~ 22
END

IF WEIGHT #2 ~InParty("HaerDalis")
See("HaerDalis")
!StateCheck("HaerDalis",STATE_SLEEPING)
RandomNum(2,1)
Global("gmtown01HaerDalis","LOCALS",0)~ THEN BEGIN 6 // from:
  SAY #50329 /* ~Oh... er, excuse me.  Pardon the question, but do you have some orcish blood in you?  You're features are... so strange... I don't think I've seen the like, here.~ */
  IF ~~ THEN DO ~SetGlobal("gmtown01HaerDalis","LOCALS",1)~ EXTERN ~HAERDAJ~ 93
END

IF WEIGHT #3 ~InParty("Korgan")
See("Korgan")
!StateCheck("Korgan",STATE_SLEEPING)
RandomNum(2,2)
Global("gmtown01Korgan","LOCALS",0)~ THEN BEGIN 7 // from:
  SAY #50330 /* ~A dwarf?  We don't see too many dwarves, here.  Most of them are out in the hills, mining, although a few do come to town to smith and all.  But not many.~ */
  IF ~~ THEN DO ~SetGlobal("gmtown01Korgan","LOCALS",1)~ EXTERN ~KORGANJ~ 108
END
