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

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

IF WEIGHT #0 ~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #15993 /* ~Excuse me?  What was that?~ */
  IF ~~ THEN DO ~~ JOURNAL #16002 /* ~The de'Arnise Keep has been invaded.

The servant, Daleson, did have one piece of information that may be useful.  The leader of the trolls keeps a pack of strange animals that eat dog stew, and when they get fed nothing stands between them and their food.  Apparently, Daleson had to sneak into their cell, down the hall where they first broke in, to place the food there and they abandoned their posts and almost killed him to get at it.~ */ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 2 3 4 even though they appear after this state */
~!HasItem("BOOK16",LastTalkedToBy)
Global("HelpPhlydia","GLOBAL",0)
~ THEN BEGIN 1 // from:
  SAY #16003 /* ~Errr... alright.  Show me what you have in stock.~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #1 ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
HasItem("BOOK16",LastTalkedToBy)
~ THEN BEGIN 2 // from:
  SAY #16004 /* ~No thanks, I'll be on my way.~ */
  IF ~~ THEN DO ~AddexperienceParty(50)
TakePartyItem("BOOK16")
GiveItem("MISC17",LastTalkedToBy)
SetGlobal("HelpPhlydia","GLOBAL",1)
~ JOURNAL #16534 /* ~~ */ EXIT
END

IF WEIGHT #2 ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
HasItem("BOOK16",LastTalkedToBy)
~ THEN BEGIN 3 // from:
  SAY #16005 /* ~Ah, gut, ja.  Very gut, ja.  You comink again, ja?~ */
  IF ~~ THEN DO ~AddexperienceParty(50)
TakePartyItem("BOOK16")
SetGlobal("HelpPhlydia","GLOBAL",1)
~ JOURNAL #16535 /* ~Inside the Asylum

Irenicus has shown himself.  It was his plan all along to bring me here.  He has apprehended me through treachery, and he intends to take my 'divine soul'.  He has already done as much to Imoen... who, according to Irenicus, is also a Child of Bhaal.

Why did Gorion not tell me?  How could she have been a Child all this time?  True, there was always a connection of sorts... and if Irenicus is to be believed, Imoen's own spirit kept the taint at bay for a long time... but, in the end, it doesn't matter.  He said that Imoen barely survived the process he is about to put me through.  He doesn't expect me to live.~ */ EXIT
END

IF WEIGHT #3 ~False()~ THEN BEGIN 4 // from:
  SAY #16029 /* ~The sun shines upon me most readily to see thee once again, fair customer.  Dost thou wish to see my selection once again?~ */
  IF ~~ THEN EXIT
END
