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

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

IF WEIGHT #1 /* Triggers after states #: 3 even though they appear after this state */
~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #79430 /* ~Ahoy, fellow adventurers! Come share a glass with Gorpel Hind and his Band of Merry Fools! Seated with me are Farluck the Fearless, Turpin the Roaring Ranger, and Nelik the Most Devious and Fiendish of Thieves! (We owe him money so he gets the good title...) But away with these meager introductions! Sidle up to the bar and tell us a tall tale of your latest adventures!~ */
  IF ~~ THEN REPLY #79431 /* ~Well, we've been through the Cloakwood and fought our way through every level of a guarded and secret iron mine at its heart! There were mages at every turn, casting lightning bolts and fireballs into the heart of our party before stepping through their dimension doors to renew their attacks from another flank! Aye, there was loss and carnage but I revel in the memory of it still!~ */ GOTO 1
  IF ~~ THEN REPLY #79432 /* ~Ho, tall tales shall tempt us not. Keep to yourself and we shall do the same. Goodnight and goodbye, Mr. Hind.~ */ GOTO 2
  IF ~Global("X#GORPEL0","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GORPEL0","GLOBAL",1)~ EXTERN ~_GARRIJ~ 235
  IF ~Global("X#GORPEL0","GLOBAL",0)
InParty("montaron")
InMyArea("montaron")
!StateCheck("montaron",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GORPEL0","GLOBAL",1)~ EXTERN ~_MONTAJ~ 52
  IF ~Global("X#GORPEL0","GLOBAL",0)
InParty("montaron")
InMyArea("montaron")
!StateCheck("montaron",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GORPEL0","GLOBAL",1)~ GOTO 5
  IF ~Global("X#GORPEL0","GLOBAL",0)
InParty("montaron")
InMyArea("montaron")
!StateCheck("montaron",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GORPEL0","GLOBAL",1)~ EXTERN ~_MONTAJ~ 54
END

IF ~~ THEN BEGIN 1 // from: _MONTAJ:55.0 _MONTAJ:54.0 _MONTAJ:53.0 _MONTAJ:52.0 6.0 5.0 0.0 _GARRIJ:238.0 _GARRIJ:237.0 _GARRIJ:236.0 _GARRIJ:235.0
  SAY #79433 /* ~Iron mines in the Cloakwood? Your tales are tall, indeed, and we are richer for the telling. Consider yourselves honorary members of the Merry Fools and may ale and friendship always flow within these hallowed halls! A toast, you drunkards, to <CHARNAME> and the winsome souls that surround us now!~ */
  IF ~~ THEN DO ~IncrementGlobal("GorpalEnemies","FW0116",1)
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: _MONTAJ:55.1 _MONTAJ:54.1 _MONTAJ:53.1 _MONTAJ:52.1 6.1 5.1 0.1 _GARRIJ:238.1 _GARRIJ:237.1 _GARRIJ:236.1 _GARRIJ:235.1
  SAY #79434 /* ~Goodnight and goodbye to you, <CHARNAME>. It is late and we were leaving, weren't we my Merry Fools?~ */
  IF ~~ THEN DO ~IncrementGlobal("GorpalEnemies","FW0116",1)
ActionOverride("farluck",EscapeArea())
ActionOverride("turpin",EscapeArea())
ActionOverride("nelik",EscapeArea())
EscapeArea()
~ EXIT
END

IF WEIGHT #0 ~Dead("gretek")
Dead("pargus")
Dead("wilf")
Dead("nader")
Dead("arlin")
Dead("caturak")
~ THEN BEGIN 3 // from:
  SAY #79435 /* ~We have been honored by your presence tonight and awed by your prowess. I beg your leave, however, for some of my men are wounded and must seek attention elsewhere. May the houses of <CHARNAME> and Gorpel Hind be ever graced with each other's friendship... Come, men, and carry your wounds bravely.~ */
  IF ~~ THEN DO ~ActionOverride("farluck",EscapeArea())
ActionOverride("turpin",EscapeArea())
ActionOverride("nelik",EscapeArea())
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 4 // from:
  SAY #79436 /* ~Fight on, brave souls! Gretek and his lackeys have had this coming for longer than you could know.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from: 0.4
  SAY #103523 /* ~Ha! Ha! A smart fellow with excellent survival instincts. No need to exercise them now, though. We're still drinking our last score. Won't start thinking about our next one 'til we sober up.~ */
  IF ~~ THEN REPLY #79431 /* ~Well, we've been through the Cloakwood and fought our way through every level of a guarded and secret iron mine at its heart! There were mages at every turn, casting lightning bolts and fireballs into the heart of our party before stepping through their dimension doors to renew their attacks from another flank! Aye, there was loss and carnage but I revel in the memory of it still!~ */ GOTO 1
  IF ~~ THEN REPLY #79432 /* ~Ho, tall tales shall tempt us not. Keep to yourself and we shall do the same. Goodnight and goodbye, Mr. Hind.~ */ GOTO 2
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN EXTERN ~_GARRIJ~ 237
  IF ~  InParty("montaron")
InMyArea("montaron")
!StateCheck("montaron",CD_STATE_NOTVALID)
~ THEN EXTERN ~_MONTAJ~ 53
END

IF ~~ THEN BEGIN 6 // from: _MONTAJ:54.4
  SAY #103523 /* ~Ha! Ha! A smart fellow with excellent survival instincts. No need to exercise them now, though. We're still drinking our last score. Won't start thinking about our next one 'til we sober up.~ */
  IF ~~ THEN REPLY #79431 /* ~Well, we've been through the Cloakwood and fought our way through every level of a guarded and secret iron mine at its heart! There were mages at every turn, casting lightning bolts and fireballs into the heart of our party before stepping through their dimension doors to renew their attacks from another flank! Aye, there was loss and carnage but I revel in the memory of it still!~ */ GOTO 1
  IF ~~ THEN REPLY #79432 /* ~Ho, tall tales shall tempt us not. Keep to yourself and we shall do the same. Goodnight and goodbye, Mr. Hind.~ */ GOTO 2
  IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN EXTERN ~_GARRIJ~ 238
  IF ~  InParty("montaron")
InMyArea("montaron")
!StateCheck("montaron",CD_STATE_NOTVALID)
~ THEN EXTERN ~_MONTAJ~ 55
END
