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

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

IF WEIGHT #0 ~NumTimesTalkedTo(0)
ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN BEGIN 0 // from:
  SAY #15092 /* ~Alar~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~NumTimesTalkedTo(0)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN BEGIN 1 // from:
  SAY #15093 /* ~Alar~ */
  IF ~~ THEN JOURNAL #15740 /* ~~ */ EXIT
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 #15094 /* ~Del~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
PartyHasItem("BRAC09")
~ THEN BEGIN 3 // from:
  SAY #15095 /* ~Del~ */
  IF ~~ THEN DO ~SetGlobal("HelpNoralee","GLOBAL",1)
TakePartyItem("BRAC09")
GivePartyGold(45)
AddexperienceParty(1000)
ReputationInc(1)
EscapeArea()
~ EXIT
END

IF WEIGHT #3 ~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
PartyHasItem("BRAC09")
~ THEN BEGIN 4 // from:
  SAY #15096 /* ~Is there somethin' that ye wanted?~ */
  IF ~~ THEN DO ~SetGlobal("HelpNoralee","GLOBAL",1)
TakePartyItem("BRAC09")
AddexperienceParty(1000)
ReputationInc(1)
GiveItem("POTN30",LastTalkedToBy)
GiveItem("POTN30",LastTalkedToBy)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 5 // from:
  SAY #15097 /* ~What is this building?~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END
