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

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

IF WEIGHT #4 /* Triggers after states #: 4 5 6 7 even though they appear after this state */
~RandomNum(4,1)
~ THEN BEGIN 0 // from:
  SAY #25607 /* ~Ye should watch yerselves when ye're around the docks, mate.  I hears that can be a rough area.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 4 5 6 7 even though they appear after this state */
~RandomNum(4,2)
~ THEN BEGIN 1 // from:
  SAY #25608 /* ~They don't have enough guards around this part o' the city.  It just ain't safe.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 4 5 6 7 even though they appear after this state */
~RandomNum(4,3)
~ THEN BEGIN 2 // from:
  SAY #25609 /* ~What's with havin' a playhouse in here?  I thought this were a tavern, aye?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 4 5 6 7 even though they appear after this state */
~RandomNum(4,4)
~ THEN BEGIN 3 // from:
  SAY #25610 /* ~I swears I'm going t' save up and try meself some of that elven brew me lads gab about.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("InteractViconia","LOCALS",0)
InParty("Viconia")
!StateCheck("Viconia",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 4 // from:
  SAY #25611 /* ~Aye, now, how's an evil thing like a dark elf come an' let to be walkin' around, much less in 'ere?!~ */
  IF ~~ THEN DO ~SetGlobal("InteractViconia","LOCALS",1)
~ EXTERN ~VICONIJ~ 15
END

IF WEIGHT #1 ~Global("InteractJaheira","LOCALS",0)
InParty("Jaheira")
!StateCheck("Jaheira",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 5 // from:
  SAY #25614 /* ~Heh.  I suppose you flighty elven types are here t' look at the plays downstairs, aye?~ */
  IF ~~ THEN DO ~SetGlobal("InteractJaheira","LOCALS",1)
~ EXTERN ~JAHEIRAJ~ 242
END

IF WEIGHT #2 ~Global("InteractMazzy","LOCALS",0)
InParty("Mazzy")
!StateCheck("Mazzy",STATE_SLEEPING)
RandomNum(2,1)~ THEN BEGIN 6 // from:
  SAY #48823 /* ~Now, there... aren't ye just the sweetest halfling a man's gotta lay eyes on.  Ye comes here often, does ye?~ */
  IF ~~ THEN DO ~SetGlobal("InteractMazzy","LOCALS",1)~ EXTERN ~MAZZYJ~ 138
END

IF WEIGHT #3 ~Global("InteractAerie","LOCALS",0)
InParty("Aerie")
!StateCheck("Aerie",STATE_SLEEPING)
RandomNum(2,1)~ THEN BEGIN 7 // from:
  SAY #48824 /* ~Ach... yer pretty like an angel, ye are, miss.  Would... would ye do me the honor of taking me hand in marriage?~ */
  IF ~~ THEN DO ~SetGlobal("InteractAerie","LOCALS",1)~ EXTERN ~AERIEJ~ 68
END
