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

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

IF WEIGHT #6 /* Triggers after states #: 3 4 5 6 7 8 even though they appear after this state */
~RandomNum(3,1)
~ THEN BEGIN 0 // from:
  SAY #27694 /* ~I'm sure you can imagine the amount of coin it took to build these temples. (sniff) The peasantry seem to think the money came out of thin air.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 3 4 5 6 7 8 even though they appear after this state */
~RandomNum(3,2)
~ THEN BEGIN 1 // from:
  SAY #27695 /* ~I suppose I should pay my respects to Helm while I'm here.  (sigh)  It is such a bother to find truly loyal guards elsewhere.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #8 /* Triggers after states #: 3 4 5 6 7 8 even though they appear after this state */
~RandomNum(3,3)
~ THEN BEGIN 2 // from:
  SAY #27696 /* ~I must admit that Lathander seems to have the right idea... those gaudy, golden interiors are fit for a true King, if you ask me.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("BeholderPlot","GLOBAL",1)
RandomNum(2,1)
~ THEN BEGIN 3 // from:
  SAY #27697 /* ~What is with all these eyeless priests shouting from the street?  It will bring land prices down, I just know it!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~Global("BeholderPlot","GLOBAL",2)
RandomNum(2,1)
~ THEN BEGIN 4 // from:
  SAY #27698 /* ~Thank the gods that those preachers are gone!  I was beginning to think one of them would jump on me and spoon an eye out soon!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~InParty("Valygar")
See("Valygar")
!StateCheck("Valygar",STATE_SLEEPING)
RandomNum(2,1)
Global("Postul6Valygar","GLOBAL",0)
~ THEN BEGIN 5 // from:
  SAY #27699 /* ~Ah, if it isn't Lord Valygar.  I am sorry, my lord... we still haven't built a temple to Mystra for your family, yet.~ */
  IF ~~ THEN DO ~SetGlobal("Postul6Valygar","GLOBAL",1)
~ EXTERN ~VALYGARJ~ 19
END

IF WEIGHT #3 ~InParty("Aerie")
See("Aerie")
!StateCheck("Aerie",STATE_SLEEPING)
RandomNum(2,1)
Global("Postul6Aerie","GLOBAL",0)
~ THEN BEGIN 6 // from:
  SAY #27703 /* ~Ah, now there's a fine-looking lass.  I take it that you'll be undertaking the robes for Lathander, then, aye?~ */
  IF ~~ THEN DO ~SetGlobal("Postul6Aerie","GLOBAL",1)
~ EXTERN ~AERIEJ~ 33
END

IF WEIGHT #4 ~InParty("Anomen")
See("Anomen")
!StateCheck("Anomen",STATE_SLEEPING)
RandomNum(2,1)
Global("Postul6Anomen","LOCALS",0)~ THEN BEGIN 7 // from:
  SAY #49996 /* ~Ah... you are the son of Lord Cor, are you not?  I seem to recall that you had entered the Order, when he and I last spoke.  Have they ejected you yet, as Cor expected?~ */
  IF ~~ THEN DO ~SetGlobal("Postul6Anomen","LOCALS",1)~ EXTERN ~ANOMENJ~ 231
END

IF WEIGHT #5 ~InParty("Edwin")
See("Edwin")
!StateCheck("Edwin",STATE_SLEEPING)
RandomNum(2,2)
Global("Postul6Edwin","LOCALS",0)~ THEN BEGIN 8 // from:
  SAY #49999 /* ~Ah, hello, I... er... wait!  I know that man, there!  He is a wizard!  A wizard among us!  The Cowled Wizards will deal with you, fiend!~ */
  IF ~~ THEN DO ~SetGlobal("Postul6Edwin","LOCALS",1)~ EXTERN ~EDWINJ~ 83
END
