1. #1
    Deleted

    Question [WA2] Incooperating missing health, and more, in a custom trigger

    Hey.
    I am looking for help regarding a custom trigger in WeakAuras. I want the trigger to hide the display under 4 circumstances:
    1. Player has target (done)
    2. Player is casting
    3. Player is wounded
    4. Player is in combat

    I'm halfway there, I feel. Here is what I already have (can't post links, sorry):
    Custom trigger
    function()
    local connector_hide = false

    if(UnitExists("target")) then
    connector_hide = 1
    end;

    return connector_hide
    end


    Custom untrigger
    function()
    local connector_hide = false

    if(UnitExists("target")) then
    connector_hide = 1
    end;

    return connector_hide
    end



    I already got the hide part to work, and I already got the has target part to work.

    Now I am just missing the other 3 circumstances, and can't for the life of me find what their "functions" are called: for example, 'player has target' becoming UnitExists("target").

    Any help is much appriciated.

  2. #2
    is casting: wowwiki.wikia.com/wiki/API_UnitCastingInfo

    is wounded: wowwiki.wikia.com/wiki/API_UnitHealthMax and wowwiki.wikia.com/wiki/API_UnitHealth

    is in combat: wowwiki.wikia.com/wiki/API_UnitAffectingCombat

Posting Permissions

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