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

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

IF WEIGHT #4 /* Triggers after states #: 5 6 7 8 even though they appear after this state */
~RandomNum(5,1)
~ THEN BEGIN 0 // from:
  SAY #29643 /* ~If you want some service, I'm afraid you're going to have to wait.  It's not like we have nothing to do, here.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 5 6 7 8 even though they appear after this state */
~RandomNum(5,2)
~ THEN BEGIN 1 // from:
  SAY #29644 /* ~Do you have any idea how long it takes to find a form in the archives?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 5 6 7 8 even though they appear after this state */
~RandomNum(5,3)
~ THEN BEGIN 2 // from:
  SAY #29645 /* ~All I get all day long is complaints.  Complaints upon complaints and more complaints.  How about a pat on the back for once?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 5 6 7 8 even though they appear after this state */
~RandomNum(5,4)
~ THEN BEGIN 3 // from:
  SAY #29646 /* ~(grumble)  Last season the Council sent me to survey farmland around the city for two weeks.  Two weeks of cow manure and being chased by hobgoblins!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #8 /* Triggers after states #: 5 6 7 8 even though they appear after this state */
~RandomNum(5,5)
~ THEN BEGIN 4 // from:
  SAY #29647 /* ~You think co-ordinating the taxes from all over Amn is easy?  Try talking to that Sythsill fellow and those rebels down south.  Gah!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~InParty("Edwin")
See("Edwin")
!StateCheck("Edwin",STATE_SLEEPING)
RandomNum(2,1)
Global("civil01Edwin","GLOBAL",0)
~ THEN BEGIN 5 // from:
  SAY #29648 /* ~You!  Sharp-bearded fellow!  Run and get me the portfolio on the Murann farming districts!  Run, run!~ */
  IF ~~ THEN DO ~SetGlobal("civil01Edwin","GLOBAL",1)
~ EXTERN ~EDWINJ~ 31
END

IF WEIGHT #1 ~InParty("Jaheira")
See("Jaheira")
!StateCheck("Jaheira",STATE_SLEEPING)
RandomNum(2,1)
Global("civil01Jaheira","GLOBAL",0)
~ THEN BEGIN 6 // from:
  SAY #29650 /* ~What now?  You aren't another wood elf coming to complain about something I have no jurisdiction over, are you?  Why can't you people solve your own problems?~ */
  IF ~~ THEN DO ~SetGlobal("civil01Jaheira","GLOBAL",1)
~ EXTERN ~JAHEIRAJ~ 288
END

IF WEIGHT #2 ~InParty("Jan")
See("Jan")
!StateCheck("Jan",STATE_SLEEPING)
RandomNum(2,1)
Global("civil01Jan","LOCALS",0)~ THEN BEGIN 7 // from:
  SAY #50160 /* ~Mister Jansen again?  For the last time, the government will not erect a magical anti-griffon perimeter around the city.  They simply aren't a threat, so stop bothering us!~ */
  IF ~~ THEN DO ~SetGlobal("civil01Jan","LOCALS",1)~ EXTERN ~JANJ~ 134
END

IF WEIGHT #3 ~InParty("Nalia")
See("Nalia")
!StateCheck("Nalia",STATE_SLEEPING)
RandomNum(2,2)
Global("civil01Nalia","LOCALS",0)~ THEN BEGIN 8 // from:
  SAY #50163 /* ~(sigh) Nalia de'Arnise, right?  If you're here to petition your family's problem, it is already in the Council's hands.  I understand a committee was formed.  Now stop bothering us!~ */
  IF ~~ THEN DO ~SetGlobal("civil01Nalia","LOCALS",1)~ EXTERN ~NALIAJ~ 259
END
