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

BEGIN ~_TENYA2~

IF ~Global("HelpTenya","GLOBAL",2)
~ THEN BEGIN 0 // from:
  SAY #81591 /* ~Well.  I should say the mother and I expected to see you again at some point, though it was certainly not to be so soon.  I suppose it's to collect some sort of payment for your actions outside of Baldur's Gate... hmmm?~ */
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #81556 /* ~I wish nothing of you, save the body of the infidel that tried to break into your hallowed halls.~ */ GOTO 2
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #81556 /* ~I wish nothing of you, save the body of the infidel that tried to break into your hallowed halls.~ */ GOTO 3
  IF ~Dead("jebadoh")
~ THEN REPLY #81592 /* ~I demand the payment I am due for helping your cause!  You and your Umberlee would not have prevailed without my help, and 'twas said you would repay me in time!~ */ GOTO 4
  IF ~!Dead("jebadoh")
~ THEN REPLY #81592 /* ~I demand the payment I am due for helping your cause!  You and your Umberlee would not have prevailed without my help, and 'twas said you would repay me in time!~ */ GOTO 3
  IF ~~ THEN REPLY #81593 /* ~Please... I beg of you.  I have but one wish and then I will go.  There is a child who came here and was killed.  I simply hope to obtain his body.  Then I shall trouble you no more.~ */ GOTO 5
END

IF ~~ THEN BEGIN 1 // from:
  SAY #81594 /* ~To what dishonor do we owe your violating our temple?  Is it not you who served Umberlee in Beregost?  Such a promising introduction to be followed by your breaking onto our sacred ground.  State your purpose here!~ */
  IF ~~ THEN REPLY #81556 /* ~I wish nothing of you, save the body of the infidel that tried to break into your hallowed halls.~ */ EXIT
  IF ~~ THEN REPLY #81556 /* ~I wish nothing of you, save the body of the infidel that tried to break into your hallowed halls.~ */ EXIT
  IF ~~ THEN REPLY #81595 /* ~I Demand the payment I am due for helping your cause!  You and your Umberlee would not have prevailed without my help, and 'twas said you would repay me in time!~ */ EXIT
  IF ~~ THEN REPLY #81595 /* ~I Demand the payment I am due for helping your cause!  You and your Umberlee would not have prevailed without my help, and 'twas said you would repay me in time!~ */ EXIT
  IF ~~ THEN REPLY #81593 /* ~Please... I beg of you.  I have but one wish and then I will go.  There is a child who came here and was killed.  I simply hope to obtain his body.  Then I shall trouble you no more.~ */ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.0
  SAY #81596 /* ~You do not ask for much, do you?  Very well, take the child and go.  I warrant you will no doubt resurrect him, but the lesson is learned.  Death changes one, especially one so young.  I know of this like no other.  GO!  And never darken these halls again... unless summoned!~ */
  IF ~~ THEN DO ~SetGlobal("BOYBODY","GLOBAL",1)
GiveItemCreate("_MISC54",LastTalkedToBy,0,0,0)
EscapeArea()
~ EXIT
  IF ~Global("X#XanTenya1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanTenya1","GLOBAL",1)~ EXTERN ~_XANJ~ 142
END

IF ~~ THEN BEGIN 3 // from: 0.3 0.1
  SAY #81598 /* ~HA Hahahaha.  It's an interesting, and foolishly LARGE request from someone in your position.  Umberlee neither required, nor sought your help.  You were simply a toy for her amusement.  Perhaps you can be such again?  Since you did some service, needed or not, you have a small chance to leave.  Here is the body you came for.  If you can get to the front gate, you may leave.  If you do not make it, you will join him.  Even if you live, I trust I shall never see you again.  Understand?~ */
  IF ~~ THEN DO ~SetGlobal("BOYBODY","GLOBAL",1)
GiveItemCreate("_MISC54",LastTalkedToBy,0,0,0)
Shout(2727)
EscapeArea()
~ EXIT
  IF ~Global("X#XanTenya2","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanTenya2","GLOBAL",1)~ EXTERN ~_XANJ~ 141
END

IF ~~ THEN BEGIN 4 // from: 0.2
  SAY #81600 /* ~I suppose such brash and disrespectful behavior is to be expected from such a bloodthirsty lot.  Very well, you may have the body you came for.  No doubt you will raise him, but he will have learned.  By this time Umberlee herself may have had a chat with him.  Oh, one other thing... NEVER come here again unless summoned.~ */
  IF ~~ THEN DO ~SetGlobal("BOYBODY","GLOBAL",1)
