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

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

IF WEIGHT #0 ~Global("MurdersSolved","GLOBAL",0)
RandomNum(3,1)
~ THEN BEGIN 0 // from:
  SAY #25753 /* ~I'm so nervous about this murderer on the loose, here, my feet hairs is all but curled up and hiding!~ */
  IF ~~ THEN DO ~SetGlobal("knowsmurders","GLOBAL",1)~ EXIT
END

IF WEIGHT #5 /* Triggers after states #: 2 5 6 7 even though they appear after this state */
~RandomNum(3,1)
~ THEN BEGIN 1 // from:
  SAY #25754 /* ~I'm kinda in the mood for a sweetbun.  Anyone else want a sweetbun?  I'm kinda in the mood.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~Global("MurdersSolved","GLOBAL",1)
RandomNum(3,1)
~ THEN BEGIN 2 // from:
  SAY #25756 /* ~At least we can walk the streets, here, at night again.  That way, I can satisfy my late-night sweetbun cravings!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 5 6 7 even though they appear after this state */
~RandomNum(3,2)
~ THEN BEGIN 3 // from:
  SAY #25757 /* ~Have ye been by the Five Flagons?  'Tis lovely service!  Good food, too!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 5 6 7 even though they appear after this state */
~RandomNum(3,3)
~ THEN BEGIN 4 // from:
  SAY #25758 /* ~I'm hungry...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~Global("InteractKorgan","LOCALS",0)
IsValidForPartyDialog("Korgan")
RandomNum(2,1)
~ THEN BEGIN 5 // from:
  SAY #25759 /* ~You're kinda big for a halfling, fuzzy.~ */
  IF ~~ THEN DO ~SetGlobal("InteractKorgan","LOCALS",1)
~ EXTERN ~KORGANJ~ 21
END

IF WEIGHT #3 ~Global("InteractMazzy","LOCALS",0)
IsValidForPartyDialog("Mazzy")
RandomNum(2,1)
~ THEN BEGIN 6 // from:
  SAY #25761 /* ~What are you all done up in armor and stuff for, l'il lass?~ */
  IF ~~ THEN DO ~SetGlobal("InteractMazzy","LOCALS",1)
~ EXTERN ~MAZZYJ~ 82
END

IF WEIGHT #4 ~Global("InteractKeldorn","LOCALS",0)
IsValidForPartyDialog("Keldorn")
RandomNum(2,1)~ THEN BEGIN 7 // from:
  SAY #48736 /* ~Hmph.  I don't think much of the Order of the so-called Radiant Heart.  It seems to me like nothin' more than a bunch of blowhards who ride around in plate mail.~ */
  IF ~~ THEN DO ~SetGlobal("InteractKeldorn","LOCALS",1)~ EXTERN ~KELDORJ~ 120
END
