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

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

IF WEIGHT #2 /* Triggers after states #: 5 6 even though they appear after this state */
~RandomNum(5,1)~ THEN BEGIN 0 // from:
  SAY #22504 /* ~OooOOooh... only one day's shore leave an' I can barely see straight...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 5 6 even though they appear after this state */
~RandomNum(5,2)~ THEN BEGIN 1 // from:
  SAY #22505 /* ~(hic!)  'Tis a sailor's life, it is, an' a fine one at that!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 5 6 even though they appear after this state */
~RandomNum(5,3)~ THEN BEGIN 2 // from:
  SAY #22506 /* ~(hic!)  I been robbed twice since I got ashore, but I'm bloody well in my cups, so I don't give a care!  (hic!)~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 5 6 even though they appear after this state */
~RandomNum(5,4)~ THEN BEGIN 3 // from:
  SAY #22507 /* ~Oh, me head is hurtin' bad, now.  'Tis the curse of bein' a sailor, I suppose.  Oooh...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 5 6 even though they appear after this state */
~RandomNum(5,5)~ THEN BEGIN 4 // from:
  SAY #22508 /* ~Ah, me ship leaves in less than an hour, it does.  The Captain'll have me hide if I'm not aboard!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~See("Viconia")
InParty("Viconia")
!StateCheck("Viconia",STATE_SLEEPING)
RandomNum(2,1)
Global("dsailor2viconia","AR0500",0)
~ THEN BEGIN 5 // from:
  SAY #22509 /* ~Hey, now!  <hic!>  If I don't be seein' a beautiful drow in front of me drunken sailor eyes!  <hic!>  I wonder if all the rumors be true...?~ */
  IF ~~ THEN DO ~SetGlobal("dsailor2viconia","AR0500",1)~ EXTERN ~VICONIJ~ 7
END

IF WEIGHT #1 ~See("Jaheira")
InParty("Jaheira")
!StateCheck("Jaheira",STATE_SLEEPING)
RandomNum(2,1)
Global("dsailor2jaheira","AR0500",0)
~ THEN BEGIN 6 // from:
  SAY #22511 /* ~(hic!)  Lookit that elf!  I been in every port in on the Coast an' I ain't seen legs like that!  (hic!)~ */
  IF ~~ THEN DO ~SetGlobal("dsailor2jaheira","AR0500",1)~ EXTERN ~JAHEIRAJ~ 217
END
