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

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

IF WEIGHT #4 /* Triggers after states #: 1 2 3 4 even though they appear after this state */
~RandomNum(2,1)
~ THEN BEGIN 0 // from:
  SAY #25661 /* ~(sniff)  If it weren't for the fine elven wines which that horridly cheerful little halfling sells, I wouldn't deign to come here at all.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("MurdersSolved","GLOBAL",0)
RandomNum(3,1)
~ THEN BEGIN 1 // from:
  SAY #25662 /* ~(sniff)  They really should do something about that murderer fellow in these parts... or at least force him not to flay his victims.  How ghastly!~ */
  IF ~~ THEN DO ~SetGlobal("knowsmurders","GLOBAL",1)~ EXIT
END

IF WEIGHT #1 ~RandomNum(2,2)
~ THEN BEGIN 2 // from:
  SAY #25663 /* ~(sniff)  I tried going to that theater they have in the cellar, here, but it is so dusty and drab.  That, and the plays are horribly melodramatic.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~Global("InteractYoshimo","LOCALS",0)
InParty("Yoshimo")
!StateCheck("Yoshimo",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 3 // from:
  SAY #25664 /* ~You haven't seen my signet ring, have you?  It's a family heirloom... it must have fallen off my finger, I suppose...~ */
  IF ~~ THEN DO ~SetGlobal("InteractYoshimo","LOCALS",1)
~ EXTERN ~YOSHJ~ 15
END

IF WEIGHT #3 ~Global("InteractKeldorn","LOCALS",0)
InParty("Keldorn")
!StateCheck("Keldorn",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 4 // from:
  SAY #25666 /* ~Ah... Lord Keldorn.  Good to see you.  (sniff)  I trust the Lady Maria is well?~ */
  IF ~~ THEN DO ~SetGlobal("InteractKeldorn","LOCALS",1)
~ EXTERN ~KELDORJ~ 64
END
