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

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

IF WEIGHT #0 ~NumTimesTalkedTo(0)
ReactionGT(LastTalkedToBy(),HOSTILE_UPPER)
~ THEN BEGIN 0 // from:
  SAY #21471 /* ~Mazzy, I...(sigh) Very well, if you wish to go to Waterdeep I will at least accompany you part of the way... though I would prefer to travel to Neverwinter.~ */
  IF ~~ THEN REPLY #21484 /* ~Tell that to a starving peasant.~ */ GOTO 3
  IF ~~ THEN REPLY #21487 /* ~My family was afflicted by our curse; I knew little affection or care.  I would have given up all our wealth for the sane, loving parent your father was.~ */ GOTO 4
  IF ~~ THEN REPLY #21490 /* ~What a beautiful day.  And what makes it even better is that I am truly a free man.~ [VALYGA51] */ GOTO 5
END

IF WEIGHT #1 ~NumTimesTalkedTo(0)
ReactionGT(LastTalkedToBy(),NEUTRAL_UPPER)
~ THEN BEGIN 1 // from:
  SAY #21472 /* ~A fair trade!  Thank... thank you Valygar.  I am lucky to have your aid.~ */
  IF ~~ THEN REPLY #21485 /* ~I do not think they are as unhappy as that, really.  Was your father a cruel man, then?~ */ GOTO 3
  IF ~~ THEN REPLY #21488 /* ~I... I suppose...~ */ GOTO 4
  IF ~~ THEN REPLY #21491 /* ~So joyful, ranger?  You find some happiness, perhaps, in the slaughter of a relative?~ [VICONI58] */ GOTO 5
END

IF WEIGHT #2 ~NumTimesTalkedTo(0)
ReactionLT(LastTalkedToBy(),NEUTRAL_LOWER)
~ THEN BEGIN 2 // from:
  SAY #21473 /* ~What is this?  I am not hurt.  Boo is not hurt.  What is there to be concerned about?~ [MINSC45] */
  IF ~~ THEN REPLY #21486 /* ~Well... no, of course not.  But that has--~ */ GOTO 3
  IF ~~ THEN REPLY #21489 /* ~Believe it, Nalia.  One day it will truly be too late.~ */ GOTO 4
  IF ~~ THEN REPLY #21492 /* ~I find some pleasure in being able to walk freely, drow.~ */ GOTO 5
END

