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

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

IF WEIGHT #3 /* Triggers after states #: 5 6 7 even though they appear after this state */
~RandomNum(5,1)
~ THEN BEGIN 0 // from:
  SAY #29666 /* ~Hmmn... we seem to be all out of the vellum forms for tax concessions.  I guess the city goes without them this year... oh, well.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 5 6 7 even though they appear after this state */
~RandomNum(5,2)
~ THEN BEGIN 1 // from:
  SAY #29667 /* ~Sometimes I wonder why we keep all these records when most of the city can neither read nor write.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 5 6 7 even though they appear after this state */
~RandomNum(5,3)
~ THEN BEGIN 2 // from:
  SAY #29668 /* ~Did you know that halflings have had a tax break since the Year of the Spur?  Nobody has told them, though, and the rest of 'em can't read or write, anyway.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 5 6 7 even though they appear after this state */
~RandomNum(5,4)
~ THEN BEGIN 3 // from:
  SAY #29671 /* ~I've got a form for claiming land in Maztica around here somewhere... you have full rights to kill the natives, too...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 5 6 7 even though they appear after this state */
~RandomNum(5,5)
~ THEN BEGIN 4 // from:
  SAY #29672 /* ~Whenever they want to lower costs, the Council changes the names of our forms.  How can I know land grants are on the Futility of Clouds Application?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~InParty("Yoshimo")
See("Yoshimo")
!StateCheck("Yoshimo",STATE_SLEEPING)
RandomNum(3,1)
Global("clerk01Yoshimo","LOCALS",0)~ THEN BEGIN 5 // from:
  SAY #50175 /* ~Look, if you want to get a form for something, you need to know the exact designation for the form you want and how many copies.  And that requires a directory, which --~ */
  IF ~~ THEN DO ~SetGlobal("clerk01Yoshimo","LOCALS",1)~ EXTERN ~YOSHJ~ 84
END

IF WEIGHT #1 ~InParty("Keldorn")
See("Keldorn")
!StateCheck("Keldorn",STATE_SLEEPING)
RandomNum(3,2)
Global("clerk01Keldorn","LOCALS",0)~ THEN BEGIN 6 // from:
  SAY #50176 /* ~(sigh)  If you're here to complain about the service, I'm afraid you need to fill out the Second Trout form, and we're all out of those.  So sorry.~ */
  IF ~~ THEN DO ~SetGlobal("clerk01Keldorn","LOCALS",1)~ EXTERN ~KELDORJ~ 172
END

IF WEIGHT #2 ~InParty("Jan")
See("Jan")
!StateCheck("Jan",STATE_SLEEPING)
RandomNum(3,3)
PartyGoldGT(49)
Global("clerk01Jan","LOCALS",0)~ THEN BEGIN 7 // from:
  SAY #50178 /* ~Now if you are all here to try and get a form, all I can tell you is that ... oh... it's Mister Jansen.  How do you do, sir?~ */
  IF ~~ THEN DO ~SetGlobal("clerk01Jan","LOCALS",1)~ EXTERN ~JANJ~ 135
END

IF ~~ THEN BEGIN 8 // from:
  SAY #50179 /* ~But of course.  I'll have a copy of the Windy Willows form sent out to her right away... three copies, naturally, as required.~ */
  IF ~~ THEN DO ~TakePartyGold(50)~ EXTERN ~JANJ~ 136
END
