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

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

IF WEIGHT #0 ~CheckStatLT(LastTalkedToBy,15,42)
RandomNum(2,1)
~ THEN BEGIN 0 // from:
  SAY #27678 /* ~I am a lady of virtue and piousness, and I'll thank you not to bother me when I am about prayer.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~CheckStatGT(LastTalkedToBy,14,42)
RandomNum(2,1)
~ THEN BEGIN 1 // from:
  SAY #27679 /* ~Good business to you, my <LADYLORD>.  You must excuse me, however, as I am at prayer in this most pious part of our dear city.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 4 5 6 7 8 even though they appear after this state */
~RandomNum(2,1)
~ THEN BEGIN 2 // from:
  SAY #27680 /* ~By Lathander's grace the entire city has prospered... it is only right that we lay down in devotion to Him.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #8 /* Triggers after states #: 4 5 6 7 8 even though they appear after this state */
~RandomNum(2,2)
~ THEN BEGIN 3 // from:
  SAY #27681 /* ~I don't know why they allow that cruel god, Helm, to occupy a place in the city.  Forgive my foolish tongue, but he has no place here after all He has done!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~Global("BeholderPlot","GLOBAL",1)
RandomNum(2,1)
~ THEN BEGIN 4 // from:
  SAY #27682 /* ~The city is in dire straits with so many of the clergy disappearing... only to turn up as converts of this strange cult.  It isn't right!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~Global("BeholderPlot","GLOBAL",2)
RandomNum(2,1)
~ THEN BEGIN 5 // from:
  SAY #27683 /* ~Bless you, my <LADYLORD> for saving us all from a monster and heretic!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 ~InParty("Viconia")
See("Viconia")
!StateCheck("Viconia",STATE_SLEEPING)
RandomNum(2,1)
Global("Postul5Viconia","GLOBAL",0)
~ THEN BEGIN 6 // from:
  SAY #27685 /* ~By Lathander's grace... how can you bring one of those dark, evil things here into this part of the city?!~ */
  IF ~~ THEN DO ~SetGlobal("Postul5Viconia","GLOBAL",1)
~ EXTERN ~VICONIJ~ 20
END

IF WEIGHT #5 ~InParty("Minsc")
See("Minsc")
!StateCheck("Minsc",STATE_SLEEPING)
RandomNum(2,1)
Global("Postul5Minsc","GLOBAL",0)
~ THEN BEGIN 7 // from:
  SAY #27688 /* ~Why... that is the most darling little pet you have there, sir.~ */
  IF ~~ THEN DO ~SetGlobal("Postul5Minsc","GLOBAL",1)
~ EXTERN ~MINSCJ~ 54
END

IF WEIGHT #6 ~InParty("Jan")
See("Jan")
!StateCheck("Jan",STATE_SLEEPING)
RandomNum(2,1)
Global("Postul5Jan","LOCALS",0)~ THEN BEGIN 8 // from:
  SAY #49993 /* ~You, there... you're that awfully strange little gnome that, ah...~ */
  IF ~~ THEN DO ~SetGlobal("Postul5Jan","LOCALS",1)~ EXTERN ~JANJ~ 125
END

IF ~~ THEN BEGIN 9 // from:
  SAY #49995 /* ~... Ah... I see... excuse me, please...~ */
  IF ~~ THEN DO ~RunAwayFrom("Jan",25)~ EXIT
END