GiveItemCreate("_MISC54",LastTalkedToBy,0,0,0)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 0.4
  SAY #81601 /* ~Pathetic.  Whether true or not, it simply would not do for people to think Umberlee requires the assistance of such sniveling worms as yourselves.  You seek the child?  Here is the body.  It is a simple game.  You get as far as the front gate, you are worthy to have served the Waterqueen and may take what you came for.  If you do not get there, well, you shall be beyond worrying about it.  Now... LEAVE!~ */
  IF ~~ THEN DO ~SetGlobal("BOYBODY","GLOBAL",1)
GiveItemCreate("_MISC54",LastTalkedToBy,0,0,0)
Shout(2727)
EscapeArea()
~ EXIT
END

IF ~Global("HelpTenya","GLOBAL",1)
~ THEN BEGIN 6 // from:
  SAY #81602 /* ~You!  Is it nerve that brings thee here?!  No, more likely stupidity.  Was it not you who turned thy back on Umberlee's cause?  You have changed somewhat but it is you.  I see with the mother's eyes! Your inaction was of little consequence, for the mother and I dealt well with all of them.  Now you will join them!~ */
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #81603 /* ~I meant no ill on you or your temple!  Please, I beg of you!  It is a mission of mercy I am on!  I seek the body of a child killed here.  The child's parent does miss him so!~ */ GOTO 7
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #81603 /* ~I meant no ill on you or your temple!  Please, I beg of you!  It is a mission of mercy I am on!  I seek the body of a child killed here.  The child's parent does miss him so!~ */ GOTO 8
  IF ~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN REPLY #81604 /* ~It was not my fight.  Far be it from me to get in the path of your righteous fury.  My purpose here now hath no more inconvenience than when we last met.  You have the body of a child here.  Your justice has been dealt, and now I have come to take him home.~ */ GOTO 9
  IF ~ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
~ THEN REPLY #81604 /* ~It was not my fight.  Far be it from me to get in the path of your righteous fury.  My purpose here now hath no more inconvenience than when we last met.  You have the body of a child here.  Your justice has been dealt, and now I have come to take him home.~ */ GOTO 10
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #81605 /* ~Cease your blubbering.  It is an insult to show such pathos in the sight of Umberlee!  Perhaps we should make ye prove your mettle, that we might forget this sickening display?  The body you seek shall be at the front gate.  Get there and it is yours to do with as you see fit.  Of course my fellow waveservants will do their utmost to hinder your progress.  It is sure to be an amusing diversion for the Sea Queen.~ */
  IF ~~ THEN DO ~SetGlobal("BOYBODY","GLOBAL",1)
GiveItemCreate("_MISC54",LastTalkedToBy,0,0,0)
Shout(2727)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 8 // from: 6.1
  SAY #81606 /* ~Do they now?  It is not unlike how a child would its parent I imagine. Take him and begone.  Do not expect such charity in the future, and do not return to this place unless summoned!~ */
  IF ~~ THEN DO ~SetGlobal("BOYBODY","GLOBAL",1)
GiveItemCreate("_MISC54",LastTalkedToBy,0,0,0)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 6.2
  SAY #81607 /* ~Some sage words indeed.  You know your place in things well.  Appropriate behavior should not go unrewarded.  Here be the body you seek.  No doubt your intention is to resurrect the child?  No matter.  The lesson will have been learned.  Do not return here unless summoned.  You shall find the reception more... chilling.~ */
  IF ~~ THEN DO ~SetGlobal("BOYBODY","GLOBAL",1)
GiveItemCreate("_MISC54",LastTalkedToBy,0,0,0)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 10 // from: 6.3
  SAY #81608 /* ~Do you not realize where you are?  This is my very lair!  This is the seat of Umberlee!!  You do not make demands here!!  Waveservants, dispose of this flotsam!  I cannot stand the sight of them!~ */
  IF ~~ THEN DO ~Shout(2727)
Enemy()
~ EXIT
END

IF ~False()
~ THEN BEGIN 11 // from:
  SAY #81609 /* ~It has been decided you are to be safe here as need be.  Umberlee hath no love for thee or thy cause, but hath an interest anyway.  The inevitable chaos and turmoil that would follow a godly resurrection fall a touch too close to pleasing godly brethren like Talos.  Anything that would amuse him is to be... discouraged.  Come and go as you wish, but do not advertise the fact that you can.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 12 // from: _XANJ:141.1
  SAY #99743 /* ~Because it is the way of things.~ */
  IF ~~ THEN DO ~SetGlobal("BOYBODY","GLOBAL",1)
GiveItemCreate("_MISC54",LastTalkedToBy,0,0,0)
Shout(2727)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 13 // from: _XANJ:142.1
  SAY #99745 /* ~It matters not at all in the end.~ */
  IF ~~ THEN DO ~SetGlobal("BOYBODY","GLOBAL",1)
GiveItemCreate("_MISC54",LastTalkedToBy,0,0,0)
EscapeArea()
~ EXIT
END
