from eventAPI import *
from APIUtils import *

def fireEvent(e):
    argy = getTag(e, "ArgentPlt1")
    if (argy == 3):
        showMessage(e, ["Here, in the north east corner that argent alerted you to, you find a gruesome sight", "It appears you've found the final resting place of Asher himself"])
        showMessage(e, ["the remains are farily well intact, it appears they were not disturbed for many long years", "Covered in dust you find a piece of parchment in his hands - it is undecipherable to you"])
        showMessage(e, ["Argent snatches the piece of paper from you and begins to translate"])
        showPicture(e, "argent")
        showMessage(e, ["\"This appears to be in one of the ancient arcane languages, I believe I came across some texts regarding it in my time spent searching for information about the hourglass", "I'll do the best I can to figure out what it says, hold on a moment\""])
        showMessage(e, ["Argent wrenches his face to and fro, obviously in deep concentration, and when he finally looks up a dumbfounded look crosses his face"])
        showMessage(e, ["\"Well, this is both interesting and sad", "It appears that Asher here - who is widely considered the father of necromancy, was not setting out to create a despicable art after all"])
        showMessage(e, ["Asher notes here that while he did discover ways to animate flesh, he came across it completely by accident. He was originally initially just studying the animation of everyday objects, like carts, brooms, and the like.", 
             "During one of his experiments he mistakenly reanimated the body of an insect that was on one of his work tables, ",
             "From there his curiosity got the better of him, and he tried to revive more and more complex creatures.",
             "Apparently he became aware that this magic would be horrid if in the wrong hands, and would most likely be considered an affront to the gods",
             "This knowledge in hand, he determined to destroy his work, but there was a problem",
             "He had some servants in his employ, and one had a love of wine. This particular servant let slip word of Asher's doings one day at the tavern.",
             "Even more unfortunate was the presence of some Black Claw Warlocks at the tavern that evening",
             "As you probably already know, the Black Claws were horribly cutthroat in their business dealings, and saw a great advantage to magics such as these",
             "Apparently they followed the servant back here, but Asher caught wind of it somehow, that part is kind of unclear",
             "regardless, Asher by that time had brought forth many unclean things in his experiments, and had kept them here in this place, he retreated here upon learning the Black Claws were looking for him",
             "They intercepted his travelling party, but were only able to make away with the hourglass, which Asher had in his posession at the time as a personal bodyguard of sorts",
             "He didn't know what happened to it, so I guess neither will we fully, but in the end they followed him down here into these depths to steal from him the secrets to death",
             "The end of the note has been scratched hurriedly, towards the end I can barely make out the words, but I guess we can piece together what happened here - Asher lost\""])
        showMessage(e, ["As Argent finishes his retelling of the story of Asher, you notice that the corpse sits next to a large wooden trunk, apparently it's been here as long as he has"])
        giveItems(e, ["The Vile Viol", "Pox Pipes", "Perfect Robe", "Scale of Feather", "Life Bringer"])
        showMessage(e, ["Argent speaks up again:", "\"Brave ones, I thank you for freeing me from the cursed hourglass, and I hope to meet you again soon",
             "I must go and alert the temple in Rennibister to the fate of Rose, and hopefully they will be able to give her proper rites, even without a body", "Once again, thanks for your help, and I hope to meet you again soon\""])
        
    setTag(e, "ArgentPlt1", 4)
    return 1
