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

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

IF WEIGHT #0 ~!Global("RescuedMother","GLOBAL",1)
Global("SaveMyMom","GLOBAL",0)~ THEN BEGIN 0 // from:
  SAY #14956 /* ~(sniff)  My momma's still inside.  They says she can't come out.~ */
  IF ~~ THEN REPLY #14957 /* ~What are you talking about, child?~ */ GOTO 3
  IF ~~ THEN REPLY #14958 /* ~Quit your whining.  It's got nothing to do with me.~ */ GOTO 1
  IF ~~ THEN REPLY #14959 /* ~I'll see what I can do, little boy.~ */ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 3.1 0.1
  SAY #14961 /* ~(sniffle)  I... I... I just want my momma...~ */
  IF ~!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Yoshimo")~ THEN EXIT
  IF ~IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 311
  IF ~!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Yoshimo")~ THEN EXTERN ~YOSHJ~ 22
END

IF ~~ THEN BEGIN 2 // from: 3.0 0.2
  SAY #14963 /* ~(sniffle)  O-okay, <SIRMAAM>.~ */
  IF ~!IsValidForPartyDialog("Minsc")~ THEN DO ~SetGlobal("SaveMyMom","GLOBAL",1)~ UNSOLVED_JOURNAL #34112 /* ~Find the boy's mother inside the circus tent.

A little boy is lost outside of the circus tent while his mother is apparently trapped inside.  I will see if she is still within.~ */ EXIT
  IF ~IsValidForPartyDialog("Minsc")~ THEN DO ~SetGlobal("SaveMyMom","GLOBAL",1)~ EXTERN ~MINSCJ~ 67
END

IF ~~ THEN BEGIN 3 // from: 0.0
  SAY #14965 /* ~My momma went into the tent to see a show.  But somethin' happened and now nobody comes out.  There's guards who won't let nobody in anymore, too.  But my momma's in there!  I want my momma!~ */
  IF ~~ THEN REPLY #14966 /* ~I'll go and see if I can find your mother, alright?  Just calm down and be brave.~ */ GOTO 2
  IF ~~ THEN REPLY #14968 /* ~That's a tough break, child.  Too bad.~ */ GOTO 1
END

IF WEIGHT #2 /* Triggers after states #: 5 even though they appear after this state */
~Global("RescuedMother","GLOBAL",1)
~ THEN BEGIN 4 // from:
  SAY #19627 /* ~Thanks for saving my mother, <SIRMAAM>!  Papa will be so happy!~ */
  IF ~~ THEN DO ~AddExperienceParty(2500)
EscapeArea()
~ EXIT
END

IF WEIGHT #1 ~!Global("RescuedMother","GLOBAL",1)
Global("SaveMyMom","GLOBAL",1)
~ THEN BEGIN 5 // from:
  SAY #58782 /* ~Please, <SIRMAAM>... you said you'd find my momma.  (sniffle)  Please find her, please!~ */
  IF ~~ THEN EXIT
END
