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

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

IF WEIGHT #1 /* Triggers after states #: 29 even though they appear after this state */
~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #1146 /* ~Stop! You are trespassing on my land-home! None come this way armed as you are. It was those horrible fishermen that hired you, wasn't it? Speak!~ */
  IF ~~ THEN REPLY #1821 /* ~I know not of whom you speak, child.~ */ SOLVED_JOURNAL #27439 /* ~The Fishermen and the Priestess
I have agreed to aid the fishermen north of the Friendly Arm by getting rid of a priestess of Umberlee. They claim she has harassed and killed a number of them. She lives just east of the bridge to Baldur's Gate.~ */ GOTO 1
  IF ~  !Global("HelpJebadoh","GLOBAL",0)
ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #1822 /* ~Uh, they did send me, but I wish only to know what is going on.~ */ GOTO 2
  IF ~  !Global("HelpJebadoh","GLOBAL",0)
~ THEN REPLY #1823 /* ~It's true! They sent me to end your villainous deeds!~ */ GOTO 2
  IF ~  !Global("HelpJebadoh","GLOBAL",0)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #1824 /* ~Um, they did send me, but I wish only to know what is going on.~ */ GOTO 14
  IF ~  PartyHasItem("MISC53")
~ THEN REPLY #1836 /* ~Here is the bowl that was taken from your mother. Perhaps now she will rest.~ */ GOTO 11
  IF ~Global("X#TENYA0","GLOBAL",0)
InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#TENYA0","GLOBAL",1)~ EXTERN ~EDWINJ~ 162
  IF ~Global("X#TENYA0","GLOBAL",0)
InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#TENYA0","GLOBAL",1)~ EXTERN ~DYNAHJ~ 226
  IF ~Global("X#TENYA0","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#TENYA0","GLOBAL",1)~ EXTERN ~KIVANJ~ 384
  IF ~Global("X#TENYA0","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#TENYA0","GLOBAL",1)~ EXTERN ~JAHEIJ~ 388
END

IF ~~ THEN BEGIN 1 // from: 15.2 0.0
  SAY #1147 /* ~I've no quarrel with thee! Be sure this remains so and leave.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 2 // from: 15.1 15.0 0.2 0.1
  SAY #1148 /* ~As cowardly as they are treacherous, hiring others to do what they could not! Tonight I shall put an end to all of this! The seas cry for vengeance!~ */
  IF ~~ THEN DO ~GiveItemCreate("minhp1","TENYA",0,0,0)
ActionOverride("TENYA",FillSlot(SLOT_AMULET))
Enemy()
~ EXIT
  IF ~Global("X#EdwinTenya0","GLOBAL",0)
InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#EdwinTenya0","GLOBAL",1)~ EXTERN ~EDWINJ~ 106
END

IF ~~ THEN BEGIN 3 // from:
  SAY #1149 /* ~Liar! None would dare attack me of their own accord! You shall share the fate of your employers as the sea takes back what it's due!~ */
  IF ~~ THEN DO ~GiveItemCreate("minhp1","TENYA",0,0,0)
ActionOverride("TENYA",FillSlot(SLOT_AMULET))
Enemy()
~ GOTO 4
  IF ~Global("X#EdwinTenya1","GLOBAL",0)
InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#EdwinTenya1","GLOBAL",1)~ EXTERN ~EDWINJ~ 107
END

IF ~~ THEN BEGIN 4 // from: 31.0 3.0
  SAY #1150 /* ~The power of Umberlee flows in my blood! I am the avenging Wave of Fury, the anger of the storm that beats the shore!~ */
  IF ~~ THEN REPLY #14143 /* ~~ */ EXIT
  IF ~Global("X#EdwinTenya2","GLOBAL",0)
