// creator  : weidu.exe (version 23600)
// argument : DRIENN.DLG
// game     : .
// source   : ./override/DRIENN.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

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

IF WEIGHT #7 /* Triggers after states #: 1 2 3 4 5 6 7 even though they appear after this state */
~  Global("HelpDrienne","GLOBAL",0)
~ THEN BEGIN 0 // from:
  SAY #14851 /* ~*sob*... *sob*...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 /* Triggers after states #: 5 6 even though they appear after this state */
~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 1 // from:
  SAY #14852 /* ~*sob*... Pixie, my cat, she was playing close to the waterfall and slipped... *sniff*... I hope she's all right.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #26994 /* ~Drienne's Cat
Through her tears, the dear child Drienne has asked me to rescue her cat from a waterfall. Although I haven't the heart to tell her so, I fear the worst.~ */ EXIT
  IF ~Global("X#VicDri","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VicDri","GLOBAL",1)~ EXTERN ~VICONJ~ 104
END

IF WEIGHT #3 /* Triggers after states #: 5 6 even though they appear after this state */
~  ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
PartyHasItem("MISC62")
~ THEN BEGIN 2 // from:
  SAY #14853 /* ~You killed Pixie! *sob* *sob* *sob*~ */
  IF ~~ THEN DO ~TakePartyItem("MISC62")
EraseJournalEntry(26994)
~ SOLVED_JOURNAL #26995 /* ~Drienne's Cat
Okay, this is getting ridiculous! Little Drienne claims that I have killed her cat, Pixie! What am I supposed to do, bring her a gibberling, instead?!~ */ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 5 6 even though they appear after this state */
~  ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
PartyHasItem("MISC62")
~ THEN BEGIN 3 // from:
  SAY #14854 /* ~*sniff*... She didn't make it, did she... At least I can give her a proper funeral, though. Here, this is the last of my allowance but you can have it for finding Pixie.~ */
  IF ~~ THEN DO ~AddexperienceParty(200)
SetGlobal("HelpDrienne","GLOBAL",1)
GivePartyGold(23)
TakePartyItem("MISC62")
EraseJournalEntry(26994)
~ SOLVED_JOURNAL #26996 /* ~Drienne's Cat
Receiving 23 gold for dragging a dead cat back to its owner seems at once too much and too little reward for such a task.~ */ EXIT
END

IF WEIGHT #5 /* Triggers after states #: 5 6 even though they appear after this state */
~  ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
PartyHasItem("MISC62")
~ THEN BEGIN 4 // from:
  SAY #14855 /* ~It's all right, she's done this before. I guess Daddy will just have to raise her again. Here, you can have this scroll Daddy gave me. I can't read the words yet anyways.~ */
  IF ~~ THEN DO ~AddexperienceParty(200)
ReputationInc(1)
SetGlobal("HelpDrienne","GLOBAL",1)
GiveItem("SCRL09",LastTalkedToBy)
TakePartyItem("MISC62")
EraseJournalEntry(26994)
~ SOLVED_JOURNAL #26997 /* ~Drienne's Cat
From the sound of it, this isn't the first time Drienne's cat has died... Nine lives, my arse. Give me my own personal necromancer, and I'll do the same! She has given me one of her father's scrolls, however. Whatever it is, it should prove interesting.~ */ EXIT
  IF ~Global("X#DRIENN4","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#DRIENN4","GLOBAL",1)~ GOTO 8
  IF ~Global("X#DRIENN4","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#DRIENN4","GLOBAL",1)~ EXTERN ~JAHEIJ~ 434
  IF ~Global("X#DRIENN4","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#DRIENN4","GLOBAL",1)~ GOTO 10
  IF ~Global("X#DRIENN4","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#DRIENN4","GLOBAL",1)~ EXTERN ~SHARTJ~ 208
END

IF WEIGHT #0 ~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 5 // from:
  SAY #14856 /* ~I'm just a little girl. Mommy says if you ever need to know something important, you should ask an adult.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~  False()
~ THEN BEGIN 6 // from:
  SAY #14857 /* ~Daddy! Someone's going to kill me again!~ */
  IF ~~ THEN EXIT
  IF ~Global("X#SHARTEELDRIENNE2","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELDRIENNE2","GLOBAL",1)~ EXTERN ~SHARTJ~ 105
END

IF WEIGHT #6 ~  Global("HelpDrienne","GLOBAL",1)
~ THEN BEGIN 7 // from:
  SAY #14858 /* ~Thanks for finding Pixie in that waterfall. That was real kind of you.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 8 // from: 4.1
  SAY #50314 /* ~I must bring Pixie to Daddy!~ */
  IF ~~ THEN DO ~AddexperienceParty(200)
