// creator  : weidu.exe (version 23100)
// argument : MELICA.DLG
// game		 : .
// source	 : ./DATA/DIALOG.BIF
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

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

IF WEIGHT #2 /* Triggers after states #: 27 even though they appear after this state */
~!Dead("ChickenWolf")
~ THEN BEGIN 0 // from:
  SAY #5665 /* ~Silver Hilt~ */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #5666 /* ~~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 27 even though they appear after this state */
~Global("TalkedToChicken","GLOBAL",0)
Dead("ChickenWolf")
~ THEN BEGIN 2 // from:
  SAY #5667 /* ~Short Bow of Gesen~ */
  IF ~~ THEN REPLY #5668 /* ~Jansen Techno-Gloves~ */ DO ~SetGlobal("TalkedToChicken","GLOBAL",1)
~ GOTO 5
  IF ~~ THEN REPLY #5669 /* ~Long Sword Hilt~ */ DO ~SetGlobal("TalkedToChicken","GLOBAL",1)
~ GOTO 4
  IF ~~ THEN REPLY #5670 /* ~Hilt of the Equalizer~ */ DO ~SetGlobal("TalkedToChicken","GLOBAL",1)
~ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.2
  SAY #5671 /* ~Long Sword Blade~ */
  IF ~~ THEN REPLY #5674 /* ~Pommel Jewel of the Equalizer~ */ GOTO 10
  IF ~~ THEN REPLY #5675 /* ~Halberd Shaft~ */ GOTO 9
  IF ~ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
~ THEN REPLY #5676 /* ~Wave Shaft~ */ GOTO 6
  IF ~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN REPLY #5681 /* ~Short Bow String~ */ GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.3 2.1
  SAY #5672 /* ~Blade of the Equalizer~ */
  IF ~~ THEN REPLY #5682 /* ~Gesen Bow String~ */ GOTO 10
  IF ~~ THEN REPLY #5684 /* ~Destination Unreachable~ */ GOTO 6
END

IF ~~ THEN BEGIN 5 // from: 2.0
  SAY #5673 /* ~Pommel Jewel~ */
  IF ~~ THEN REPLY #5683 /* ~The Equalizer~ */ GOTO 10
  IF ~~ THEN REPLY #5685 /* ~Halberd +4: Wave~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.1 4.1 3.2
  SAY #5677 /* ~Halberd Blade~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 /* Triggers after states #: 8 23 27 even though they appear after this state */
~Global("TalkedToChicken","GLOBAL",1)
Global("TransformedChicken","GLOBAL",0)
~ THEN BEGIN 7 // from:
  SAY #5678 /* ~Wave Blade~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 27 even though they appear after this state */
~Global("TalkedToChicken","GLOBAL",1)
Global("TransformedChicken","GLOBAL",0)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
Global("LeftChicken","GLOBAL",0)
~ THEN BEGIN 8 // from:
  SAY #5679 /* ~Short Bow Shaft~ */
  IF ~~ THEN REPLY #5686 /* ~Rabbit Ring~ */ GOTO 10
  IF ~~ THEN REPLY #5687 /* ~Disliked~ */ GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 15.2 14.1 10.1 8.1 3.1
  SAY #5680 /* ~Gesen Bow Shaft~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 10 // from: 8.0 5.0 4.0 3.0
  SAY #5688 /* ~~ */
  IF ~~ THEN REPLY #5689 /* ~Converse~ */ GOTO 11
  IF ~~ THEN REPLY #5691 /* ~The stone face does not respond but within your head a voice whispers: 'In mortal form you cannot speak. Reveal the god, the death and hate within you. So shall the test begin...'~ */ GOTO 9
  IF ~~ THEN REPLY #5695 /* ~Ring of Gaxx
This ring is relatively unadorned, but the vile magic within radiates intense evil.  Indeed, its creator, Kangaxx, was no less evil himself, even before millennia of undeath honed his power.  It is said that a cadre of Netheril mages fought and imprisoned the demilich once, but being unable to truly destroy him they became liches themselves to stand guard over his remains.  The construction of the ring may have led to their enmity, as each of the gem's nine facets was supposedly empowered by sacrifice and death.

STATISTICS

