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

BEGIN ~SARHED~
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF ~~ THEN BEGIN 0 // from:
  SAY #15339 /* ~Wand of Cloudkill Key~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 1 // from:
  SAY #15341 /* ~Wand of Missiles Key~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF WEIGHT #0 ~NumTimesTalkedTo(0)
~ THEN BEGIN 2 // from:
  SAY #15342 /* ~Acorns~ */
  IF ~~ THEN DO ~~ JOURNAL #15788 /* ~~ */ EXIT
END

IF WEIGHT #1 ~GlobalLT("OgresDead","GLOBAL",2)
~ THEN BEGIN 3 // from:
  SAY #15343 /* ~Sewage Golem Key~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #2 ~Global("OgresDead","GLOBAL",2)
~ THEN BEGIN 4 // from:
  SAY #15344 /* ~Ah, Master Cernd?  How do you fare?~ */
  IF ~~ THEN DO ~AddexperienceParty(300)
IncrementGlobal("OgresDead","GLOBAL",1)
EscapeArea()
~ JOURNAL #16676 /* ~~ */ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 6 even though they appear after this state */
~True()
~ THEN BEGIN 5 // from:
  SAY #15346 /* ~Why, hello there.  You seem a mighty fine sort.  Mind if I --~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #3 ~false()~ THEN BEGIN 6 // from:
  SAY #15348 /* ~Huh, there's not much interesting here, there is.~ */
  IF ~~ THEN DO ~~ EXIT
END
