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

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

IF WEIGHT #1 /* Triggers after states #: 4 even though they appear after this state */
~RandomNum(4,1)
~ THEN BEGIN 0 // from:
  SAY #28477 /* ~I be lookin' for no trouble, mate.  I just be here on a layover, that be all.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 /* Triggers after states #: 4 even though they appear after this state */
~RandomNum(4,2)
~ THEN BEGIN 1 // from:
  SAY #28478 /* ~Have ye e'er been to Maztica, mate?  'Tis the wild lands off to the far west across the Trackless Sea.  The colony of New Amn be small and harsh, but its riches be plenty!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 4 even though they appear after this state */
~RandomNum(4,3)
~ THEN BEGIN 2 // from:
  SAY #28480 /* ~I been to the New World city o' Ulatos, mate... off west in Maztica.  The governor, there, does treat the natives harshly... It will come to violence soon, I fear.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 4 even though they appear after this state */
~RandomNum(4,4)
~ THEN BEGIN 3 // from:
  SAY #28481 /* ~The cap'n says that the thieves must be paid, ere any cargo can be loaded onto the ship.  'Tis a long wait this time, I think.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~InParty("Keldorn")
See("Keldorn")
RandomNum(2,1)
Global("barsail2Keldorn","GLOBAL",0)
~ THEN BEGIN 4 // from:
  SAY #28483 /* ~I don't know why the Amnish kill so many of the Mazticans off in the New World.  'Tis a terrible thing to witness.~ */
  IF ~~ THEN DO ~SetGlobal("barsail2Keldorn","GLOBAL",1)
~ EXTERN ~KELDORJ~ 70
END
