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

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

IF WEIGHT #4 /* Triggers after states #: 9 11 12 even though they appear after this state */
~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #7712 /* ~Wail of the Banshee (Necromancy) 
Level: 9
Range: 0 
Duration: Instantaneous
Casting Time: 9
Area of Effect: 30-ft. radius
Saving Throw: Neg.

At the culmination of this dreadful spell, the wizard screams like a banshee (groaning spirit).  Everyone in the area of effect hears the awful cry.  Those who fail a saving throw vs. death magic die instantly.  The caster and companions are immune to the effects of the wail.~ */
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #7722 /* ~What is wrong? You have a scapegoat; torture him until the incidents stop.~ */ GOTO 1
  IF ~~ THEN REPLY #7723 /* ~And has he confessed, or have the people condemned him for being a druid?~ */ GOTO 6
  IF ~~ THEN REPLY #7724 /* ~I do not understand. You have your captive; the bargaining should be academic.~ */ GOTO 5
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #7725 /* ~Ray of Enfeeblement~ */ GOTO 4
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #7713 /* ~Ring of Regeneration~ */
  IF ~~ THEN REPLY #7726 /* ~Ray of Enfeeblement (Enchantment/Charm) 
Level: 2
Range: Visual sight of caster
Duration: 1 round/level 
Casting Time: 2 
Area of Effect:  1 creature 
Saving Throw: Neg.

By means of a Ray of Enfeeblement, a wizard weakens an opponent, reducing its Strength and thereby the attacks that rely upon it.  The victim is reduced to a strength of 5 for the duration of the spell, unless a save vs. spell is made.  This spell does not affect combat bonuses due to magical items, and those conferring increased Strength function normally.  However the target receives all of the penalties for a 5 strength such as attack and damage penalties as well as lower weight allowance.~ */ GOTO 2
  IF ~~ THEN REPLY #7727 /* ~So am I to help question this druid, or would you have me hunt his fellows?~ */ GOTO 3
  IF ~~ THEN REPLY #7728 /* ~I do not like the indifferent way you offer your services. If you don't wish to hear what is troubling my town then tell me now.~ */ GOTO 4
  IF ~~ THEN REPLY #7729 /* ~I will help if I can. Speak your mind that I might know what I must do.~ */ GOTO 5
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #7714 /* ~Ring of the Ram~ */
  IF ~~ THEN JOURNAL #7738 /* ~Investigate the deaths in the Umar Hills.

In Merella's cabin, I found a journal by the ranger and a note left by the adventurer I heard of earlier named Mazzy Fentan (left, it seems, for the unfortunate corpse present in the cabin).  Both seem to implicate that a wolf pack is responsible for the killings, and both Merella and Mazzy went onward to investigate this pack... and have not returned.  It seems likely that if I follow the directions given that I may find the answers to this mystery.~ */ EXIT
END

IF ~~ THEN BEGIN 3 // from: 1.1
  SAY #7715 /* ~Bracers of Defense AC 5~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4 // from: 1.2 0.3
  SAY #7716 /* ~Bracers of Defense AC 4
~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from: 1.3 0.2
  SAY #7717 /* ~Bracers of Defense AC 3
~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from: 0.1
  SAY #7718 /* ~Bracers of Blinding Strike~ */
  IF ~~ THEN REPLY #7730 /* ~I do not. Perhaps it would be best if I simply left.~ */ GOTO 7
  IF ~~ THEN REPLY #7731 /* ~As it is, a scapegoat for the peoples' fears has already been found. I am not happy with this solution, and could use some help if you are willing.~ */ GOTO 8
  IF ~~ THEN REPLY #7732 /* ~You had best give me the full story. I would know what I am going to get into.~ */ GOTO 8
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #7719 /* ~Bracers of Blinding Strike~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 8 // from: 6.2 6.1
  SAY #7720 /* ~Trademeet has been here for generations, but now we are harassed from the strangest of sources. It has been a very difficult time for the local merchants.~ [CELOGA06] */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 /* Triggers after states #: 12 even though they appear after this state */
~PartyHasItem("MISC55")
~ THEN BEGIN 9 // from:
  SAY #7721 /* ~Druids, belonging to a group that has long been peaceful. The people apparently captured one. Had I not locked him up they would have quartered him in the street.~ */
  IF ~~ THEN DO ~SetGlobal("EltanMove","GLOBAL",1)
SetGlobal("BroughtEltan","GLOBAL",1)
TakePartyItem("MISC55")
ActionOverride("Eltan2",SetNumTimesTalkedTo(100))
AddexperienceParty(2500)
EscapeArea()
~ EXIT
END

IF WEIGHT #5 /* Triggers after states #: 11 12 even though they appear after this state */
~Global("BroughtEltan","GLOBAL",0)
~ THEN BEGIN 10 // from:
  SAY #7733 /* ~No, I really have no interest in your troubles.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 12 even though they appear after this state */
~Global("BroughtEltan","GLOBAL",1)
~ THEN BEGIN 11 // from:
  SAY #7734 /* ~Very well then. I do not foresee an immediate end to this situation so if you reconsider come and speak with me again.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 12 // from:
  SAY #7735 /* ~Do you wish to hear my request for help now? Answer affirmative and I shall explain what has been happening to disrupt the trade of the local merchants.~ */
  IF ~~ THEN JOURNAL #7737 /* ~Allies recruited for the struggle against Bodhi.

Aran Linvail has agreed to aid in the fight against Bodhi, even though the guild is weaker because of her. Any assassins he can spare will meet me beneath the Graveyard District when I am ready to face the vampire.~ */ EXIT
END

IF ~~ THEN BEGIN 13 // from:
  SAY #9266 /* ~Curse the dictates of honor! ... Oh, the very gods demand that I bring this case before the courts. Sir William shall be hung and the love of my entire life imprisoned. There is no other outcome.~ [KELDOR92] */
  IF ~~ THEN EXIT
END
