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

BEGIN ~POSTUL3~ 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 #27648 /* ~One should always give coppers to Talos or it is certain he will destroy us all with great and horrid disasters!~ */
  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 #27650 /* ~One should always give coppers to Helm because he is the one, true guardian that watches over us all!~ */
  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 #27651 /* ~One should always give coppers to Lathander because he grants prosperity to the faithful!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("BeholderPlot","GLOBAL",0)
RandomNum(2,1)
~ THEN BEGIN 3 // from:
  SAY #27652 /* ~The priests and priestesses are all disappearing!  Oooh, it is Talos visiting disaster on us surely!  I better go and donate now...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~Global("BeholderPlot","GLOBAL",1)
RandomNum(2,1)
~ THEN BEGIN 4 // from:
  SAY #27653 /* ~Those horrid eyeless priests are everywhere!  Oooh, if this Unseeing god person is true I've been wasting my coin all along!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~Global("BeholderPlot","GLOBAL",2)
RandomNum(2,1)
~ THEN BEGIN 5 // from:
  SAY #27654 /* ~You are such a good person to have gotten rid of that false god-thing!  Long live the true gods!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~InParty("Yoshimo")
See("Yoshimo")
!StateCheck("Yoshimo",STATE_SLEEPING)
RandomNum(2,1)
Global("Postul3Yoshimo","GLOBAL",0)
~ THEN BEGIN 6 // from:
  SAY #27655 /* ~Oooh, the Talassan priest said that the Stormbringer has not had enough donations this month!  It is doom for us all for sure!!~ */
  IF ~~ THEN DO ~SetGlobal("Postul3Yoshimo","GLOBAL",1)
~ EXTERN ~YOSHJ~ 18
END

IF WEIGHT #4 ~InParty("HaerDalis")
See("HaerDalis")
!StateCheck("HaerDalis",STATE_SLEEPING)
RandomNum(2,1)
Global("Postul3HaerDalis","GLOBAL",0)
~ THEN BEGIN 7 // from:
  SAY #27660 /* ~Oh, some days I am sure that the gods are all frowning on us.  Faerun is doomed!  Doomed!~ */
  IF ~~ THEN DO ~SetGlobal("Postul3HaerDalis","GLOBAL",1)
~ EXTERN ~HAERDAJ~ 44
END

IF WEIGHT #5 ~InParty("Viconia")
See("Viconia")
!StateCheck("Viconia",STATE_SLEEPING)
RandomNum(2,1)
Global("Postul3Viconia","LOCALS",0)~ THEN BEGIN 8 // from:
  SAY #49990 /* ~It... it is a dark elf!  A dark elf amongst us in the Temple District!  Oh, the omens, the omens!  We are doomed, doomed!~ */
  IF ~~ THEN DO ~SetGlobal("Postul3Viconia","LOCALS",1)~ EXTERN ~VICONIJ~ 66
END
