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

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

IF WEIGHT #0 ~See("Minsc")
InParty("Minsc")
!StateCheck("Minsc",STATE_SLEEPING)
RandomNum(3,1)
Global("brat2minsc","AR0700",0)
~ THEN BEGIN 0 // from:
  SAY #14246 /* ~I want to see your pet.  Can he come out and play?~ */
  IF ~~ THEN DO ~SetGlobal("brat2minsc","AR0700",1)~ EXTERN ~MINSCJ~ 30
END

IF WEIGHT #1 ~See("Aerie")
InParty("Aerie")
!StateCheck("Aerie",STATE_SLEEPING)
RandomNum(3,2)
Global("brat2aerie","AR0700",0)
~ THEN BEGIN 1 // from:
  SAY #14274 /* ~Is there something wrong with your back, pretty lady?  It looks weird.~ */
  IF ~~ THEN DO ~SetGlobal("brat2aerie","AR0700",1)~ EXTERN ~AERIEJ~ 11
END

IF ~~ THEN BEGIN 2 // from:
  SAY #14275 /* ~Oh.  You must be a gargoyle then, right?~ */
  IF ~~ THEN EXTERN ~AERIEJ~ 12
END

IF WEIGHT #2 ~See("Yoshimo")
InParty("Yoshimo")
!StateCheck("Yoshimo",STATE_SLEEPING)
RandomNum(3,3)
Global("brat2yoshimo","AR0700",0)
~ THEN BEGIN 3 // from:
  SAY #14278 /* ~You sure do look creepy, mister.~ */
  IF ~~ THEN DO ~SetGlobal("brat2yoshimo","AR0700",1)~ EXTERN ~YOSHJ~ 0
END

IF ~~ THEN BEGIN 4 // from:
  SAY #14280 /* ~WOW!!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~RandomNum(5,1)
!Dead("KalahIllusion")~ THEN BEGIN 5 // from:
  SAY #14281 /* ~(sniff) I really wanted to go to the circus, too, but I guess something happened there and now I can't.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 8 even though they appear after this state */
~RandomNum(2,1)~ THEN BEGIN 6 // from:
  SAY #14283 /* ~I got your nose!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 8 even though they appear after this state */
~RandomNum(2,2)~ THEN BEGIN 7 // from:
  SAY #14300 /* ~My momma works at the Copper Coronet.  She says it's just a flash panney, but I don't know what that means.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 ~RandomNum(5,2)
Dead("KalahIllusion")~ THEN BEGIN 8 // from:
  SAY #19630 /* ~The circus is all better now, so I can go.  I wanna see the tiger!~ */
  IF ~~ THEN EXIT
END
