// creator  : weidu.exe (version 23600)
// argument : HULRIK.DLG
// game     : .
// source   : ./override/HULRIK.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

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

IF WEIGHT #0 ~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #14979 /* ~You have to help me! Them xvarts are after my cows again!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~  Global("XvartsDead","GLOBAL",8)
!Dead("HulriksCow")
~ THEN BEGIN 1 // from:
  SAY #14981 /* ~Thanks for saving Arabelle here. Ever since them xvarts an' their kobold kin swarmed the mines at Nashkel, they've been makin' attacks like that more and more often. If someone like yourself could get to the bottom of that, all of us trying to make an honest livin' out here sure would be grateful.~ */
  IF ~~ THEN DO ~AddexperienceParty(350)
ReputationInc(1)
IncrementGlobal("XvartsDead","GLOBAL",1)
~ UNSOLVED_JOURNAL #27152 /* ~Xvart Raids
It appears that xvarts have been making regular raids on the livestock around Nashkel. They must be operating from a base nearby, but where, exactly, I cannot be sure.~ */ EXIT
  IF ~Global("X#GarHul","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GarHul","GLOBAL",1)~ EXTERN ~GARRIJ~ 70
END

IF WEIGHT #2 ~  Dead("HulriksCow")
~ THEN BEGIN 2 // from:
  SAY #14986 /* ~Damnations! That's another cow they've killed. None of them are gonna carry off the meat, this time, at least. Well, thanks for trying, I guess.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #27152 /* ~Xvart Raids
It appears that xvarts have been making regular raids on the livestock around Nashkel. They must be operating from a base nearby, but where, exactly, I cannot be sure.~ */ EXIT
END

IF WEIGHT #3 ~  GlobalLT("XvartsDead","GLOBAL",8)
~ THEN BEGIN 3 // from:
  SAY #14987 /* ~Why are you talking to me? They're killin' Arabelle even as we speak!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 5 even though they appear after this state */
~  True()
~ THEN BEGIN 4 // from:
  SAY #14988 /* ~Be careful out there. These mountains are more dangerous than any of us realize.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 ~  False()
~ THEN BEGIN 5 // from:
  SAY #14989 /* ~You're no better than those damnable xvarts. Well, I ain't going to my grave without a fight.~ */
  IF ~~ THEN EXIT
END