Armor Class:  +2 Bonus
Saving Throws:  +2 Bonus
Magic Resistance:  +10% Bonus
Special Abilities:  Immunity to Disease and Poison
Equipped Abilities: Wearer regenerates 1 hit point every 3 seconds
Special Use:  Invisibility, once per day
                      Improved Haste, three times per day

Not Usable By:
 Wizard Slayer~ */ GOTO 13
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #5690 /* ~~ */
  IF ~~ THEN REPLY #5692 /* ~Sword Dance~ */ GOTO 12
  IF ~~ THEN REPLY #5693 /* ~Sir Sarles~ */ GOTO 15
  IF ~~ THEN REPLY #5694 /* ~~ */ GOTO 13
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #5696 /* ~Heeding the Spirit of the Grove

I have decided that the leadership of the grove is not my place, despite what the spirit of the grove describes as my 'destiny'.  I will seek my balance elsewhere and the spirit does not oppose my decision.~ */
  IF ~~ THEN REPLY #5697 /* ~Heeding the Spirit of the Grove

There is a troll mound within the boundaries of the grove, and the spirit informs me that a shamaness amongst them, Nilthiri, has begun to call great numbers of the creatures to the mound and threatens to disrupt the balance of nature.  I am to go to the mound nearby and end the shamaness' life before too much damage is done.~ */ GOTO 15
  IF ~~ THEN REPLY #5698 /* ~Heeding the Spirit of the Grove

Nilthiri is dead and the spirit of the grove has commended me.  I am free to go my own way for a while, although the spirit bade me to return before long, perhaps no more than a couple of weeks, lest I am needed again.  When I do return, I should rest within the grove and the spirit will approach me.~ */ GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.1 11.2 10.2
  SAY #5699 /* ~Heeding the Spirit of the Grove

The spirit has asked me to perform another service for the good of the grove... I am to find the descendant of Marek, a boy named Loren, and protect him from Marek's old enemies which threaten his life.  Loren can be found in Trademeet, perhaps somewhere outside of the city's walls amongst the many tents.~ */
  IF ~~ THEN REPLY #5700 /* ~Heeding the Spirit of the Grove

Loren, the descendant of Marek and future leader of the grove once I have moved on, has been saved and the creature that possessed him destroyed.  Loren has been brought to the grove for his training, and the spirit informs me that I will not be called on again... at least, not until I am ready to challenge for leadership of the grove as Archdruid.~ */ GOTO 16
  IF ~~ THEN REPLY #5701 /* ~Item Drained~ */ GOTO 14
  IF ~~ THEN REPLY #5702 /* ~Galvena's Medallion~ */ EXIT
END

IF ~~ THEN BEGIN 14 // from: 15.1 13.1
  SAY #5703 /* ~'Tis a grand eve to be sittin' on the docks, rank with the smell of fish guts. You must be <CHARNAME>, the one that Aran was gonna send.~ */
  IF ~~ THEN REPLY #5704 /* ~That I am. You must be Mook.~ */ GOTO 16
  IF ~~ THEN REPLY #5705 /* ~I have no wish to speak with you, Leave me be.~ */ GOTO 9
END

IF ~~ THEN BEGIN 15 // from: 12.0 11.1
  SAY #5706 /* ~I am. Bloody fine to have some backup. I've heard a bit about you. Been makin' a name for yourself as an adventurer.~ */
  IF ~~ THEN REPLY #5707 /* ~Enough socializing. Let us get down to business. What is the situation?~ */ GOTO 16
  IF ~~ THEN REPLY #5708 /* ~Thanks. I do my best.~ */ GOTO 14
  IF ~~ THEN REPLY #5709 /* ~Watch your mouth around a lady. You must not be the people Aran sent. He doesn't suffer the rude ones t' live.~ */ GOTO 9
END

