// creator  : weidu.exe (version 23600)
// argument : DIGGER.DLG
// game     : .
// source   : ./override/DIGGER.DLG
// dialog   : lang\en_us/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 #8627 /* ~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 #8628 /* ~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 #8629 /* ~Astor went missing last night. Charleston thinks it was bandits, but I says he just went mad. Tore off like the all the 9 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 #8630 /* ~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 #8631 /* ~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 #8632 /* ~I knew our dig be cursed! This is like a nightmare!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from: CUTCHAR:1.0
  SAY #8633 /* ~Hey, boss man, 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: CHARLE:18.0 CUTCHAR:0.0
  SAY #8634 /* ~Is so... is so cold in here... I feel... strange.~ */
  IF ~~ THEN GOTO 8
END

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

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #8636 /* ~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 #8637 /* ~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 GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #8638 /* ~KOZAH A PLET 'DAR CASS TOGLAH! KOZAH!~ */
  IF ~~ THEN DO ~ActionOverride("Charleston",SetDialogue("charle"))
EndCutSceneMode()
SetGlobal("DiggersPossessed","GLOBAL",1)
~ 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~ 53
END

IF ~~ THEN BEGIN 12 // from:
  SAY #8639 /* ~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~ 54
END

IF WEIGHT #0 ~  StateCheck(Myself,STATE_CHARMED)
Global("DiggersPossessed","GLOBAL",0)
~ THEN BEGIN 13 // from:
  SAY #8974 /* ~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 #8975 /* ~Get out of my sight! I'll do nothing for you!~ */
  IF ~~ THEN EXIT
END
