1. #1
    Herald of the Titans Galbrei's Avatar
    10+ Year Old Account
    Join Date
    Jul 2010
    Location
    Brazil
    Posts
    2,807

    Weakauras Range/Usable skill

    Hello. I've been trying with little success to make an aura that will activate when I have a target, the target is within Shadowstep range and when Shadowstep is off cooldown. So far I have succeeded to make the aura only pop up when I have a target and SS is off CD, but I can't make it register range. Can anyone help me out here? Thanks a bunch!

  2. #2
    I don't think WA has a any built-in functionality for that. You'd need some custom coding somewhere.

  3. #3
    you need to make a custom trigger:
    Code:
    function()
      if(IsSpellInRange("Shadowstep", "target") == 1) then
        return true
      else
        return false
      end
    end
    and a custom untrigger

    Code:
    function()
      if(IsSpellInRange("Shadowstep", "target") == 1) then
        return false
      else
        return true
      end
    end

  4. #4
    Herald of the Titans Galbrei's Avatar
    10+ Year Old Account
    Join Date
    Jul 2010
    Location
    Brazil
    Posts
    2,807
    Wow, that seems a lot more complex than I thought it would be. I'll try to put that into my shadowstep macro, hope it works. Thanks a lot for the help, really appreciate it!

  5. #5
    you need to add it into the weakaura.

    Add a new trigger to the one your making and set it to a custom trigger, add the two above as the custom trigger and custom untrigger in the text boxes.

  6. #6
    Herald of the Titans Galbrei's Avatar
    10+ Year Old Account
    Join Date
    Jul 2010
    Location
    Brazil
    Posts
    2,807
    I just finished it and your code worked brilliantly! I even managed to make another inverse one that will display the same aura with a different color when I'm in range but SS is on cooldown. No more dieing on fire while spammin SS wondering if it didn't work because I was too far or because it was unavailable!

    Stevie, you're a gentleman and a scholar!

Posting Permissions

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