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

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

IF WEIGHT #0 ~NumberOfTimesTalkedTo(0)
ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN BEGIN 0 // from:
  SAY #81942 /* ~I desperately need someone's help but... you're not quite what I had in mind.~ */
  IF ~~ THEN EXIT
  IF ~Global("X#AloraNadin1","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AloraNadin1","GLOBAL",1)~ GOTO 8
END

IF WEIGHT #1 ~NumberOfTimesTalkedTo(0)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN BEGIN 1 // from:
  SAY #81943 /* ~Euric, my youngest son, has run away again... He's always had a touch of the wanderer in him and he knows how to take care of himself but... Oh, I'm just worried sick. This city gets more dangerous every day. If you find him, could you give him this good luck talisman? I'm sure we'd all sleep a little better.~ */
  IF ~~ THEN DO ~GiveItem("_AMUL14",LastTalkedToBy)
SetGlobal("GivenEuricQuest","GLOBAL",1)
~ UNSOLVED_JOURNAL #81944 /* ~Nadine and Euric

Nadine of Baldur's Gate has asked me to deliver a good luck talisman to her son, Euric.  He has run away again, and will likely be playing somewhere in one of Baldur's Gate's many taverns.~ */ EXIT
  IF ~Global("X#AloraNadin2","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AloraNadin2","GLOBAL",1)~ EXTERN ~_ALORAJ~ 43
END

IF WEIGHT #2 ~Global("HelpEuric","GLOBAL",0)
Global("GivenEuricQuest","GLOBAL",1)
~ THEN BEGIN 2 // from:
  SAY #81945 /* ~Please, you must give that amulet to my son, Euric.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~GlobalGT("HelpEuric","GLOBAL",0)
GlobalLT("HelpEuric","GLOBAL",2)
!Dead("euric")
ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN BEGIN 3 // from:
  SAY #81946 /* ~That was kind of you to do that for me. As for Euric, he'll come home when he's ready. Here, let me give you this necklace as a token of my thanks. I don't know if it's worth anything but it has been in the family for years.~ */
  IF ~~ THEN DO ~EraseJournalEntry(81944)
EraseJournalEntry(88935)
SetGlobal("HelpEuric","GLOBAL",2)
AddexperienceParty(300)
ReputationInc(1)
GiveItem("_AMUL01",LastTalkedToBy)
EscapeArea()
~ SOLVED_JOURNAL #88936 /* ~Nadine and Euric

I brought Nadine's amulet to Euric, and then returned to let her know the task was completed and her son safe.  She expressed her gratitude, and rewarded me with... another amulet.  I wonder where she gets them all?~ */ EXIT
END

IF WEIGHT #6 /* Triggers after states #: 5 6 even though they appear after this state */
~Global("HelpEuric","GLOBAL",2)
~ THEN BEGIN 4 // from:
  SAY #81947 /* ~Hi there. I hope that the necklace I gave you was actually worth something. Otherwise I'd feel quite foolish.~ */
  IF ~~ THEN EXIT
  IF ~Global("X#AloraNadin3","GLOBAL",0)
InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#AloraNadin3","GLOBAL",1)~ EXTERN ~_ALORAJ~ 42
END

IF WEIGHT #4 ~False()
~ THEN BEGIN 5 // from:
  SAY #81948 /* ~Please don't!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 ~GlobalGT("HelpEuric","GLOBAL",0)
GlobalLT("HelpEuric","GLOBAL",3)
!Dead("euric")
ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN BEGIN 6 // from:
  SAY #81949 /* ~That was kind of you to do that for me. As for Euric, he'll come home when he's ready. Here, let me give you this necklace as a token of my thanks. It is very powerful but one must be careful with it.~ */
  IF ~~ THEN DO ~EraseJournalEntry(81944)
EraseJournalEntry(88935)
SetGlobal("HelpEuric","GLOBAL",2)
AddexperienceParty(400)
ReputationInc(1)
GiveItem("_AMUL01",LastTalkedToBy)
EscapeArea()
~ SOLVED_JOURNAL #88936 /* ~Nadine and Euric

I brought Nadine's amulet to Euric, and then returned to let her know the task was completed and her son safe.  She expressed her gratitude, and rewarded me with... another amulet.  I wonder where she gets them all?~ */ EXIT
END

IF ~~ THEN BEGIN 7 // from:
  SAY #100193 /* ~Thank you, Alora. And please, call me Nadine.~ */
  IF ~~ THEN DO ~GiveItem("_AMUL14",LastTalkedToBy)
SetGlobal("GivenEuricQuest","GLOBAL",1)
~ UNSOLVED_JOURNAL #81944 /* ~Nadine and Euric

Nadine of Baldur's Gate has asked me to deliver a good luck talisman to her son, Euric.  He has run away again, and will likely be playing somewhere in one of Baldur's Gate's many taverns.~ */ EXIT
END

IF ~~ THEN BEGIN 8 // from: 0.1
  SAY #100194 /* ~I'm suprised to find you travelling around with people like these, Alora.~ */
  IF ~~ THEN EXIT
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN GOTO 9
  IF ~  InParty("alora")
InMyArea("alora")
!StateCheck("alora",CD_STATE_NOTVALID)
~ THEN EXTERN ~_ALORAJ~ 44
END

IF ~~ THEN BEGIN 9 // from: 8.1
  SAY #100196 /* ~I hope you're right.~ */
  IF ~~ THEN EXIT
END
