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

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

IF WEIGHT #7 /* Triggers after states #: 3 4 5 6 7 8 9 even though they appear after this state */
~RandomNum(3,1)
~ THEN BEGIN 0 // from:
  SAY #27634 /* ~Oh, I do so hope that Lathander will smile on my new business contract.  I cannot afford to lose another one!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #8 /* Triggers after states #: 3 4 5 6 7 8 9 even though they appear after this state */
~RandomNum(3,2)
~ THEN BEGIN 1 // from:
  SAY #27635 /* ~It just isn't fair... I donate coin to Lathander for prosperity and Helm for protection... and then the Talassans come and burn down my shop!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #9 /* Triggers after states #: 3 4 5 6 7 8 9 even though they appear after this state */
~RandomNum(3,3)
~ THEN BEGIN 2 // from:
  SAY #27636 /* ~A merchant must cover all his bases and be wary to offend no god... it is a most trying existence!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("BeholderPlot","GLOBAL",0)
RandomNum(2,1)
~ THEN BEGIN 3 // from:
  SAY #27637 /* ~Oooh, it is a terrible, awful thing.  The Morninglord priest I gave my money to has gone and disappeared!  Now they won't bless my new shop!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~Global("BeholderPlot","GLOBAL",1)
RandomNum(2,1)
~ THEN BEGIN 4 // from:
  SAY #27638 /* ~I saw a priest I once knew preaching on the corner for that eyeless god.  He didn't even recognize me!  Isn't the same person, I say!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~Global("BeholderPlot","GLOBAL",2)
RandomNum(2,1)
~ THEN BEGIN 5 // from:
  SAY #27640 /* ~Things are much better now that the cult is all gone.  People are coming back to the shop.  You had something to do with that, didn't you?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~InParty("Nalia")
See("Nalia")
!StateCheck("Nalia",STATE_SLEEPING)
RandomNum(2,1)
Global("Postul2Nalia","GLOBAL",0)
~ THEN BEGIN 6 // from:
  SAY #27641 /* ~I do so hope my donation to the Watcher will not go unheeded!  My shop has been robbed twice this month already!~ */
  IF ~~ THEN DO ~SetGlobal("Postul1Nalia","GLOBAL",1)
~ EXTERN ~NALIAJ~ 128
END

IF WEIGHT #4 ~InParty("Keldorn")
See("Keldorn")
!StateCheck("Keldorn",STATE_SLEEPING)
RandomNum(2,1)
Global("Postul2Keldorn","GLOBAL",0)
~ THEN BEGIN 7 // from:
  SAY #27645 /* ~Oh!  Lord Keldorn!  It is good to see you.  I don't think I have ever seen you before out of Helm's church, actually...~ */
  IF ~~ THEN DO ~SetGlobal("Postul2Keldorn","GLOBAL",1)
~ EXTERN ~KELDORJ~ 67
END

IF WEIGHT #5 ~InParty("Yoshimo")
See("Yoshimo")
!StateCheck("Yoshimo",STATE_SLEEPING)
RandomNum(2,1)
Global("Postul2Yoshimo","LOCALS",0)~ THEN BEGIN 8 // from:
  SAY #49964 /* ~Goodness, me!  It seems that not a day goes by without there being more and more thieves in this city!  Soon I swear they will outnumber the rest of us!~ */
  IF ~~ THEN DO ~SetGlobal("Postul2Yoshimo","LOCALS",1)~ EXTERN ~YOSHJ~ 79
END

IF WEIGHT #6 ~InParty("Minsc")
See("Minsc")
!StateCheck("Minsc",STATE_SLEEPING)
RandomNum(2,2)
Global("Postul2Minsc","LOCALS",0)~ THEN BEGIN 9 // from:
  SAY #49965 /* ~Dear lord, man!  Is that some manner of vermin you are carrying with you?  Do you not know how many diseases such a creature could carry, how unhealthy that is?~ */
  IF ~~ THEN DO ~SetGlobal("Postul2Minsc","LOCALS",1)~ EXTERN ~MINSCJ~ 136
END