InParty("edwin")
InMyArea("edwin")
!StateCheck("edwin",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#EdwinTenya2","GLOBAL",1)~ EXTERN ~EDWINJ~ 108
END

IF WEIGHT #2 /* Triggers after states #: 29 even though they appear after this state */
~  Global("TenyaHit","GLOBAL",1)
~ THEN BEGIN 5 // from:
  SAY #1152 /* ~Why do you do this? Don't you know what they've done? Sonner and the others, THEY are the EVIL ones! They killed my mother, and now you help them?! She only did her duty, collecting the offerings from those that would use the sea. They stole her elemental summoning bowl and tortured her for the words that make it work. Now they all misuse a gift from Umberlee to pillage the seas, and my mother's spirit can't rest until it is returned. I have more power than mother had. Umberlee gave me her anger, but I can't find the bowl. All I can do is hurt them till they give it back or die, but I'm so tired. I don't have mother's will, and the goddess is so demanding. Help me, please.~ */
  IF ~~ THEN REPLY #1831 /* ~Shhh, child. I shall help as best I can.~ */ DO ~SetGlobal("TenyaHit","GLOBAL",2)
ChangeEnemyAlly(Myself,NEUTRAL)
ClearAllActions()
SetGlobal("TenyaStory","GLOBAL",1)
~ GOTO 7
  IF ~~ THEN REPLY #1832 /* ~I don't trust you OR Sonner's bunch.~ */ DO ~EraseJournalEntry(27440)
EraseJournalEntry(27439)
EraseJournalEntry(27441)
EraseJournalEntry(27442)
EraseJournalEntry(27443)
EraseJournalEntry(27444)
EraseJournalEntry(27445)
EraseJournalEntry(27446)
EraseJournalEntry(27063)
SetGlobal("TenyaHit","GLOBAL",2)
ChangeEnemyAlly(Myself,NEUTRAL)
ClearAllActions()
SetGlobal("TenyaStory","GLOBAL",1)
~ SOLVED_JOURNAL #27445 /* ~The Fishermen and the Priestess
The "priestess" of Umberlee is no more than a child. She claims the fishermen killed her mother. I do not trust either side in this matter.~ */ GOTO 16
  IF ~~ THEN REPLY #1833 /* ~You would say anything to save yourself. I'll not believe it!~ */ DO ~SetGlobal("TenyaHit","GLOBAL",2)
SetGlobal("TenyaStory","GLOBAL",1)
~ GOTO 6
  IF ~Global("X#GarTen","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GarTen","GLOBAL",1)~ EXTERN ~GARRIJ~ 111
END

IF ~~ THEN BEGIN 6 // from: 33.2 5.2
  SAY #1153 /* ~Then you had best kill me now. All who malign Umberlee must be punished, and she will not let me stop!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 33.0 5.0
  SAY #1154 /* ~Oh, thank you! The Sea Queen may yet be satisfied with the return of the bowl, but one way or another Sonner's group must no longer profit at her expense. It is probably being hidden in a shrine to another god. I don't know where the shrine is and couldn't go near even if I did, but Sonner may tell you... if you ask him with a blade. Go now, for Umberlee is seldom patient, and you are not yet on her good side.~ */
  IF ~~ THEN DO ~SetGlobal("HelpTenya","GLOBAL",1)
~ UNSOLVED_JOURNAL #27444 /* ~The Fishermen and the Priestess
The "priestess" I was sent to kill is no more than a child of perhaps twelve years. She says the fishermen who hired me killed her mother. I shall go confront them on her behalf.~ */ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 29 even though they appear after this state */
~  Global("HelpTenya","GLOBAL",1)
~ THEN BEGIN 8 // from:
  SAY #1155 /* ~You return. I trust you bear good news?~ */
  IF ~  Dead("Jebadoh")
Dead("Telman")
Dead("Sonner")
~ THEN REPLY #1835 /* ~They are all dead, and will trouble you no more. Does this satisfy your need for vengeance?~ */ GOTO 10
  IF ~  PartyHasItem("MISC53")
~ THEN REPLY #1836 /* ~Here is the bowl that was taken from your mother. Perhaps now she will rest.~ */ GOTO 11
  IF ~~ THEN REPLY #1837 /* ~I have not yet retrieved the bowl or dealt with Sonner.~ */ GOTO 9
  IF ~~ THEN REPLY #1838 /* ~I have returned to finish what I started. Your evil ways must end!~ */ GOTO 12
  IF ~~ THEN REPLY #1839 /* ~I'll have nothing more to do with any of you! I will be no one's tool.~ */ GOTO 13
END

IF ~~ THEN BEGIN 9 // from: 8.2
  SAY #1156 /* ~The Bitch Queen is not called so because of her patient nature. Quicken your step.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #27446 /* ~The Fishermen and the Priestess
I returned to Tenya without having carried out her wishes. She no longer seems quite the meek child. I feel it's best not to keep her waiting.~ */ EXIT
END

IF ~~ THEN BEGIN 10 // from: 8.0
  SAY #1157 /* ~I have no further need of vengeance. Umberlee is mother now, and she is well pleased. The blood spilled today will remind all of her mastery of the waters. Hopefully Talos will tire of these little games. You have been a most useful tool, and the Sea Queen shall reward you... in time.~ */
  IF ~~ THEN DO ~SetGlobal("HelpTenya","GLOBAL",2)
TakePartyItem("MISC53")
AddexperienceParty(1000)
SetGlobal("TalkedToTenya","GLOBAL",1)
ForceSpell(Myself,DRYAD_TELEPORT)
SetGlobal("HelpJebadoh","GLOBAL",3)
EraseJournalEntry(27440)
EraseJournalEntry(27439)
EraseJournalEntry(27441)
EraseJournalEntry(27442)
EraseJournalEntry(27443)
EraseJournalEntry(27444)
EraseJournalEntry(27445)
EraseJournalEntry(27446)
EraseJournalEntry(27063)
~ SOLVED_JOURNAL #27471 /* ~The Fishermen and the Priestess
I have been promised a future reward for my role in vanquishing the fishermen aligned with Talos. Strange, though... I do not feel as though I have helped a child, so much as I have been the pawn of a spiteful god. Deities are not to be trifled with... they trifle back.~ */ EXIT
END

IF ~~ THEN BEGIN 11 // from: 16.1 8.1 0.4
  SAY #1158 /* ~Umberlee is mother now, and she is well pleased. She will deal with Sonner's group in time, and Talos will no doubt abandon them for their failure. If they are wise they will never set sail again, for the sea will take their worthless lives. I have no reward for you, but the Sea Queen remembers those that serve her well. You will be paid... in time.~ */
  IF ~~ THEN DO ~SetGlobal("HelpTenya","GLOBAL",2)
SetGlobal("TalkedToTenya","GLOBAL",1)
TakePartyItem("MISC53")
AddexperienceParty(2500)
SetGlobal("HelpJebadoh","GLOBAL",3)
EraseJournalEntry(27440)
EraseJournalEntry(27439)
EraseJournalEntry(27441)
EraseJournalEntry(27442)
EraseJournalEntry(27443)
EraseJournalEntry(27444)
EraseJournalEntry(27445)
EraseJournalEntry(27446)
EraseJournalEntry(27063)
ForceSpell(Myself,DRYAD_TELEPORT)
~ SOLVED_JOURNAL #27471 /* ~The Fishermen and the Priestess
I have been promised a future reward for my role in vanquishing the fishermen aligned with Talos. Strange, though... I do not feel as though I have helped a child, so much as I have been the pawn of a spiteful god. Deities are not to be trifled with... they trifle back.~ */ EXIT
END

IF ~~ THEN BEGIN 12 // from: 8.3
  SAY #1159 /* ~So be it! It's your own grave you dig, for Umberlee shall not be denied!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 8.4
  SAY #1160 /* ~I shall deal with them myself then. It's no longer the time for subtlety!~ */
  IF ~~ THEN DO ~SetGlobal("TalkedToTenya","GLOBAL",1)
SetGlobal("KillFishermen","GLOBAL",1)
SetGlobal("HelpJebadoh","GLOBAL",3)
EraseJournalEntry(27440)
EraseJournalEntry(27439)
EraseJournalEntry(27441)
EraseJournalEntry(27442)
EraseJournalEntry(27443)
EraseJournalEntry(27444)
EraseJournalEntry(27445)
EraseJournalEntry(27446)
EraseJournalEntry(27063)
ForceSpell(Myself,DRYAD_TELEPORT)
~ SOLVED_JOURNAL #27472 /* ~The Fishermen and the Priestess
I have refused to aid Tenya in her fanatical search for vengeance, though it appears she no longer wishes my help. I fear for the safety of all concerned, but I trust none of them.~ */ EXIT
END

IF ~~ THEN BEGIN 14 // from: 0.3
  SAY #1825 /* ~What goes on is none of your business! Leave now, lest you earn the same fate that they have!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 29 even though they appear after this state */
~  Global("HelpTenya","GLOBAL",0)
~ THEN BEGIN 15 // from:
  SAY #1826 /* ~You return?! I warn you once again to leave my home. If you do not, I must assume you are allied with my enemies!~ */
  IF ~  !Global("HelpJebadoh","GLOBAL",0)
~ THEN REPLY #1828 /* ~They did send me, but I wish only to know what is going on.~ */ GOTO 2
  IF ~  !Global("HelpJebadoh","GLOBAL",0)
~ THEN REPLY #1829 /* ~It's true! They sent me to end your villainous deeds!~ */ GOTO 2
  IF ~~ THEN REPLY #1830 /* ~I wish no enmity between us, and will not disturb you further.~ */ GOTO 1
END

IF ~~ THEN BEGIN 16 // from: 33.1 5.1
  SAY #1834 /* ~Then stand you well outside the battle and leave me be! It is but money that makes this fight yours! A petty reason, by any account! Begone!~ */
  IF ~~ THEN EXIT
  IF ~  PartyHasItem("MISC53")
~ THEN REPLY #1836 /* ~Here is the bowl that was taken from your mother. Perhaps now she will rest.~ */ GOTO 11
END

IF WEIGHT #5 /* Triggers after states #: 29 even though they appear after this state */
~  False()
~ THEN BEGIN 17 // from:
  SAY #1840 /* ~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 in Beregost, hm?~ */
  IF ~  ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #1846 /* ~I wish nothing of you, save the body of the fool that tried to break into your hallowed halls. I imagine the return of such an infidel is ample return for my services.~ */ GOTO 19
  IF ~  Dead("Jebadoh")
Dead("Sonner")
Dead("Telman")
~ THEN REPLY #1847 /* ~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 20
  IF ~~ THEN REPLY #1848 /* ~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 22
  IF ~  !Dead("Jebadoh")
!Dead("Sonner")
!Dead("Telman")
~ THEN REPLY #1849 /* ~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 20
  IF ~  ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #1850 /* ~I wish nothing of you, save the body of the fool that tried to break into your hallowed halls. I imagine the return of such an infidel is ample return for my services.~ */ GOTO 19
END

IF ~~ THEN BEGIN 18 // from:
  SAY #1841 /* ~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 ~  ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN REPLY #1851 /* ~I wish nothing of you, save the body of the fool that tried to break into your hallowed halls. I imagine the return of such an infidel is ample return for my services.~ */ GOTO 19
  IF ~  ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
Dead("Jebadoh")
Dead("Sonner")
Dead("Telman")
~ THEN REPLY #1852 /* ~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 21
  IF ~~ THEN REPLY #1853 /* ~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 22
  IF ~  ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
~ THEN REPLY #1854 /* ~I wish nothing of you, save the body of the fool that tried to break into your hallowed halls. I imagine the return of such an infidel is ample return for my services.~ */ GOTO 20
  IF ~  ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
~ THEN REPLY #1855 /* ~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 20
END

IF ~~ THEN BEGIN 19 // from: 18.0 17.4 17.0
  SAY #1842 /* ~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)
~ JOURNAL #1827 /* ~Tremain's Son
I have retrieved the child's body from the Umberlee temple. It was a stroke of luck that Tenya was there, though I feel no better about being used before.~ */ EXIT
END

IF ~~ THEN BEGIN 20 // from: 18.4 18.3 17.3 17.1
  SAY #1843 /* ~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? Waveservants! You have heard the challenge! If they escape... you WILL die!~ */
  IF ~~ THEN DO ~SetGlobal("BOYBODY","GLOBAL",1)
GiveItemCreate("MISC54",LastTalkedToBy,0,0,0)
EscapeArea()
~ JOURNAL #6332 /* ~Tremain's Son
It is Tenya who rules at the temple of Umberlee! Our past association has not softened her demeanor, and it does make me wonder how they would treat a stranger! At least I received the child's body.~ */ EXIT
END

IF ~~ THEN BEGIN 21 // from: 18.1
  SAY #1844 /* ~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)
~ JOURNAL #1827 /* ~Tremain's Son
I have retrieved the child's body from the Umberlee temple. It was a stroke of luck that Tenya was there, though I feel no better about being used before.~ */ EXIT
END

IF ~~ THEN BEGIN 22 // from: 18.2 17.2
  SAY #1845 /* ~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 Water Queen and may take what you came for. If you do not get there, well, you shall be beyond worrying about it. Oh, and if you think our waveservants may just let you pass? ATTENTION! The Sea Queen demands a test! If these intruders live... the ranks will be CLEANSED!~ */
  IF ~~ THEN DO ~GiveItemCreate("MISC54",LastTalkedToBy,0,0,0)
Shout(1)
EscapeArea()
~ JOURNAL #6332 /* ~Tremain's Son
It is Tenya who rules at the temple of Umberlee! Our past association has not softened her demeanor, and it does make me wonder how they would treat a stranger! At least I received the child's body.~ */ EXIT
END

IF WEIGHT #6 /* Triggers after states #: 29 even though they appear after this state */
~  False()
~ THEN BEGIN 23 // from:
  SAY #1856 /* ~You! Is it nerve that brings thee here?! No, more likely stupidity. Was it not you who turned thy back on Umberlee's cause in Beregost? 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 #1857 /* ~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 24
  IF ~  ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN REPLY #1858 /* ~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 26
  IF ~  ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #6333 /* ~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 25
  IF ~  ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
~ THEN REPLY #6334 /* ~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 27
END

IF ~~ THEN BEGIN 24 // from: 23.0
  SAY #1859 /* ~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 ~Shout(1)
EscapeArea()
~ JOURNAL #6355 /* ~Tremain's Son
It is the child priestess Tenya who appears to reign in the Temple of Umberlee. While I received the child's body, it was not without bloodshed. She turned on me, and I was forced to kill her.~ */ EXIT
END

IF ~~ THEN BEGIN 25 // from: 23.2
  SAY #1860 /* ~Do they now? It is not unlike how a child would miss 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 ~GiveItemCreate("MISC54",LastTalkedToBy,0,0,0)
~ JOURNAL #6354 /* ~Tremain's Son
It is the child priestess Tenya who appears to reign in the Temple of Umberlee. While I received the child's body, our fleeting acquaintance did not benefit me, and I do not think I should return.~ */ EXIT
END

IF ~~ THEN BEGIN 26 // from: 23.1
  SAY #1861 /* ~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 ~GiveItemCreate("MISC54",LastTalkedToBy,0,0,0)
~ JOURNAL #6354 /* ~Tremain's Son
It is the child priestess Tenya who appears to reign in the Temple of Umberlee. While I received the child's body, our fleeting acquaintance did not benefit me, and I do not think I should return.~ */ EXIT
END

IF ~~ THEN BEGIN 27 // from: 23.3
  SAY #1862 /* ~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(1)
EscapeArea()
~ JOURNAL #6355 /* ~Tremain's Son
It is the child priestess Tenya who appears to reign in the Temple of Umberlee. While I received the child's body, it was not without bloodshed. She turned on me, and I was forced to kill her.~ */ EXIT
END

IF WEIGHT #7 /* Triggers after states #: 29 even though they appear after this state */
~  False()
~ THEN BEGIN 28 // from:
  SAY #6340 /* ~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 JOURNAL #6356 /* ~The Temple of Umberlee has offered me sanctuary if required. I do not know which is more unnerving, that they have made the offer or that I might need to accept it.~ */ EXIT
END

IF WEIGHT #0 ~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 29 // from:
  SAY #6925 /* ~New friends of mine! You may call me Tenya, and know that I am a priestess of Umberlee. For many weeks now I have searched for the relic that was stolen from my mother. The fishermen Telman, Jebadoh, and Sonner stole it when they became jealous of her power. I will soon have my revenge against these petty fishermen.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 30 // from:
  SAY #46685 /* ~Die, mageling!~ */
  IF ~~ THEN DO ~GiveItemCreate("minhp1","TENYA",0,0,0)
ActionOverride("TENYA",FillSlot(SLOT_AMULET))
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 31 // from:
  SAY #46685 /* ~Die, mageling!~ */
  IF ~~ THEN DO ~GiveItemCreate("minhp1","TENYA",0,0,0)
ActionOverride("TENYA",FillSlot(SLOT_AMULET))
Enemy()
~ GOTO 4
END

IF ~~ THEN BEGIN 32 // from:
  SAY #46685 /* ~Die, mageling!~ */
  IF ~~ THEN REPLY #14143 /* ~~ */ EXIT
END

IF ~~ THEN BEGIN 33 // from:
  SAY #46811 /* ~Just go away!~ */
  IF ~~ THEN REPLY #1831 /* ~Shhh, child. I shall help as best I can.~ */ DO ~SetGlobal("TenyaHit","GLOBAL",2)
ChangeEnemyAlly(Myself,NEUTRAL)
ClearAllActions()
SetGlobal("TenyaStory","GLOBAL",1)
~ GOTO 7
  IF ~~ THEN REPLY #1832 /* ~I don't trust you OR Sonner's bunch.~ */ DO ~EraseJournalEntry(27440)
EraseJournalEntry(27439)
EraseJournalEntry(27441)
EraseJournalEntry(27442)
EraseJournalEntry(27443)
EraseJournalEntry(27444)
EraseJournalEntry(27445)
EraseJournalEntry(27446)
EraseJournalEntry(27063)
SetGlobal("TenyaHit","GLOBAL",2)
ChangeEnemyAlly(Myself,NEUTRAL)
ClearAllActions()
SetGlobal("TenyaStory","GLOBAL",1)
~ SOLVED_JOURNAL #27445 /* ~The Fishermen and the Priestess
The "priestess" of Umberlee is no more than a child. She claims the fishermen killed her mother. I do not trust either side in this matter.~ */ GOTO 16
  IF ~~ THEN REPLY #1833 /* ~You would say anything to save yourself. I'll not believe it!~ */ DO ~SetGlobal("TenyaHit","GLOBAL",2)
SetGlobal("TenyaStory","GLOBAL",1)
~ GOTO 6
END
