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

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

IF WEIGHT #0 ~NumberOfTimesTalkedTo(0)
ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN BEGIN 0 // from:
  SAY #81681 /* ~I have little to say to you except good riddance.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~NumberOfTimesTalkedTo(0)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN BEGIN 1 // from:
  SAY #81682 /* ~I just had some new armor shipped in from Waterdeep and I'm afraid I must have dropped the gauntlets into one of the shipping crates somewhere between here and the harbor. Please, if you can find them before somebody else picks them up, I would be most grateful.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #81683 /* ~Noralee's gauntlets

Noralee, a half-elven fighter in the city of Baldur's Gate, has lost a new pair of gauntlets somewhere along the road between the harbor and the warehouse where she works.~ */ EXIT
  IF ~Global("X#NORALE1","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#NORALE1","GLOBAL",1)~ EXTERN ~_VICONJ~ 219
  IF ~Global("X#NORALE1","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#NORALE1","GLOBAL",1)~ EXTERN ~_GARRIJ~ 241
END

IF WEIGHT #4 /* Triggers after states #: 3 4 even though they appear after this state */
~Global("HelpNoralee","GLOBAL",0)
~ THEN BEGIN 2 // from:
  SAY #81684 /* ~Oh, I do hope we find those gauntlets soon.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
PartyHasItem("_BRAC09")
~ THEN BEGIN 3 // from:
  SAY #81685 /* ~My gauntlets! Here's 45 gp for all your time and trouble.~ */
  IF ~~ THEN DO ~EraseJournalEntry(81683)
SetGlobal("HelpNoralee","GLOBAL",1)
TakePartyItem("_BRAC09")
GivePartyGold(45)
AddexperienceParty(1000)
ReputationInc(1)
EscapeArea()
~ SOLVED_JOURNAL #88940 /* ~Noralee's gauntlets

Noralee gave us a modest reward for finding and returning her lost gauntlets.~ */ EXIT
  IF ~Global("X#VicNora2","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VicNora2","GLOBAL",1)~ EXTERN ~_VICONJ~ 112
END

IF WEIGHT #3 ~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
PartyHasItem("_BRAC09")
~ THEN BEGIN 4 // from:
  SAY #81686 /* ~You found my gauntlets! I was beginning to think they'd never show up. Here, take these infravision potions as your reward. I'm sure you'll have use for them sometime.~ */
  IF ~~ THEN DO ~EraseJournalEntry(81683)
SetGlobal("HelpNoralee","GLOBAL",1)
TakePartyItem("_BRAC09")
AddexperienceParty(1000)
ReputationInc(1)
GiveItem("_POTN30",LastTalkedToBy)
GiveItem("_POTN30",LastTalkedToBy)
EscapeArea()
~ SOLVED_JOURNAL #88940 /* ~Noralee's gauntlets

Noralee gave us a modest reward for finding and returning her lost gauntlets.~ */ EXIT
  IF ~Global("X#VicNora3","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VicNora3","GLOBAL",1)~ EXTERN ~_VICONJ~ 113
END

IF ~~ THEN BEGIN 5 // from:
  SAY #81687 /* ~Oh, damn it! I don't even have my new armor on. Very well, this old stuff I'm wearing is tried and true.~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 6 // from: _VICONJ:112.1
  SAY #100792 /* ~Well, I have no more. Farewell and thank ye all, though my thanks seem inadequate to *you*.~ */
  IF ~~ THEN DO ~EraseJournalEntry(81683)
SetGlobal("HelpNoralee","GLOBAL",1)
TakePartyItem("_BRAC09")
GivePartyGold(45)
AddexperienceParty(1000)
ReputationInc(1)
EscapeArea()
~ SOLVED_JOURNAL #88940 /* ~Noralee's gauntlets

Noralee gave us a modest reward for finding and returning her lost gauntlets.~ */ EXIT
END

IF ~~ THEN BEGIN 7 // from: _VICONJ:113.1
  SAY #100794 /* ~Save your sarcasm, for most folk they are indeed! ‘Tis miraculous to see in the dark. Farewell and thank ye all, though my thanks seem inadequate to *you*.~ */
  IF ~~ THEN DO ~EraseJournalEntry(81683)
SetGlobal("HelpNoralee","GLOBAL",1)
TakePartyItem("_BRAC09")
AddexperienceParty(1000)
ReputationInc(1)
GiveItem("_POTN30",LastTalkedToBy)
GiveItem("_POTN30",LastTalkedToBy)
EscapeArea()
~ SOLVED_JOURNAL #88940 /* ~Noralee's gauntlets

Noralee gave us a modest reward for finding and returning her lost gauntlets.~ */ EXIT
END
