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

BEGIN ~X#GARWYL~

IF ~  OR(3)
!InParty("garrick")
!InMyArea("garrick")
StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN BEGIN 0 // from:
  SAY #101765 /* ~One can always find a tale somewhere, if one knows where to look...~ */
  IF ~~ THEN EXIT
END

IF ~  InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN BEGIN 1 // from:
  SAY #101766 /* ~Pray tell, who goes there? Be ye adventurers?~ */
  IF ~~ THEN EXTERN ~_GARRIJ~ 136
END

IF ~~ THEN BEGIN 2 // from:
  SAY #101770 /* ~I see, Sir Garrick. I am Myr'Cutio. Or, at least I was, before I, well, died... Tell me, wherefore hast thou come here?~ */
  IF ~~ THEN EXTERN ~_GARRIJ~ 137
END

IF ~~ THEN BEGIN 3 // from: X#GARZ01:0.0
  SAY #101772 /* ~Alas, I have not had many adventures these recent years. My companions bear not the undead condition as well as I, and, begging thy pardon, are now rather dull.~ */
  IF ~~ THEN EXTERN ~X#GARZ04~ 0
END

IF ~~ THEN BEGIN 4 // from:
  SAY #101783 /* ~Truth be told, I, too, tire of this unlife. Mayhap for my final adventure I could be put to rest by this brave band of fellows I see before mine eyes.~ */
  IF ~~ THEN EXTERN ~_GARRIJ~ 140
  IF ~  InParty("branwen")
InMyArea("branwen")
!StateCheck("branwen",CD_STATE_NOTVALID)
~ THEN EXTERN ~_BRANWJ~ 58
  IF ~  InParty("ajantis")
InMyArea("ajantis")
!StateCheck("ajantis",CD_STATE_NOTVALID)
~ THEN EXTERN ~_AJANTJ~ 194
END

IF ~~ THEN BEGIN 5 // from:
  SAY #101787 /* ~Yes. Come, once more unto the breach, dear friends! And so ends here either the tale of Myr'Cutio, or <CHARNAME>... We shall see.~ */
  IF ~~ THEN DO ~SetGlobal("X#WyliamChat","GLOBAL",2)
ActionOverride("myrcutio",Enemy())
ActionOverride("X#GARZ01",Enemy())
ActionOverride("X#GARZ02",Enemy())
ActionOverride("X#GARZ03",Enemy())
ActionOverride("X#GARZ04",Enemy())
EraseJournalEntry(101763)
~ SOLVED_JOURNAL #101788 /* ~So much for literary greats.

We encountered the spirit of the fabled Myr'Cutio and defeated him in battle, thus ending the epic story of his life (or undeath) and adding to our story. It seems you can learn useful things from books, after all.~ */ EXIT
END
