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

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

IF WEIGHT #2 /* Triggers after states #: 4 5 even though they appear after this state */
~RandomNum(4,1)
~ THEN BEGIN 0 // from:
  SAY #25705 /* ~I am told that the use of magic is outlawed here in Athkatla... how very odd I find that.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 4 5 even though they appear after this state */
~RandomNum(4,2)
~ THEN BEGIN 1 // from:
  SAY #25706 /* ~I am almost tempted to seek out the fabled elven city of Suldanessellar... I'm told it is fair to the eye.  But the sea calls, of course...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 4 5 even though they appear after this state */
~RandomNum(4,3)
~ THEN BEGIN 2 // from:
  SAY #25707 /* ~There must be a half-decent pub about here somewhere that a sailor could go to relax.  Someplace with fine wine and plenty of lasses.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 4 5 even though they appear after this state */
~RandomNum(4,4)
~ THEN BEGIN 3 // from:
  SAY #25710 /* ~I wonder if there be a black market about.  I truly need to get a few... things... for the next outing to Lantan.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("InteractJan","LOCALS",0)
InParty("Jan")
!StateCheck("Jan",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 4 // from:
  SAY #25711 /* ~You there, gnome!  You gnomes sell things... might you have a selection of wares I could look at?~ */
  IF ~~ THEN DO ~SetGlobal("InteractJan","LOCALS",1)
~ EXTERN ~JANJ~ 60
END

IF WEIGHT #1 ~Global("InteractViconia","LOCALS",0)
InParty("Viconia")
!StateCheck("Viconia",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 5 // from:
  SAY #25713 /* ~A... a drow elf?  Here?  Er... might you be... willing to, er...~ */
  IF ~~ THEN DO ~SetGlobal("InteractViconia","LOCALS",1)
~ EXTERN ~VICONIJ~ 17
END
