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

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

IF WEIGHT #4 /* Triggers after states #: 4 5 6 7 even though they appear after this state */
~RandomNum(4,1)
~ THEN BEGIN 0 // from:
  SAY #30025 /* ~The rebellion in the south is caused by demi-humans, that's what I think.  Never mind ogres and such... it's the elves and the like that are behind it all!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 4 5 6 7 even though they appear after this state */
~RandomNum(4,2)
~ THEN BEGIN 1 // from:
  SAY #30027 /* ~Amn should send more ships and people to the New World... our colonies there should supercede all the others and bring great glory to our nation!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 4 5 6 7 even though they appear after this state */
~RandomNum(4,3)
~ THEN BEGIN 2 // from:
  SAY #30028 /* ~Have you never wondered who is on the Council of Six?  I think it's all wizards, that's what... the wizards rule us secretly!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 4 5 6 7 even though they appear after this state */
~RandomNum(4,4)
~ THEN BEGIN 3 // from:
  SAY #30029 /* ~I sometimes think there is no Council of Six... and that the Cowled Wizards and the Shadow Thieves rule all of Amn in secret!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~InParty("Viconia")
See("Viconia")
!StateCheck("Viconia",STATE_SLEEPING)
RandomNum(2,1)
Global("gftown01Viconia","GLOBAL",0)
~ THEN BEGIN 4 // from:
  SAY #30030 /* ~You!  A dark elf amongst us!  Yet more evidence that the demi-humans are coming upon us to rule!~ */
  IF ~~ THEN DO ~SetGlobal("gftown01Viconia","GLOBAL",1)
~ EXTERN ~VICONIJ~ 24
END

IF WEIGHT #1 ~InParty("Jaheira")
See("Jaheira")
!StateCheck("Jaheira",STATE_SLEEPING)
RandomNum(2,1)
Global("gftown01Jaheira","GLOBAL",0)
~ THEN BEGIN 5 // from:
  SAY #30032 /* ~Another elf!  I swear, suddenly they are everywhere amongst us!  Spies, spies all of them, I tell you!~ */
  IF ~~ THEN DO ~SetGlobal("gftown01Jaheira","GLOBAL",1)
~ EXTERN ~JAHEIRAJ~ 289
END

IF WEIGHT #2 ~InParty("Cernd")
See("Cernd")
!StateCheck("Cernd",STATE_SLEEPING)
RandomNum(2,1)
Global("gftown01cernd","LOCALS",0)~ THEN BEGIN 6 // from:
  SAY #50294 /* ~Who's that you got there?  Some old rustic from the rural areas?  You aren't here begging for coin, are you?  It's not allowed in this District.~ */
  IF ~~ THEN DO ~SetGlobal("gftown01cernd","LOCALS",1)~ EXTERN ~CERNDJ~ 97
END

IF WEIGHT #3 ~InParty("Minsc")
See("Minsc")
!StateCheck("Minsc",STATE_SLEEPING)
RandomNum(2,2)
Global("gftown01minsc","LOCALS",0)~ THEN BEGIN 7 // from:
  SAY #50296 /* ~What's that you got there... you with all the scars.  It looks like a scarf my son made me out of weasels a few years back.~ */
  IF ~~ THEN DO ~SetGlobal("gftown01minsc","LOCALS",1)~ EXTERN ~MINSCJ~ 142
END
