1. #1

    Question [WeakAuras] Why doesn't my custom untrigger work?

    I'm a click-casting healer and I like seeing the 3D model of the character I'm currently casting a spell on. My WeakAura has two custom triggers. Trigger 1 displays the model when I start casting, and trigger 2 is supposed to hide the model when I finish casting.

    Would anyone mind importing my script and taking a look? Note that once you finish casting your spell it'll print "t2 untrigger", proving that it's executing the untrigger code, but despite returning true, it won't hide the 3D model.

    Here's the script:
    Code:
    dyu(jaGiGAusKtjrnlav3sce7Iu1WKqogPswgIkptjjttjrxJurBtjHgNeQ6CsOY6qe19qKoOsQfQKuperzIev5IaPnIOkFerKrkHItkbTsPmtq4MKk1ojs)ucugkrLLIi4PkMkOUki6RKkCwjuATiQQEReWDjQQ9I6VamyvhwQwmi1JvIjtsxgAZeXNjXObKtRuRgrv51akZMuUnc7wWVfA4eLJlbQwoHNJ00fDDjTDG47icnELeCEqY8LaP9tnRlgMhcEu5rLH5HiQIAfsHmStE18aDuOIIv3xaMQikJNjQTv5rDtjF1WsUbb5vZtFj3XaLH5HMDrYW8qGuAxb5HNLknJe8OdSdS1vrNQxGk7yGwaWsrseS81lqLDmONiQIAK8GjKHDwcC2fkycUSVBUXdbsPDfeqcLmKNzDXYJAeabsPDfKHMh1iGLknJem0CYJKDytbIH5HaP0UcYdplvAgj4HhcKs7kiGekzipZ6ILh1iGLknJem08OgbqGuAxbzO5KtEsXwrbfmmpvkcyPttyOKHm08uPiaQmutJHMNekziplvAgj4Hkd104H806uG8lgSRXZsLMrcajuYqEOzpRuEQueqnStE18GGGHKhYaQN(6gP0UcYtLIaOXQybL2jqgAEwQ0msiVQON7yGhEqqWqs5bsPfcdyKduiGGS1dmGbuPW8udiiyi5PxZip0yvSGs7eipqkTqyaJCGcbeKTEGbmGkfMNLknJe8iPgwYDmucbb4lDAIcGtLHAAahaWZUqbZYU5777lPgwYDm4tXu3rvuReruf1k7MVVVVVVV)wIFjDGDGTUk6u9cuzhd0caEGblF9cuzhd6jIQOM(qNa9DbLu)SluWSSFcegCZ33333333333xhyhyRRIovVav2XaTaGhyWYxVav2XGEIOkQPp0jqFs9ZUqbt38999999999991b2b26QOt1lqLDmqla4bgS81lqLDmONiQIAK8GjKHDwIiQIALDZ33333333333xhyhyRRIovVav2XaTaGhyWYxVav2XGEIOkQrYdMYffPOVtYFmsusxLDZ3333333hdQU5777Jbv38999DZ333FlXFPttu4tkP(GLP1HcfG9tGWGB((((((((Bj(zxOGPpPK6tsyczyNs7eyjWeXkfJGGcWa3pfvSSFcegCZ33333333333NIPUJQOwjWeXkfJGGcWLDZ33333333333xGzve8trfDZ3333333h1O4wIF2fky6tkP(KeMqg2P0obwcC2fkycg4(POIL9tGWGB((((((((((((um1Duf1kbo7cfmbx2nFFFFFFFFFFFFbMvrWpfv0nFFFFFFFFuJIBj(zxOGPpPK6tsyczyNs7eyjWY06qHcWL9tGWGB((((((((((((um1Duf1kbwMwhkuaUSB((((((((((((cmRIGFkQOB((((((((yq1nFFFFmO6MVVVVaZQi4lPRrr3WGkpvkcGaP0UccdLmKHMNLknJeaaARI8SuPzKGtEac3kaLS0vvur8Of7QmmpIOgYW8qu1YndZjN8uPiGacckyO5j7AyizyEiQA5MH5KtEe9fKH5HOQLBgMto5KhO7latveLrwulkyyw6kzYtNKROvQRvSOvTkYvC6uNROoxjlPGOZINtEOybVIHfKLwepcuzhdWqjd5HiQIA8Sv5zG5He3QjqS0vvur80vv35og6AasXwrbfugMLQlgMNuSvuqbdZdTcnccgs5eOK9kWZihOqabpjuYqEwQ0msWdccgskpqkTqyaJCGcbeKTEGbmqsgzGcQ8avE(qkTqyaJCGcbeKTEGbqERlecqLNpKslegWihOqabzRhyafkfgusGeGuoyqLNpKslegWihOqabzRhyadCbtoEOvOrqWqovjs2RapaiB9adyGxtcW8SuPzKGhj1WsUJHsLDZ333xGzve8L01OOByq1n3CZn3CZn3CZn3CZn3CZnEwQ0msaiHsgYdccgsEqqWqYtXGDTeiEwQ0msaaOTkYZsLMrco5PgsXwrbfmmplvAgj4rsnSK7yOeccWRHDw2nF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r)aDasfOpn8ZxlX3qOhkYHKIVgkco)(mhN8fpZrH(cZ57(9fnH5oGDiOrkP47KJd(GZVzyWzGJIiJ1)(57db)BGJIiJ1HGnFrENbokIm(3xui2lJ7laipuhC(bencqbQQQQcdGkq0iv2Svtyaz8pyhcfdMy82FWYiwmOq5hk)jQzJknIn7evgqg)d2HqXGjgV9hKwEJXaL)e1SrLgPYMDcdiJ)b7qOyWeJ3(dgd5dDadGXWpu(tuZgvAKkB2jmGm(hSdHIbtmE7py)P(WeavpGPNavvvvvvvvfOQQQQQQQQHoeZt9miKavvvvPhNavvvvfi94eOafOafOafOafOafOafOafOafOafOafOafOafOa9ZpFT(MowPWknzLg(oYHGTbMUu8ZDa
    The first trigger was still active when you tried to untrigger the aura in your second trigger. With any trigger enabled this can't work.
    I fixed it for you. Maybe you have to add a caster=="player" in the untrigger.

  3. #3
    Great, thanks TheGlu! It seems I misundunderstood how triggers work.

    I think I'll need to do this in a separate addon though unfortunately. This approach doesn't work with channeled spells, as they don't fire a unique event on end. Castbar addons know when to hide the castbar by checking the cast time of a spell and setting a timer, but I don't think this is possible with WeakAuras.

    Thanks again!

  4. #4
    It's possible: you can run this code in your trigger function when you start a channeled spell:
    Code:
    C_Timer.After(10, function() { my_global_whatever = false }
    Then, obvs, use my_global_whatever as part of your hide function, etc.

    You are right, though, the support that WeakAuras gives for writing simple addons doesn't really add a lot of value compared to building this yourself.

  5. #5
    Interesting. I think I'll take a crack and making it an independent addon, or at the very least patch it into my Gnosis castbars (since I have the 3D model overlayed on my castbar). But if all else fails, I'll stick to WeakAuras.

    Thanks again for the help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •