// creator  : weidu.exe (version 23100)
// argument : DRIENN.DLG
// game		 : .
// source	 : ./DATA/DIALOG.BIF
// dialog	 : ./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 /* ~I'm a friend of the woman that was taken with the wizard.  Do you know who took them and where they went?~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 5 6 even though they appear after this state */
~NumTimesTalkedTo(0)
~ THEN BEGIN 1 // from:
  SAY #14852 /* ~Did you see what happened?~ */
  IF ~~ THEN DO ~~ JOURNAL #15709 /* ~~ */ EXIT
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 /* ~None of your business.  Excuse me.~ */
  IF ~~ THEN DO ~TakePartyItem("MISC62")
~ JOURNAL #16540 /* ~~ */ 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 /* ~Hmph.  I suppose one should expect such manners from an outlander.~ */
  IF ~~ THEN DO ~AddexperienceParty(200)
SetGlobal("HelpDrienne","GLOBAL",1)
GivePartyGold(23)
TakePartyItem("MISC62")
~ JOURNAL #16542 /* ~The de'Arnise Keep has been invaded.

Nalia has gone back to the palisade to wait for my news of Daleson.  The servant is likely the best way to find out what has happened to her family without alerting the trolls to my presence.~ */ 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 /* ~How one gets a license from the Cowled Wizards to use magic I do not know, although I imagine someone in the Government District must.~ */
  IF ~~ THEN DO ~AddexperienceParty(200)
ReputationInc(1)
SetGlobal("HelpDrienne","GLOBAL",1)
GiveItem("SCRL09",LastTalkedToBy)
TakePartyItem("MISC62")
~ JOURNAL #16543 /* ~Freeing Queen Ellesime

There is only one more parasite left to kill, and Ellesime says it must be dispatched quickly.  Once it is killed she will begin disconnecting Irenicus from the Tree of Life, and I will have to go to the central area quickly. Irenicus will be disoriented and weak, and that may be my only chance.  She warns caution though; the effect of the mage absorbing the Tree's power is unknown.
~ */ EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 5 // from:
  SAY #14856 /* ~Ah, I thought you must be outlanders from your accent and garb.  Welcome to Athkatla, the City of Coin.~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #1 ~false()~ THEN BEGIN 6 // from:
  SAY #14857 /* ~Undue practice of magic is forbidden here, naturally.  Where the wizards would take your friend, however, I do not know.~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #6 ~Global("HelpDrienne","GLOBAL",1)
~ THEN BEGIN 7 // from:
  SAY #14858 /* ~The fire and lightning had us all running, and much of the Promenade here has been destroyed.  It is good that the wizard was arrested for his recklessness.~ */
  IF ~~ THEN DO ~~ EXIT
END
