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

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

IF WEIGHT #6 /* Triggers after states #: 1 2 5 6 7 8 even though they appear after this state */
~RandomNum(3,1)
~ THEN BEGIN 0 // from:
  SAY #25650 /* ~I do so adore this tavern... it is the only place I have been able to locate a single glass of Damaaran white!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("MurdersSolved","GLOBAL",0)
RandomNum(3,1)
~ THEN BEGIN 1 // from:
  SAY #25651 /* ~This part of the city is so unsafe at night... it makes my flesh crawl to think of the murders, here!~ */
  IF ~~ THEN DO ~SetGlobal("knowsmurders","GLOBAL",1)~ EXIT
END

IF WEIGHT #1 ~Global("MurdersSolved","GLOBAL",1)
RandomNum(3,1)
~ THEN BEGIN 2 // from:
  SAY #25652 /* ~I hear the murders have been solved.  It is such a wonderful relief to not have to spend so much coin on extra guards!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 5 6 7 8 even though they appear after this state */
~RandomNum(3,2)
~ THEN BEGIN 3 // from:
  SAY #25653 /* ~The halflings do tend to get a bit underfoot, here, don't they?  I actually tripped over that serving wench yesterday.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #8 /* Triggers after states #: 5 6 7 8 even though they appear after this state */
~RandomNum(3,3)
~ THEN BEGIN 4 // from:
  SAY #25654 /* ~I understand the plays downstairs are quite terrible.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~Global("InteractValygar","LOCALS",0)
InParty("Valygar")
!StateCheck("Valygar",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 5 // from:
  SAY #25655 /* ~Oh... you... you are that Corthala man, are you not?  The one with the... er... mansion down the way?~ */
  IF ~~ THEN DO ~SetGlobal("InteractValygar","LOCALS",1)
~ EXTERN ~VALYGARJ~ 17
END

IF WEIGHT #3 ~Global("InteractAnomen","LOCALS",0)
InParty("Anomen")
!StateCheck("Anomen",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 6 // from:
  SAY #25658 /* ~Ah, Anomen Delryn, is it not?  I have not seen your father in ages!  How fares Lord Cor, then?~ */
  IF ~~ THEN DO ~SetGlobal("InteractAnomen","LOCALS",1)
~ EXTERN ~ANOMENJ~ 136
END

IF WEIGHT #4 ~Global("InteractNalia","LOCALS",0)
InParty("Nalia")
!StateCheck("Nalia",STATE_SLEEPING)
RandomNum(2,1)~ THEN BEGIN 7 // from:
  SAY #48827 /* ~Ahhh, if it isn't the sweet Nalia de'Arnise!  It is so good to see you within the city, my dear!  Is Delcia with you?  I'd SO love to talk with her!~ */
  IF ~~ THEN DO ~SetGlobal("InteractNalia","LOCALS",1)~ EXTERN ~NALIAJ~ 242
END

IF WEIGHT #5 ~Global("InteractKeldorn","LOCALS",0)
InParty("Keldorn")
!StateCheck("Keldorn",STATE_SLEEPING)
RandomNum(2,1)~ THEN BEGIN 8 // from:
  SAY #48828 /* ~Sir Keldorn, is that you?  How wonderful to see you!  How are your two sweet girls... fine, I hope?~ */
  IF ~~ THEN DO ~SetGlobal("InteractKeldorn","LOCALS",1)~ EXTERN ~KELDORJ~ 122
END
