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

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

IF WEIGHT #1 /* Triggers after states #: 6 even though they appear after this state */
~RandomNum(6,1)
!Dead("dick")
~ THEN BEGIN 0 // from:
  SAY #77741 /* ~Firewine be an elven trading town destroyed in a fool's duel some two-hundred-odd winters bygone.  Ask the rubble if it cares who the winner was.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #77742 /* ~The Firewine ruins

The Firewine bridge is all that is left of an elven trading town that was destroyed over two hundred years ago.~ */ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 6 even though they appear after this state */
~RandomNum(6,2)
!Dead("dick")
~ THEN BEGIN 1 // from:
  SAY #77743 /* ~It's your neck, and if you be wanting to stick it into the dungeons it be your loss as well.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 6 even though they appear after this state */
~RandomNum(6,3)
!Dead("dick")
~ THEN BEGIN 2 // from:
  SAY #77744 /* ~Many a fighting too-tall has come through Gullykin, and always the same question with them.  Here be the answer that always replies; none of halfling height know where the key to ward lock be!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 6 even though they appear after this state */
~RandomNum(6,4)
!Dead("dick")
~ THEN BEGIN 3 // from:
  SAY #77745 /* ~Aye, we choose to leave the ruins be.  Who is more the fool; the man who sits idle in his old chair enjoying the sunshine, or the man who labors long for a fine new chair that he might sit in someday?~ */
  IF ~~ THEN EXIT
  IF ~Global("X#ImoenHalflingGullikin","GLOBAL",0)
InParty("imoen")
InMyArea("imoen")
!StateCheck("imoen",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#ImoenHalflingGullikin","GLOBAL",1)~ EXTERN ~_IMOEN2~ 177
END

IF WEIGHT #5 /* Triggers after states #: 6 even though they appear after this state */
~RandomNum(6,5)
~ THEN BEGIN 4 // from:
  SAY #77746 /* ~There may well be great wealth beyond our dear Gullykin, but Dallillia the provider gives what we need.  What care we for anything more?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 6 even though they appear after this state */
~RandomNum(6,6)
!Dead("dick")
~ THEN BEGIN 5 // from:
  SAY #77747 /* ~We've stuck a few kobolds before, but in Firewine they seem more organized.  Not like their kind at all.  Still stink like kobolds though.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #77748 /* ~The Firewine ruins

There are kobolds in the Firewine ruins, but they seem more organized than is typical of their race.~ */ EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 6 // from:
  SAY #77749 /* ~Not much to tell friend.  Most of my day is spent on my porch taking some puffs off the old pipe.  Mayhaps you'd join me?~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 7 // from:
  SAY #75335 /* ~Not to be rude, but I'd rather you left immediately.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 ~True()
~ THEN BEGIN 8 // from:
  SAY #77746 /* ~There may well be great wealth beyond our dear Gullykin, but Dallillia the provider gives what we need.  What care we for anything more?~ */
  IF ~~ THEN EXIT
END
