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

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

IF WEIGHT #6 /* Triggers after states #: 1 2 5 6 7 8 even though they appear after this state */
~RandomNum(3,1)
~ THEN BEGIN 0 // from:
  SAY #25777 /* ~Have you seen the plays they've been putting on recently at the Five Flagons?  Simply delightful, they are!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("MurdersSolved","GLOBAL",0)
RandomNum(3,1)
~ THEN BEGIN 1 // from:
  SAY #25778 /* ~A woman just doesn't feel safe these days with all the murders in this area.  Something should be done about it!~ */
  IF ~~ THEN DO ~SetGlobal("knowsmurders","GLOBAL",1)~ EXIT
END

IF WEIGHT #1 ~Global("MurdersSolved","GLOBAL",1)
RandomNum(3,1)
~ THEN BEGIN 2 // from:
  SAY #25779 /* ~I'm so relieved that the murders are over with... who would have thought that little tanner fellow would be responsible?  He always seemed so friendly and quiet.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 5 6 7 8 even though they appear after this state */
~RandomNum(3,2)
~ THEN BEGIN 3 // from:
  SAY #25780 /* ~My children keep bothering me to go to the circus in the Waukeen's Promenade.  I don't know... I've heard the most awful rumors.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #8 /* Triggers after states #: 5 6 7 8 even though they appear after this state */
~RandomNum(3,3)
~ THEN BEGIN 4 // from:
  SAY #25781 /* ~Where did my husband go?  He was just here a moment ago...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~Global("InteractJaheira","LOCALS",0)
InParty("Jaheira")
See("Jaheira")
!StateCheck("Jaheira",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 5 // from:
  SAY #25782 /* ~I don't know why they allow some people to practice magic and not others.  All magic should just be banned forever!~ */
  IF ~~ THEN DO ~SetGlobal("InteractJaheira","LOCALS",1)
~ EXTERN ~JAHEIRAJ~ 244
END

IF WEIGHT #3 ~Global("InteractEdwin","LOCALS",0)
See("Edwin")
InParty("Edwin")
!StateCheck("Edwin",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 6 // from:
  SAY #25784 /* ~I think it is such a shame that they just do not search all the houses and round up all the sorcerers and just... do away with them all!~ */
  IF ~~ THEN DO ~SetGlobal("InteractEdwin","LOCALS",1)
~ EXTERN ~EDWINJ~ 24
END

IF WEIGHT #4 ~Global("InteractNalia","LOCALS",0)
See("Nalia")
InParty("Nalia")
!StateCheck("Nalia",STATE_SLEEPING)
RandomNum(2,1)~ THEN BEGIN 7 // from:
  SAY #48706 /* ~Bah!  I hear there's books about magic everywhere.  They should round them all up and burn them!  Eradicate all that vile knowledge forever!~ */
  IF ~~ THEN DO ~SetGlobal("InteractNalia","LOCALS",1)~ EXTERN ~NALIAJ~ 240
END

IF WEIGHT #5 ~Global("InteractAerie","LOCALS",0)
See("Aerie")
InParty("Aerie")
!StateCheck("Aerie",STATE_SLEEPING)
RandomNum(2,1)~ THEN BEGIN 8 // from:
  SAY #48709 /* ~You know... everything that's gone wrong with the world is due to magic.  I believe we'd all be better off if it was all gone.~ */
  IF ~~ THEN DO ~SetGlobal("InteractAerie","LOCALS",1)~ EXTERN ~AERIEJ~ 65
END
