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

BEGIN ~FFCUST01~ 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 #25575 /* ~Well, now, I don't know why that inspector fellow keeps lookin' odd at me... I ain't done nothin'.  At least, I ain't done nothin' with those murders, that is.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~Global("MurdersSolved","GLOBAL",1)
RandomNum(3,1)
~ THEN BEGIN 1 // from:
  SAY #25576 /* ~Aye, now... we'll rest easy now that that business is all over with.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 5 6 8 9 even though they appear after this state */
~RandomNum(3,1)
~ THEN BEGIN 2 // from:
  SAY #25577 /* ~I'm just waitin' for someone to come by, here... and I don't be thinkin' that's you, neither.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 5 6 8 9 even though they appear after this state */
~RandomNum(3,2)
~ THEN BEGIN 3 // from:
  SAY #25578 /* ~You're blockin' my view... why don't you go an' see the play downstairs?  They're still doin' one, I think.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #8 /* Triggers after states #: 5 6 8 9 even though they appear after this state */
~RandomNum(3,3)
~ THEN BEGIN 4 // from:
  SAY #25579 /* ~Look... I don't be wantin' to buy nothin' and I ain't sellin' nothing.  Leave me be.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~Global("InteractHaerDalis","LOCALS",0)
InParty("HaerDalis")
!StateCheck("HaerDalis",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 5 // from:
  SAY #25580 /* ~Aye, now... ye're back are ye?~ */
  IF ~~ THEN DO ~SetGlobal("InteractHaerDalis","LOCALS",1)
~ EXTERN ~HAERDAJ~ 41
END

IF WEIGHT #3 ~Global("InteractMazzy","LOCALS",0)
InParty("Mazzy")
!StateCheck("Mazzy",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 6 // from:
  SAY #25582 /* ~Wait, now... aren't ye the one I'm waitin' for, missy?~ */
  IF ~~ THEN DO ~SetGlobal("InteractMazzy","LOCALS",1)
~ EXTERN ~MAZZYJ~ 78
END

IF ~~ THEN BEGIN 7 // from:
  SAY #25584 /* ~Well, ye're a halfling... they all looks alikes t' me.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 ~Global("InteractYoshimo","LOCALS",0)
IsValidForPartyDialog("Yoshimo")
RandomNum(2,1)~ THEN BEGIN 8 // from:
  SAY #48802 /* ~Eh?  Yoshimo?  I thought ye were dead, I did!~ */
  IF ~~ THEN DO ~SetGlobal("InteractYoshimo","LOCALS",1)~ EXTERN ~YOSHJ~ 51
END

IF WEIGHT #5 ~Global("InteractJaheira","LOCALS",0)
IsValidForPartyDialog("Jaheira")
RandomNum(2,1)~ THEN BEGIN 9 // from:
  SAY #48804 /* ~Oh, ah... excuse me, I ah...~ */
  IF ~~ THEN DO ~SetGlobal("InteractJaheira","LOCALS",1)~ EXTERN ~JAHEIRAJ~ 368
END

IF ~~ THEN BEGIN 10 // from:
  SAY #48816 /* ~Er... no, no I don't think so.  I must be going, actually...~ */
  IF ~~ THEN DO ~EscapeArea()~ EXTERN ~JAHEIRAJ~ 369
END
