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

BEGIN ~CIVIL02~ 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 #29652 /* ~Things have been very confusing here since we began administering the colonies in the New World, as well.  There are so many problems and it takes so long to communicate!  It's awful!~ */
  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 #29654 /* ~I've just been enumerating the tax landholds in the colonies... and a ship just arrived from Maztica telling me that three villages have been burned to the ground by the natives!  All that work, gone!~ */
  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 #29655 /* ~If you want anything done, you're going to have to speak to the Council.  And that, of course, is not easy.~ */
  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 #29657 /* ~(sigh)  If you want to make a request, you'll have to go to the clerk and get the forms.  Fill them out now, so I can get on to ignoring them as quickly as possible.~ */
  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 #29660 /* ~I just found out we have three man-hunts out for tax evaders who we weren't informed had died over ten years ago.  Hmm.  Maybe if we pretend we still don't know that, we can force someone to pay...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~InParty("Minsc")
See("Minsc")
!StateCheck("Minsc",STATE_SLEEPING)
RandomNum(2,1)
Global("civil02Minsc","GLOBAL",0)
~ THEN BEGIN 5 // from:
  SAY #29661 /* ~Er... you look like one of those men from Rashemen... you're not here to ask for anything are you?  Last time that happened, things got messy...~ */
  IF ~~ THEN DO ~SetGlobal("civil02Minsc","GLOBAL",1)
~ EXTERN ~MINSCJ~ 57
END

IF WEIGHT #1 ~InParty("Korgan")
See("Korgan")
!StateCheck("Korgan",STATE_SLEEPING)
RandomNum(2,1)
Global("civil02Korgan","GLOBAL",0)
~ THEN BEGIN 6 // from:
  SAY #29664 /* ~I'm sorry, sir... we don't allow dwarves in these buildings.~ */
  IF ~~ THEN DO ~SetGlobal("civil02Korgan","GLOBAL",1)
~ EXTERN ~KORGANJ~ 23
END

IF WEIGHT #2 ~InParty("Valygar")
See("Valygar")
!StateCheck("Valygar",STATE_SLEEPING)
RandomNum(2,1)
Global("civil02Valygar","LOCALS",0)~ THEN BEGIN 7 // from:
  SAY #50169 /* ~Oooh... wait one moment, you're Valygar Corthala, aren't you?  You wouldn't happen to know a Magdelene Corthala, would you?  As far as we can tell, she hasn't paid taxes in over seven years.~ */
  IF ~~ THEN DO ~SetGlobal("civil02Valygar","LOCALS",1)~ EXTERN ~VALYGARJ~ 65
END

IF WEIGHT #3 ~InParty("Viconia")
See("Viconia")
!StateCheck("Viconia",STATE_SLEEPING)
RandomNum(2,2)
Global("civil02Viconia","LOCALS",0)~ THEN BEGIN 8 // from:
  SAY #50170 /* ~Wait...  that's a dark elf, isn't it? A dark elf tax was brought into being by the Council of 1107... all dark elves must pay a daily fee to remain in the city.~ */
  IF ~~ THEN DO ~SetGlobal("civil02Viconia","LOCALS",1)~ EXTERN ~VICONIJ~ 76
END

IF ~~ THEN BEGIN 9 // from:
  SAY #50173 /* ~Well, er... never mind, then.~ */
  IF ~~ THEN DO ~RunAwayFrom("Viconia",50)~ EXIT
END
