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

BEGIN ~BURCH2~ 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 #25814 /* ~MY MOTHER SAYS THAT DOGS HAVE FLEAS AND SO DOES THE POOR PEOPLE!!~ */
  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 #25817 /* ~MY MOTHER SAYS THAT ELVES SHOULD GO CLIMB A TREE SOMEWHERE!!~ */
  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 #25818 /* ~MY MOTHER SAYS THAT I AM A PRINCESS!!  I AM I AM I AM!!~ */
  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 #25819 /* ~MY MOTHER SAYS THAT I SHOULD GROW UP AND MARRY A RICH MAN FOR HER!!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("InteractEdwin,"LOCALS",0)
InParty("Edwin")
!StateCheck("Edwin",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 4 // from:
  SAY #25820 /* ~MY MOTHER SAYS THAT SORCERERS SHOULD BE CHOPPED UP INTO ITTY-BITTY PIECES AND FED TO THE DOGS!!~ */
  IF ~~ THEN DO ~SetGlobal("InteractEdwin","LOCALS",1)
~ EXTERN ~EDWINJ~ 27
END

IF WEIGHT #1 ~Global("InteractNalia","LOCALS",0)
InParty("Nalia")
!StateCheck("Nalia",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 5 // from:
  SAY #25822 /* ~MY MOTHER SAYS THAT I SHOULD BE SO LUCKY TO GROW UP AND BECOME A SHADOW THIEF!!~ */
  IF ~~ THEN DO ~SetGlobal("InteractNalia","LOCALS",1)
~ EXTERN ~NALIAJ~ 127
END

IF WEIGHT #2 ~Global("InteractViconia","LOCALS",0)
IsValidForPartyDialog("Viconia")
RandomNum(2,1)~ THEN BEGIN 6 // from:
  SAY #48763 /* ~MY MOTHER SAYS THAT DARK ELVES SHOULD BE HANGED UNLESS THEY'RE NAMED DRIZZT!!~ */
  IF ~~ THEN DO ~SetGlobal("InteractViconia","LOCALS",1)~ EXTERN ~VICONIJ~ 48
END

IF WEIGHT #3 ~Global("InteractJan","LOCALS",0)
IsValidForPartyDialog("Jan")
RandomNum(2,1)~ THEN BEGIN 7 // from:
  SAY #48764 /* ~MY MOTHER SAYS GNOMES ARE GROWN FROM DIRT!!~ */
  IF ~~ THEN DO ~SetGlobal("InteractJan","LOCALS",1)~ EXTERN ~JANJ~ 108
END
