// creator  : weidu.exe (version 23600)
// argument : WENRIC.DLG
// game     : .
// source   : ./DATA/DIALOG.BIF
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

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

IF WEIGHT #1 /* Triggers after states #: 4 even though they appear after this state */
~  ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
Global("HelpWenric","GLOBAL",0)
~ THEN BEGIN 0 // from:
  SAY #14922 /* ~I don't like the look of you, mate. Move along.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 /* Triggers after states #: 4 even though they appear after this state */
~  ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
Global("HelpWenric","GLOBAL",0)
~ THEN BEGIN 1 // from:
  SAY #14923 /* ~There's been something killing peoples in and 'round the farms here. Zombies or something. I can understands if you can't stomach the task but, just between you an' me real personal-likes, I don't know who else is gonna do it... All of us haves been goin' for a week now without sleep. We've counted twenty zombies or so, so keep track as you kill 'em, if that's what you plans on doing. Once you got 'em all, come back here and I'll gives you the 150 gold pieces that some of us have pooled together.~ */
  IF ~~ THEN DO ~SetGlobal("HelpWenric","GLOBAL",1)
~ UNSOLVED_JOURNAL #27511 /* ~Zombie Infestation
A zombie infestation has been terrorizing the few settlers unlucky enough to own land by the river. An old farmer by the name of Wenric has counted twenty of them and will pay me an impressive 150 gp if I can get rid of every last one.~ */ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 4 even though they appear after this state */
~  Global("ZombiesDead","GLOBAL",20)
~ THEN BEGIN 2 // from:
  SAY #14925 /* ~Thanks, that's been real generous of yous. Maybe we all can finally get a wink o' sleep yet. Here's that 150 gold pieces we promised yous. If we hads more, we'd gives 'em to you.~ */
  IF ~~ THEN DO ~AddexperienceParty(800)
GivePartyGold(150)
IncrementGlobal("ZombiesDead","GLOBAL",1)
EraseJournalEntry(27511)
~ SOLVED_JOURNAL #27512 /* ~Zombie Infestation
A reward of 150 gold pieces for destroying 20 zombies seems a little low. Perhaps I should have bargained.~ */ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 4 even though they appear after this state */
~  GlobalLT("ZombiesDead","GLOBAL",20)
~ THEN BEGIN 3 // from:
  SAY #14926 /* ~Looks-it, I tolds you to count them zombies as yous kills them. You still gots a few to go.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~  False()
~ THEN BEGIN 4 // from:
  SAY #14928 /* ~There's more evil heres than just zombies then, is thats it?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 ~  True()
~ THEN BEGIN 5 // from:
  SAY #14929 /* ~Thanks for gettins rid of those zombies and stuffs. We all really appreciates it and all.~ */
  IF ~~ THEN EXIT
END
