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

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

IF WEIGHT #2 /* Triggers after states #: 6 7 even though they appear after this state */
~RandomNum(6,1)
!Dead("copcust2")
!StateCheck("copcust2",STATE_SLEEPING)~ THEN BEGIN 0 // from:
  SAY #23685 /* ~Mmm.  How are you doing over there, darling?  The Black Lotus settling in, is it?~ */
  IF ~~ THEN EXTERN ~COPCUST2~ 0
END

IF WEIGHT #3 /* Triggers after states #: 6 7 even though they appear after this state */
~RandomNum(6,2)
~ THEN BEGIN 1 // from:
  SAY #23687 /* ~You should sit down and join us for a spell.  Everybody's welcome.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 6 7 even though they appear after this state */
~RandomNum(6,3)
~ THEN BEGIN 2 // from:
  SAY #23688 /* ~Lehtinan is a wonderful, wonderful man.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 6 7 even though they appear after this state */
~RandomNum(6,4)
~ THEN BEGIN 3 // from:
  SAY #23689 /* ~We have Black Lotus, here, delivered from the farthest ports to our own luxurious laps...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 6 7 even though they appear after this state */
~RandomNum(6,5)
!Dead("copcust2")
!StateCheck("copcust2",STATE_SLEEPING)~ THEN BEGIN 4 // from:
  SAY #23690 /* ~How do you feel, darling?...~ */
  IF ~~ THEN EXTERN ~COPCUST2~ 1
END

IF WEIGHT #7 /* Triggers after states #: 6 7 even though they appear after this state */
~RandomNum(6,6)
~ THEN BEGIN 5 // from:
  SAY #23694 /* ~This is the pleasure room... you're welcome to join us.  Or sleep for a while.  We all end up asleep, here, eventually...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~See("Jaheira")
InParty("Jaheira")
!StateCheck("Jaheira",STATE_SLEEPING)
RandomNum(2,1)
Global("copcust1jaheira","AR0406",0)
~ THEN BEGIN 6 // from:
  SAY #23695 /* ~... MmmMmmm... my, but you are a pretty one?  Would you care to join me, my pretty elf?...~ */
  IF ~~ THEN DO ~SetGlobal("copcust1jaheira","AR0406",1)~ EXTERN ~JAHEIRAJ~ 218
END

IF WEIGHT #1 ~See("Yoshimo")
InParty("Yoshimo")
!StateCheck("Yoshimo",STATE_SLEEPING)
RandomNum(2,1)
Global("copcust1yoshimo","AR0406",0)
~ THEN BEGIN 7 // from:
  SAY #23697 /* ~... Care to sample some of our Black Lotus, my good friend?...~ */
  IF ~~ THEN DO ~SetGlobal("copcust1yoshimo","AR0406",1)~ EXTERN ~YOSHJ~ 6
END
