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

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

IF WEIGHT #9 /* Triggers after states #: 2 3 5 6 7 8 9 10 11 even though they appear after this state */
~  Global("SpokenToEmerson","GLOBAL",0)
NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #759 /* ~You there, you don't belong here! Go see the foreman, or I'll call the guard!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #10 /* Triggers after states #: 2 3 5 6 7 8 9 10 11 even though they appear after this state */
~  Global("SpokenToEmerson","GLOBAL",0)
NumberOfTimesTalkedTo(1)
~ THEN BEGIN 1 // from:
  SAY #760 /* ~If ye no get the okay to be here, dem guards come and cut yer head from yer neck!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~  RandomNum(8,1)
~ THEN BEGIN 2 // from:
  SAY #761 /* ~Leave us be, there is much work to be done.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 3 // from:
  SAY #6307 /* ~I'm just a dumb miner. I dunno much, 'cept a little about those dog headed imps that 'ave been causin' all the trouble in the lower levels.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #27271 /* ~Investigating the Nashkel Mines
Some say that "dog-headed imps" roam the lower reaches of the Nashkel mines.~ */ EXIT
  IF ~Global("X#JaheiraMiner1","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#JaheiraMiner1","GLOBAL",1)~ EXTERN ~JAHEIJ~ 126
END

IF ~~ THEN BEGIN 4 // from:
  SAY #9155 /* ~Get away from me!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~  RandomNum(8,2)
~ THEN BEGIN 5 // from:
  SAY #13923 /* ~GAH! By the gods o' all the depths, you scared the livin' bejeezers outta me! Leave us to get back to work, will ya! We gotta meet our quota or they send us down to the lower levels. Last crew lost five men down there.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #26886 /* ~Investigating the Nashkel Mines
The mines are shipping barely any ore at all, what with the shortage of people.~ */ EXIT
END

IF WEIGHT #3 ~  RandomNum(8,3)
~ THEN BEGIN 6 // from:
  SAY #13924 /* ~I'm here breakin' my back to feed my family. What's your excuse? Lookin' for "adventure"? You'll find it below if you're fool enough. The dead walk beneath the earth.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 ~  RandomNum(8,4)
~ THEN BEGIN 7 // from:
  SAY #13925 /* ~Don't be bothering me! The sooner I get my job done, the sooner I get my sorry arse out of this deathtrap. It's safe up here, but down below... not even the ore stays pure down there. It ain't natural.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #27272 /* ~Investigating the Nashkel Mines
The ore in the lower levels of the Nashkel mines is tainted. People don't know what is causing it.~ */ EXIT
END

IF WEIGHT #5 ~  RandomNum(8,5)
~ THEN BEGIN 8 // from:
  SAY #13926 /* ~I got no time for chatter. We're working double shifts, but we don't produce no more usable ore. Miners don't go below unless forced, and what we do bring up is... tainted.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #27272 /* ~Investigating the Nashkel Mines
The ore in the lower levels of the Nashkel mines is tainted. People don't know what is causing it.~ */ EXIT
END

IF WEIGHT #6 ~  RandomNum(8,6)
~ THEN BEGIN 9 // from:
  SAY #13927 /* ~Emerson say we gots a problem with mongrel dogs below, but I ain't never seen no dog with a sword! I swear it's true, but they keep me quiet.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #27273 /* ~Investigating the Nashkel Mines
There are apparently "dogs with swords" in the lower levels of the mines. They are starting to sound familiar.~ */ EXIT
  IF ~Global("X#JaheiraMiner2","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#JaheiraMiner2","GLOBAL",1)~ EXTERN ~JAHEIJ~ 127
END

IF WEIGHT #7 ~  RandomNum(8,7)
~ THEN BEGIN 10 // from:
  SAY #13928 /* ~You really want adventure, struggle, and treasures? Try earning an honest living for a change. My daughter shines brighter than any jewel you'll ever take from the beasties below. Some day you'll settle. Then you'll know.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #8 ~  RandomNum(8,8)
~ THEN BEGIN 11 // from:
  SAY #13929 /* ~I don't mind diggin' if there's a point to it, but all we bring up is plagued anyway. Found some tracks and a glass vial too, so it ain't no accident. Wish someone would stick a sword up the tenders of whoever's behind it.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #27272 /* ~Investigating the Nashkel Mines
The ore in the lower levels of the Nashkel mines is tainted. People don't know what is causing it.~ */ EXIT
END

IF ~~ THEN BEGIN 12 // from:
  SAY #45266 /* ~Then it's a kobold that'll kill me? Whatever...~ */
  IF ~~ THEN UNSOLVED_JOURNAL #27271 /* ~Investigating the Nashkel Mines
Some say that "dog-headed imps" roam the lower reaches of the Nashkel mines.~ */ EXIT
END

IF ~~ THEN BEGIN 13 // from:
  SAY #45267 /* ~See? A KOBOLD! And they keep me quiet...~ */
  IF ~~ THEN UNSOLVED_JOURNAL #27273 /* ~Investigating the Nashkel Mines
There are apparently "dogs with swords" in the lower levels of the mines. They are starting to sound familiar.~ */ EXIT
END