IF ~~ THEN BEGIN 3 // from: 17.0 2.0 1.0 0.0
  SAY #21474 /* ~I find it odd that someone who fights so well is not entirely in possession of his senses.~ */
  IF ~~ THEN REPLY #21493 /* ~Ah.  I thought perhaps it was the murder of your uncle... or whatever he was.  We have similarities in drow culture to such a thing.~ */ GOTO 6
  IF ~~ THEN REPLY #21494 /* ~I'll not be baited by you, Viconia.  I have no pleasant thoughts of Lavok's death.~ */ GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 17.1 3.1 2.1 1.1 0.1
  SAY #21475 /* ~I have all the senses needed to put evil in its place, plus the added bonus of Boo's keen hamster eyes.  What else is necessary?~ */
  IF ~~ THEN DO ~SetGlobal("TherTalk","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 17.2 7.2 2.2 1.2 0.2
  SAY #21476 /* ~Have you... considered seeing a priest, Minsc?  Someone who might try to heal your... uh... head wound?~ */
  IF ~~ THEN DO ~SetGlobal("TherTalk","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 6 // from: 3.0
  SAY #21477 /* ~I have been seen by the best and by the worst, and all have learned that Minsc is Minsc is Minsc. I do good things for those that need them; why is there a problem?~ */
  IF ~~ THEN JOURNAL #22952 /* ~The Transformation and the Dream

Irenicus has started to do... whatever he is doing.  And I have been transported into some kind of dream.  I cannot tell what is real and what is not.  All I have heard is Imoen's voice, calling to me... she says that I cannot fight alone, and that I must find her.~ */ GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #21478 /* ~Warm you may be, but you are in a very cold place. Was this necessary?~ */
  IF ~~ THEN REPLY #21495 /* ~Indeed? You seemed eager enough before. Perhaps he was not as evil as you thought, hm? Perhaps he should have had 'evil' written across his chest?~ */ GOTO 8
  IF ~~ THEN REPLY #21496 /* ~I... I still know evil when I see it, Viconia.  I am just... just...~ */ GOTO 9
  IF ~~ THEN REPLY #21497 /* ~Oh, well then by all means, do point it out to me when you see it next.  I would love to hear your interpretation.~ */ GOTO 5
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #21479 /* ~Yes, yes, but why must I come all the way out here. It isn't safe.~ */
  IF ~~ THEN DO ~SetGlobal("TherTalk","GLOBAL",1)~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 7.1
  SAY #21480 /* ~I don't care about your greeting. Just explain why I am here!~ */
  IF ~~ THEN DO ~SetGlobal("Therella","GLOBAL",1)
~ EXIT
END

IF WEIGHT #3 ~Global("Therella","GLOBAL",2)
!Dead("Dalton")
~ THEN BEGIN 10 // from:
  SAY #21481 /* ~I wonder, Nalia.  Why is it that you struggle to be so different from what your family asks of you?~ [VALYGA50] */
  IF ~~ THEN DO ~GiveGoldForce(300)~ GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #21482 /* ~I am uncomfortable with their wealth, Valygar.  There are so many who live in squalor, and yet we are supposed to hoist ourselves above them because we are nobles?~ [NALIA47] */
  IF ~~ THEN DO ~SetGlobal("Therella","GLOBAL",9)
~ EXIT
END

IF WEIGHT #8 /* Triggers after states #: 13 14 17 18 even though they appear after this state */
~Global("Therella","GLOBAL",9)~ THEN BEGIN 12 // from:
  SAY #21483 /* ~You cannot solve all problems with wealth, Nalia.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 14 17 18 even though they appear after this state */
~Global("Therella","GLOBAL",1)
~ THEN BEGIN 13 // from:
  SAY #22025 /* ~When will you help me find Imoen? I have already paid to the necessary coin!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 ~Dead("Daltan")
~ THEN BEGIN 14 // from:
  SAY #22027 /* ~I have done your dirty work. What will you have me do next?~ */
  IF ~~ THEN REPLY #22028 /* ~I did not intend for you to cripple them; that will come later.~ */ GOTO 15
  IF ~~ THEN REPLY #22029 /* ~I am eager to help.~ */ GOTO 16
END

IF ~~ THEN BEGIN 15 // from: 14.0
  SAY #22031 /* ~I will honor my deal, giving you exactly what I have promised. I will deliver you directly to where she is, bypassing these foolish thieves.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 16 // from: 14.1
  SAY #22033 /* ~You need not be so bitter. You will benefit from all of this in the long run. Already you have helped me, and I will show gratitude in the end.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF WEIGHT #5 ~Global("TherTalk","GLOBAL",1)
Global("Therella","GLOBAL",0)~ THEN BEGIN 17 // from:
  SAY #22201 /* ~You are a great and wonderful being for what you have done.  May the gods smile upon you forever for doing this for that creature.~ [SASSAR13] */
  IF ~~ THEN REPLY #22202 /* ~Hello then, I certainly hope you've got a reason to be bothering me, because I'm quite busy, as you can see. Ah, poor Lin passed out. I've a few minutes to spare then. Who are you and why shouldn't I kill you?~ [MAEVAR02] */ GOTO 3
  IF ~~ THEN REPLY #22203 /* ~So... you're the leader of this lot?  Perhaps you can tell me how to get to the beholder lair above, then.~ */ GOTO 4
  IF ~~ THEN REPLY #22204 /* ~Try not to eat the living?  Well, I'll try not to kill you when I thrust my sword through your undead heart!~ */ GOTO 5
END

IF WEIGHT #6 ~Global("TherTalk","GLOBAL",0)
Global("Therella","GLOBAL",0)
Global("Daltan","GLOBAL",1)~ THEN BEGIN 18 // from:
  SAY #22744 /* ~There is a... SHHHHHH!! There is a TRAITOR amongst us! Yes, one who has abused the trust we have given him! He must be dealt with in a permanent fashion.~ */
  IF ~~ THEN EXIT
END
