// creator  : weidu.exe (version 23100)
// argument : _DIGGER.DLG
// game		 : .
// source	 : ./override/_DIGGER.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

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

IF WEIGHT #1 /* Triggers after states #: 13 even though they appear after this state */
~NumberOfTimesTalkedTo(0)
Global("DiggersPossessed","GLOBAL",0)
~ THEN BEGIN 0 // from:
  SAY #86679 /* ~Psst... 'ere there.  I would be leavin' as soon as ye can, mate.  Bossman there is nice an all, but he have no real idea what be going on.  I tell you, there is some bad magic in the air.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 /* Triggers after states #: 13 even though they appear after this state */
~NumberOfTimesTalkedTo(1)
Global("DiggersPossessed","GLOBAL",0)
~ THEN BEGIN 1 // from:
  SAY #86680 /* ~Best pay I ever got for slingin' shovel, but I'm leavin' today.  Been having nightmares about this place so bad I can't sleep no more.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 13 even though they appear after this state */
~NumberOfTimesTalkedTo(2)
Global("DiggersPossessed","GLOBAL",0)
~ THEN BEGIN 2 // from:
  SAY #86681 /* ~Astor went missing last night.  Charleston thinks it was bandits, but I says he just went mad.  Tore off like the all the nine hells were in 'im.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 13 even though they appear after this state */
~NumberOfTimesTalkedTo(3)
Global("DiggersPossessed","GLOBAL",0)
~ THEN BEGIN 3 // from:
  SAY #86682 /* ~My grammy tells some strange stories 'bout places like this.  Used to be people here worshipping the OLD gods.  Berserkers, they was.  Killed everyone... then themselves.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 13 even though they appear after this state */
~NumberOfTimesTalkedTo(4)
Global("DiggersPossessed","GLOBAL",0)
~ THEN BEGIN 4 // from:
  SAY #86683 /* ~Charleston Nib is quite some fellow.  That Gallor though, I'm not so keen on him.  A little too precise counting the pay, if ye ask me.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from:
  SAY #86684 /* ~I knew our dig be cursed!  This is like a nightmare!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from: _CUTCHAR:1.0
  SAY #86685 /* ~Hey bossman, I don't feel so good.  How old is the air in this place?~ */
  IF ~~ THEN EXTERN ~_CUTCHAR~ 0
END

IF ~~ THEN BEGIN 7 // from: _CUTCHAR:0.0 _CHARLE:18.0
  SAY #86688 /* ~Is so... is so cold in here... I feel... strange.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #86689 /* ~I hear... I hear a voice... in my head...~ */
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #86690 /* ~I hear the hollow voice, but it is but a mumble!  Speak up!  Speak up and guide mine hands!  RAAAAAAAGH!!~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #86691 /* ~You... I see what you are!  There is power to be had from your death!  Your blood will quiet the voice!  BLOOD WILL QUIET!~ */
  IF ~~ THEN DO ~ActionOverride("charleston",SetDialogue("_CHARLE"))
EndCutSceneMode()
SetGlobal("DiggersPossessed","GLOBAL",1)
~ EXIT
END

IF WEIGHT #6 /* Triggers after states #: 13 even though they appear after this state */
~RandomNum(1,1)
Global("DiggersPossessed","GLOBAL",1)
~ THEN BEGIN 11 // from:
  SAY #86723 /* ~KOZAH A PLET 'DAR CASS TOGLAH!!  KOZAH!!~ */
  IF ~~ THEN EXIT
  IF ~Global("X#GarDigg","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GarDigg","GLOBAL",1)~ EXTERN ~_GARRIJ~ 61
END

IF WEIGHT #7 /* Triggers after states #: 13 even though they appear after this state */
~RandomNum(2,1)
Global("DiggersPossessed","GLOBAL",1)
~ THEN BEGIN 12 // from:
  SAY #86724 /* ~Q' AL TE-PAH KOZAH!  SHE CAL KOZAH!~ */
  IF ~~ THEN EXIT
  IF ~Global("X#GarDigg2","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GarDigg2","GLOBAL",1)~ EXTERN ~_GARRIJ~ 62
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
Global("DiggersPossessed","GLOBAL",0)
~ THEN BEGIN 13 // from:
  SAY #86765 /* ~We just dig for the crazy old man; we don't know what we're supposed to find.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 14 // from:
  SAY #74940 /* ~Get out of my sight!  I'll do nothing for you!~ */
  IF ~~ THEN EXIT
END
