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

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

IF WEIGHT #2 /* Triggers after states #: 4 6 even though they appear after this state */
~Gender(LastTalkedToBy,FEMALE)
RandomNum(3,1)
~ THEN BEGIN 0 // from:
  SAY #26150 /* ~Why, hello there my sweet little dumpling.  You may not know this, but the experience of gnomish pleasure is unequalled throughout Faerun!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 4 6 even though they appear after this state */
~Gender(LastTalkedToBy,FEMALE)
RandomNum(3,2)
~ THEN BEGIN 1 // from:
  SAY #26151 /* ~Come, my scrumptious little curried chicken... shall we be off to an evening of merriment, hm?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 4 6 even though they appear after this state */
~Gender(LastTalkedToBy,FEMALE)
RandomNum(3,3)
~ THEN BEGIN 2 // from:
  SAY #26152 /* ~I'm sure you're wondering what the nose is all about.  It's rather large... even for us gnomes, eh?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 4 6 even though they appear after this state */
~Gender(LastTalkedToBy,MALE)
~ THEN BEGIN 3 // from:
  SAY #26153 /* ~Go away... you're cramping my style.  If the ladies see me with you, I'll never make a coin.~ */
  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 #26154 /* ~Well, if it isn't Jan Jansen.  I see you're not selling turnips anymore.~ */
  IF ~~ THEN DO ~SetGlobal("InteractJan","LOCALS",1)
~ EXTERN ~JANJ~ 61
END

IF ~~ THEN BEGIN 5 // from:
  SAY #26156 /* ~Hah!  I can unequivocally say that I am the wealthiest and best-loved gnome in the entire city!~ */
  IF ~~ THEN EXTERN ~JANJ~ 62
END

IF WEIGHT #1 ~Global("InteractMazzy","LOCALS",0)
InParty("Mazzy")
!StateCheck("Mazzy",STATE_SLEEPING)
RandomNum(2,1)
~ THEN BEGIN 6 // from:
  SAY #26158 /* ~How about it, my luscious little porkchop?  You... me... together in an embrace that would shock your mother?~ */
  IF ~~ THEN DO ~SetGlobal("InteractMazzy","LOCALS",1)
~ EXTERN ~MAZZYJ~ 83
END
