1. #1

    Cool Dynamically Updating AP WA

    Hey there, I'm trying to make a weakaura that updates as my attack power fluctuates. I've looked at a couple of threads and can't seem to find a way to get one that works. All I want is a text read out of my current attack power. Thank you!

  2. #2
    Legendary!
    10+ Year Old Account
    Join Date
    Jun 2012
    Location
    On the road to my inevitable death.
    Posts
    6,362
    Last edited by SodiumChloride; 2013-04-05 at 08:21 AM.

  3. #3
    That'll work, but if you still want to do it with WA:

    Code:
    d0ZDcaWsfH2fO02uI2hQQ6WsCpsv1Sb6NGkddv50QYTrLhRQ2PsYEP2Tu2VkJcu8xr14ueCjsvzOOOgSidxuoOs4uOGJHsohHSquKLIcDzHLRWIue9uOLbQ65sAwkQAQk1KjLPJCruvUkH6zKkxNOnQO03a0MjjBNe(OIkFfvvMgk13vu8qsv6ZamAcgVsQtsQIBPi5AKuNNeTsqETIu)wQ2S82iNrnJAEBu7vZalk3XAY4L0334xwPo3owtgvjBF61BWWWbDPlDPlb2)fWlvYM)s5ZNFj9FjXThTGOYFAM7ZedyMmdSOmgtYWbDPlDPlncsoAxQKDqrtZ4ia86TTYSWifRjJFzL6C7ynjotRqHXqr0iJ04baqm82OSg5Y2JmtgjLzHXVSsDoJYAKlefqsWmz8lRuNlNuMfgRuHKvJFzL6C5cpTW4xwPoNrzluenYyrsDJFzL6CgvjBF61BWWWbDPlDPlncsoAxIgY4GIM2bDqh0bDqh0bDqgfIcijK3ZIrH6dJ83OquajbJ8m(fI)0gdfrJmgkIgvnkELE25l27f6DI5mdh)4JrtgvnkCbsJcv8k1gN5PrcEw1abYdED6Mapw6ydViGlTQPyd0ytYThpaaIr1RyzuiEaeip7sGQvRte7L8ebplGQ1T0QMITiJpnJly2iyVO5TXrhm82iNeKEEBYKXpyPw92y91aaggzeU5eZNroji982iJWnNy(mtMmzYKXQrwWYgwGWkYOcVIfBE8mzd
    Edit: Just for laughs, in case you want to recreate this by hand, it works pretty simply.

    Under the display tab

    - Display Text: %c
    - Update Custom Text On: Trigger Update
    - Custom Function:
    Code:
    function()
        local ap, _,_ = UnitAttackPower("player")
        return ap
    end
    We only care about the first value returned from UnitAttackPower, so we snag it and return it.

    Under the trigger tab:

    - Type: Custom
    - Event Type: Status
    - Check On: Event(s)
    - Event(s): UNIT_ATTACK POWER (fired when your attack power changes)
    Last edited by piefayth; 2013-04-05 at 07:21 AM.

  4. #4
    Deleted
    For short:
    Code:
    function()
        return (UnitAttackPower("player"))
    end

  5. #5
    Neat, thanks. Never really was sure how to handle multiple returned values.

  6. #6

Posting Permissions

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