1. #1
    Legendary! llDemonll's Avatar
    15+ Year Old Account
    Join Date
    Apr 2008
    Location
    Washington
    Posts
    6,582

    PitBull Logic Question (DogTags)

    So I have my raid frames set up at the moment to display a . for each buff I have on people (White for Fort, Blue for Spirit, Purple for Shadow).

    Code:
    [Outline][(if HasAura("Power Word: Fortitude") or HasAura("Prayer of Fortitude") then
    ".":White
    end) (if HasAura("Divine Spirit") or HasAura("Prayer of Spirit") then
    ".":Color("008aff")
    end) (if HasAura("Shadow Protection") or HasAura("Prayer of Shadow Protection") or HasAura("Shadow Resistance Aura") then
    ".":Color("8300fd")
    end)]
    What I tried to do last night to make thing cleaner was change it so that it would only display those periods if the person did not have the buff on them.

    Code:
    (if not HasAura(...) then ... end)
    But it seemed like it only worked when I right clicked my buffs and rebuffed myself with the 30-min version. I didn't get a chance to test it out extensively and now the servers are down, so I'm just wondering if my logic on this is correct, or if I'm doing something wrong.
    "I'm glad you play better than you read/post on forums." -Ninety
    BF3 Profile | Steam Profile | Assemble a Computer in 9.75 Steps! | Video Rendering Done Right

  2. #2
    Miss Doctor Lady Bear Sunshine's Avatar
    15+ Year Old Account
    Join Date
    Mar 2009
    Location
    San Francisco
    Posts
    15,651

    Re: PitBull Logic Question (DogTags)

    Quote Originally Posted by llDemonll
    Code:
    (if not HasAura(...) then ... end)
    Gotta negate the whole clause, and it's somewhat unintuitive --

    (if not HasAura("Power Word: Fortitude") and not HasAura("Prayer of Fortitude") then ...)

    You only want it to show up if they have neither, so the "and" is key.

    (Alternatively, you could likely just put (if not (HasAura(..) or HasAura(...)) ...), using an extra set of parentheses. What I have above just distributes the "not" to both parts of the clause.)

  3. #3
    Legendary! llDemonll's Avatar
    15+ Year Old Account
    Join Date
    Apr 2008
    Location
    Washington
    Posts
    6,582

    Re: PitBull Logic Question (DogTags)

    gah, the and was what i wasnt changing, i had it as or still

    thanks much =D
    "I'm glad you play better than you read/post on forums." -Ninety
    BF3 Profile | Steam Profile | Assemble a Computer in 9.75 Steps! | Video Rendering Done Right

Posting Permissions

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