ReputationInc(1)
SetGlobal("HelpDrienne","GLOBAL",1)
GiveItem("SCRL09",LastTalkedToBy)
TakePartyItem("MISC62")
EraseJournalEntry(26994)
~ SOLVED_JOURNAL #26997 /* ~Drienne's Cat
From the sound of it, this isn't the first time Drienne's cat has died... Nine lives, my arse. Give me my own personal necromancer, and I'll do the same! She has given me one of her father's scrolls, however. Whatever it is, it should prove interesting.~ */ EXIT
END

IF ~~ THEN BEGIN 9 // from:
  SAY #50314 /* ~I must bring Pixie to Daddy!~ */
  IF ~~ THEN DO ~AddexperienceParty(200)
ReputationInc(1)
SetGlobal("HelpDrienne","GLOBAL",1)
GiveItem("SCRL09",LastTalkedToBy)
TakePartyItem("MISC62")
EraseJournalEntry(26994)
~ SOLVED_JOURNAL #26997 /* ~Drienne's Cat
From the sound of it, this isn't the first time Drienne's cat has died... Nine lives, my arse. Give me my own personal necromancer, and I'll do the same! She has given me one of her father's scrolls, however. Whatever it is, it should prove interesting.~ */ EXIT
END

IF ~~ THEN BEGIN 10 // from: 4.3
  SAY #50312 /* ~Boo hoo!~ */
  IF ~~ THEN DO ~AddexperienceParty(200)
ReputationInc(1)
SetGlobal("HelpDrienne","GLOBAL",1)
GiveItem("SCRL09",LastTalkedToBy)
TakePartyItem("MISC62")
EraseJournalEntry(26994)
~ SOLVED_JOURNAL #26997 /* ~Drienne's Cat
From the sound of it, this isn't the first time Drienne's cat has died... Nine lives, my arse. Give me my own personal necromancer, and I'll do the same! She has given me one of her father's scrolls, however. Whatever it is, it should prove interesting.~ */ EXIT
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN GOTO 11
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~JAHEIJ~ 435
END

IF ~~ THEN BEGIN 11 // from: 10.1
  SAY #50314 /* ~I must bring Pixie to Daddy!~ */
  IF ~~ THEN DO ~AddexperienceParty(200)
ReputationInc(1)
SetGlobal("HelpDrienne","GLOBAL",1)
GiveItem("SCRL09",LastTalkedToBy)
TakePartyItem("MISC62")
EraseJournalEntry(26994)
~ SOLVED_JOURNAL #26997 /* ~Drienne's Cat
From the sound of it, this isn't the first time Drienne's cat has died... Nine lives, my arse. Give me my own personal necromancer, and I'll do the same! She has given me one of her father's scrolls, however. Whatever it is, it should prove interesting.~ */ EXIT
END

IF ~~ THEN BEGIN 12 // from:
  SAY #50312 /* ~Boo hoo!~ */
  IF ~~ THEN DO ~AddexperienceParty(200)
ReputationInc(1)
SetGlobal("HelpDrienne","GLOBAL",1)
GiveItem("SCRL09",LastTalkedToBy)
TakePartyItem("MISC62")
EraseJournalEntry(26994)
~ SOLVED_JOURNAL #26997 /* ~Drienne's Cat
From the sound of it, this isn't the first time Drienne's cat has died... Nine lives, my arse. Give me my own personal necromancer, and I'll do the same! She has given me one of her father's scrolls, however. Whatever it is, it should prove interesting.~ */ EXIT
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN GOTO 13
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~JAHEIJ~ 436
END

IF ~~ THEN BEGIN 13 // from: 12.1
  SAY #50314 /* ~I must bring Pixie to Daddy!~ */
  IF ~~ THEN DO ~AddexperienceParty(200)
ReputationInc(1)
SetGlobal("HelpDrienne","GLOBAL",1)
GiveItem("SCRL09",LastTalkedToBy)
TakePartyItem("MISC62")
EraseJournalEntry(26994)
~ SOLVED_JOURNAL #26997 /* ~Drienne's Cat
From the sound of it, this isn't the first time Drienne's cat has died... Nine lives, my arse. Give me my own personal necromancer, and I'll do the same! She has given me one of her father's scrolls, however. Whatever it is, it should prove interesting.~ */ EXIT
END