IF ~~ THEN BEGIN 16 // from: 15.0 14.0 13.0
  SAY #5710 /* ~The situation is that I've seen the same man pass by four times. He looked a bit different each time but I knew it was the man.~ */
  IF ~~ THEN DO ~GiveItemCreate("MISC49,LastTalkedToBy,0,0,0)
DestroySelf()
~ JOURNAL #5728 /* ~~ */ EXIT
END

IF ~~ THEN BEGIN 17 // from:
  SAY #6179 /* ~If that is so then what are you doing here?~ */
  IF ~~ THEN EXTERN ~THALAN~ 16
END

IF ~~ THEN BEGIN 18 // from:
  SAY #6184 /* ~One cannot seek to rid the earth of foul corruption by avoiding that same corruption.~ */
  IF ~~ THEN EXTERN ~THALAN~ 18
END

IF ~~ THEN BEGIN 19 // from:
  SAY #6186 /* ~I've released you as a favor only, actor... I don't need my praises sung, I can assure you.~ */
  IF ~~ THEN EXTERN ~THALAN~ 19
END

IF ~~ THEN BEGIN 20 // from:
  SAY #6188 /* ~Something is most assuredly wrong with this situation. What happened?~ */
  IF ~~ THEN EXTERN ~THALAN~ 20
END

IF ~~ THEN BEGIN 21 // from:
  SAY #6512 /* ~You've found the proper documents. Now you've only to gain a private discourse with Renal Bloodscalp. Yes, then the matter will be well in hand.~ [EDWIN80] */
  IF ~~ THEN EXTERN ~THALAN~ 21
END

IF ~~ THEN BEGIN 22 // from:
  SAY #6526 /* ~Flame Tongue +4

There was a time before Neverwinter was warm and before the great Anauroch was dry... or so it is said.  Few relics remain to prove such an age existed, and fewer still have an identifiable purpose.  "The Burning Earth" seems straightforward enough -it burns a victim with magical fire, and a cryptic rune seems to suggest that the power comes from the ground itself- but whomever constructed it remains a mystery.  It looks a perfectly serviceable weapon, but something in the balance or grip is... wrong.  It strains the forearm a touch, and does not fit the hand just right.  It doesn't seem to hurt a warrior's performance, aside from the nagging doubt that the blade was not made for him... or any other humanoid.

Though the sword's blade is a focused, solid mass of fire, a hint of real fire will still be required to kill trolls once they are downed.

STATISTICS:

Always considered to be of +4 enchantment when determining what it can hit.
Damage:  1D8 + 2, +2 vs. regenerating creatures, +3 vs. cold/fire creatures, +4 vs. undead
Damage type:  slashing
Weight: 4
Speed Factor: 3
Proficiency Type: Long Sword
Type:  1-handed
Requires: 6 Strength
Not Usable By:
 Druid
 Cleric
 Mage
 Beast Master~ */
  IF ~~ THEN EXTERN ~THALAN~ 25
END

IF WEIGHT #5 /* Triggers after states #: 27 even though they appear after this state */
~Global("TransformedChicken","GLOBAL",1)
~ THEN BEGIN 23 // from:
  SAY #6531 /* ~~ */
  IF ~~ THEN DO ~SetGlobal("TransformedChicken","GLOBAL",2)
~ EXTERN ~THALAN~ 29
END

IF ~~ THEN BEGIN 24 // from:
  SAY #6533 /* ~Boomerang Dagger +2~ */
  IF ~~ THEN EXTERN ~THALAN~ 31
END

IF ~~ THEN BEGIN 25 // from:
  SAY #8782 /* ~Well, you certainly make claim to know much of what happened between me and Galia alone. I left on good terms, I left in good faith, and I left her well taken care of.~ */
  IF ~~ THEN DO ~AddexperienceParty(2000)
ReputationInc(1)
~ JOURNAL #19364 /* ~Getting Inside the Asylum

I found where the so-called 'Pirate Lord', Desharik, is staying... and managed to get inside by mentioning Golin's name.  It appears the Captain is respected, here.~ */ EXTERN ~THALAN~ 32
END

IF WEIGHT #7 /* Triggers after states #: 27 even though they appear after this state */
~True()
~ THEN BEGIN 26 // from:
  SAY #8955 /* ~The easy way to learn what happened would have been to have not run off. I guess he didn't consider that method though.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
Global("TransformedChicken","GLOBAL",1)
~ THEN BEGIN 27 // from:
  SAY #8956 /* ~I'll tell you what happened to the best of my knowledge, which will certainly be better than his recollection, I am sure.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 28 // from:
  SAY #8957 /* ~It doesn't matter, because their deal was broken when she found out she was pregnant. So Galia took comfort where she could... a local noble named Deril.~ */
  IF ~~ THEN EXIT
END
