Correct; as I said, the Alpha tag applies to the entire text. If you want another one to flash separately, you'll need to make a second text for it.
And no, you can't set up a tooltip to show when you mouseover the DogTag string.
Big thanks first, Ellipsis.
Can you give an example? What I'd like to see is for "Lifebloom" and other HoTs to flash as long as it's active (probably will need to set timers < 6 sec as I don't want Regrowth and Rejuvenation to flash the entire time, just <6 sec), but I do want "Mark of the Wild" and "Thorns" to stay static.
New question: Is it possible then to detect Lifebloom stacks?
I'm sure Ellipsis will correct me but in case I'm right...
Since Alpha applies to the entire text you'll need 2 separate texts. One for the flashing condition, one for the nonflashing.
eg.
Text 1:
[Alpha((CurrentTime * 3):Sin:Abs)] [HasAura("Lifebloom")?(AuraDuration("Lifebloom") < 6)? "LB":Color("33aacc")]
Text 2:
[HasAura("Lifebloom")?(AuraDuration("Lifebloom") >= 6)? "LB":Color("33aacc")]
Put both texts on top of each other. When Lifebloom has < 6s left it should flash (Text1) otherwise it will be solid (Text2).
And yes you can detect how many Lifebloom stacks. Eg:
[(NumAura("Lifebloom") < 3)? "NEED MORE LIFEBLOOM!"]
Here is a Tag I made for my raid and party frames name Tag. What it will do is put an innervate icon in front of the name of any player who is bellow 20% mana, is a druid or a priest, and does not already have innervate. I find it quite handy :)
[(if (IsMana and (PercentMP < 20) and ~HasAura("Innervate") and ((Class = "Druid") or (Class = "Priest"))) then
"Interface\Icons\Spell_Nature_Lightning":Icon(12)
end) Name]
One thing that would be awesome if there was someone to check the cooldown of my own innervate and if its not up then don't display the icons. Something like the following:
if GetCooldown("Innervate") = 0
It would probably have to take into account the global cooldown though. Otherwise shit would probably flash every time you cast a spell.
[if not PvP then
(if (HasAura("Alchemist's Stone") and (MissingMP >= 3800) then
"Mana Pot!"
end) (if (not HasAura("Alchemist's Stone")) and (MissingMP >= 2200) then
"Mana Pot!"
end)
end]
Try that, All I did was each sub if statement in its own parenthesis. Oh I also got rid of the unit="player" stuff since I assume you will only be using it on your own frame which means its not really needed :)
I'm sure Ellipsis will correct me but in case I'm right...
Since Alpha applies to the entire text you'll need 2 separate texts. One for the flashing condition, one for the nonflashing.
eg.
Text 1:
[Alpha((CurrentTime * 3):Sin:Abs)] [HasAura("Lifebloom")?(AuraDuration("Lifebloom") < 6)? "LB":Color("33aacc")]
Text 2:
[HasAura("Lifebloom")?(AuraDuration("Lifebloom") >= 6)? "LB":Color("33aacc")]
Put both texts on top of each other. When Lifebloom has < 6s left it should flash (Text1) otherwise it will be solid (Text2).
And yes you can detect how many Lifebloom stacks. Eg:
[(NumAura("Lifebloom") < 3)? "NEED MORE LIFEBLOOM!"]
Thanks, Pqee, it helped a bit. But I'm still having trouble getting the right buff to flash at the right time.
Other question: I use this syntax to show the name of player / target and I also apply it for the members of my group but unsuccessfully.
[Name][AFK or DND(unit="player"):Angle]
for player: OK.
[Name][AFK or DND(unit="target"):Angle]
for target: OK.
[Name][AFK or DND(unit="party"):Angle]
for party members: NOK :(
There is a particular syntax as the members of the group?
You don't need to specify the unit if you're using the tag on that unit's frame. The party members are party1, party2, etc. so unit="party" won't do anything anyway. Just remove the part in () in all three tags and you will be fine.
I was able to get Lifebloom to show stacks:
L(1), L(2), L(3)
Would still like to know how to let it flash when duration is <3sec
Or, is it possible to add the count down?
Like:
L(1:6) L(1:5) L(1:4)...
Are you doing this in Pibtull or Cowtip?
You can't have flashing and non flashing text on the text field. To get it to flash when < 3s you need 2 separate text entries. So in Pitbull you need to add 2 new texts fields called say 'LB Flash' and 'LB Static' and in Cowtip you'd have to put them on separate lines.
Then for LB Flash you use the tag you have above but only the part for < 3s.
For LB Static you use the other half of the tag for the static portion.
I'm a druid too so if I get a chance to login today I'll test it and post some tags.
Ok guess there's no maintenance today. I tested it and these 2 tag sequences work. Shows L(#) static if 3s or more left, and flashes if under 3s left.
One problem though is at least in Pitbull it won't let you put 2 text fields in the same location.
Set first to say topleft. Set 2nd to topleft and the first is reverted back to center of the frame.
You can't have flashing and non flashing text on the text field. To get it to flash when < 3s you need 2 separate text entries. So in Pitbull you need to add 2 new texts fields called say 'LB Flash' and 'LB Static' and in Cowtip you'd have to put them on separate lines.
Then for LB Flash you use the tag you have above but only the part for < 3s.
For LB Static you use the other half of the tag for the static portion.
I'm a druid too so if I get a chance to login today I'll test it and post some tags.
Using PitBull, focusing on party and raid frames ATM.
I have all the strings inside a text field called "Buffs". When I tried to add another field called "HoTs", nothing happened. Am I suppose to gain another text field just like "buffs" to enter custom strings?
So, the steps become:
Party (or Raid)->Texts->Add Text field
1. Under Buffs: all my static auras (Mark, Gift, Thorns, etc), as well as HoTs duration >6sec, >3 for Lifebloom
2. Under HoTs: all my HoTs, with alpha manipulation (HoTs flashes if < 6sec, Lb flashes if < 3sec)
Using PitBull, focusing on party and raid frames ATM.
I have all the strings inside a text field called "Buffs". When I tried to add another field called "HoTs", nothing happened. Am I suppose to gain another text field just like "buffs" to enter custom strings?
So, the steps become:
Party (or Raid)->Texts->Add Text field
1. Under Buffs: all my static auras (Mark, Gift, Thorns, etc), as well as HoTs duration >6sec, >3 for Lifebloom
2. Under HoTs: all my HoTs, with alpha manipulation (HoTs flashes if < 6sec, Lb flashes if < 3sec)
Sound right?
Almost but won't work because under HoTs you have both flashing and nonflashing. You need a 3rd text field and to split your flashing/nonflashing tags up. Something like this:
1. Buffs: ....
2. Static HoTs: all your HoTs when >= 6sec, Lb >= 3s
3. Flashing HoTs: all your HoTs when < 6s, Lb < 3s (Alpha tag goes in this field only)
Almost but won't work because under HoTs you have both flashing and nonflashing. You need a 3rd text field and to split your flashing/nonflashing tags up. Something like this:
1. Buffs: ....
2. Static HoTs: all your HoTs when >= 6sec, Lb >= 3s
3. Flashing HoTs: all your HoTs when < 6s, Lb < 3s (Alpha tag goes in this field only)
I will test the code when I get home today. But, couldn't I combine 1+2 since they're both static?
Or, will it not work since (3) must come into effect and will not be able to modify strings in other fields?
Can I request PitBull to allow string manipulation to be in the same location? It seems odd to see Lifebloom > 3sec on the Upper-Right-Corner, then see Lifebloom<3sec flash at the Upper-Left-Corner (or any other location)...
You don't need to specify the unit if you're using the tag on that unit's frame. The party members are party1, party2, etc. so unit="party" won't do anything anyway. Just remove the part in () in all three tags and you will be fine.
OK, I will test as soon as possible, thanks a lot :)
I'm not sure I am grasping the newline syntax/behavior. It seems DogTag will ignore all \n (even consecutive) if there is no actual text to input, preceding them. The behavior is ... strange.
["\n\n\n\n\n MaxHP"] = nothing and 11804
[" \n\n\n\n\n MaxHP"] = nothing and 11804
[".\n\n\n\n\n MaxHP"] = . plus 5 new lines then 11804
["\n\n\n\n\n" HP] = nothing and 11804
["\n\n" " " "\n\n\n" HP] = nothing and 11804
... however ...
["\n\n\n\n\n FractionalHP] = 5 new lines then 11804/11804
or
["\n\n\n\n\n" HP "/" MaxHP] = 5 new lines then 11804/11804
I don't understand?
I am trying to use \n to offset text vertically. Or request text offsets like the Aura icon offsets. :D That would rock. ;)
I was hoping to get some help making a tag that will do the following.
For my target's health I'd like it to show a percent for every mob/player *unless* that player is me, or I am in a group with that player, in which case I'd like it to show their max HP when they are full, and their missing HP when they are not.
I had a working tag for this in an older version of dogtag by using SureHP and never installing mob health which would just give me a percent for everyone but me and group members. However it seems like mobhealth is integrated into dogtag now? I'm always getting a value for HP using various tags.
Is there a check that will see if the HP of a unit is known to me?
Any help would be appreciated.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Big thanks first, Ellipsis.
Can you give an example? What I'd like to see is for "Lifebloom" and other HoTs to flash as long as it's active (probably will need to set timers < 6 sec as I don't want Regrowth and Rejuvenation to flash the entire time, just <6 sec), but I do want "Mark of the Wild" and "Thorns" to stay static.
New question: Is it possible then to detect Lifebloom stacks?
Another big thanks in advance. :)
Since Alpha applies to the entire text you'll need 2 separate texts. One for the flashing condition, one for the nonflashing.
eg.
Text 1:
[Alpha((CurrentTime * 3):Sin:Abs)] [HasAura("Lifebloom")?(AuraDuration("Lifebloom") < 6)? "LB":Color("33aacc")]
Text 2:
[HasAura("Lifebloom")?(AuraDuration("Lifebloom") >= 6)? "LB":Color("33aacc")]
Put both texts on top of each other. When Lifebloom has < 6s left it should flash (Text1) otherwise it will be solid (Text2).
And yes you can detect how many Lifebloom stacks. Eg:
[(NumAura("Lifebloom") < 3)? "NEED MORE LIFEBLOOM!"]
One thing that would be awesome if there was someone to check the cooldown of my own innervate and if its not up then don't display the icons. Something like the following:
It would probably have to take into account the global cooldown though. Otherwise shit would probably flash every time you cast a spell.
Also, I suggest putting parenthesis around it like this
Try that, All I did was each sub if statement in its own parenthesis. Oh I also got rid of the unit="player" stuff since I assume you will only be using it on your own frame which means its not really needed :)
Thanks, Pqee, it helped a bit. But I'm still having trouble getting the right buff to flash at the right time.
Here's my code:
The goal: buffs: static. HoTs: flash when <6sec
How do I determine when to use square brackets [] or parentheses ()?
It seemed that if I use the wrong bracket, I'd get a syntax error.
Again, thanks in advance. :)
And I was only able to get the buff to flash all the time, not when time<3sec.
With:
I was able to get Lifebloom to show stacks:
L(1), L(2), L(3)
Would still like to know how to let it flash when duration is <3sec
Or, is it possible to add the count down?
Like:
L(1:6) L(1:5) L(1:4)...
Other question: I use this syntax to show the name of player / target and I also apply it for the members of my group but unsuccessfully.
for player: OK.
for target: OK.
for party members: NOK :(
There is a particular syntax as the members of the group?
You don't need to specify the unit if you're using the tag on that unit's frame. The party members are party1, party2, etc. so unit="party" won't do anything anyway. Just remove the part in () in all three tags and you will be fine.
Are you doing this in Pibtull or Cowtip?
You can't have flashing and non flashing text on the text field. To get it to flash when < 3s you need 2 separate text entries. So in Pitbull you need to add 2 new texts fields called say 'LB Flash' and 'LB Static' and in Cowtip you'd have to put them on separate lines.
Then for LB Flash you use the tag you have above but only the part for < 3s.
For LB Static you use the other half of the tag for the static portion.
I'm a druid too so if I get a chance to login today I'll test it and post some tags.
Ok guess there's no maintenance today. I tested it and these 2 tag sequences work. Shows L(#) static if 3s or more left, and flashes if under 3s left.
One problem though is at least in Pitbull it won't let you put 2 text fields in the same location.
Set first to say topleft. Set 2nd to topleft and the first is reverted back to center of the frame.
Using PitBull, focusing on party and raid frames ATM.
I have all the strings inside a text field called "Buffs". When I tried to add another field called "HoTs", nothing happened. Am I suppose to gain another text field just like "buffs" to enter custom strings?
So, the steps become:
Party (or Raid)->Texts->Add Text field
1. Under Buffs: all my static auras (Mark, Gift, Thorns, etc), as well as HoTs duration >6sec, >3 for Lifebloom
2. Under HoTs: all my HoTs, with alpha manipulation (HoTs flashes if < 6sec, Lb flashes if < 3sec)
Sound right?
Almost but won't work because under HoTs you have both flashing and nonflashing. You need a 3rd text field and to split your flashing/nonflashing tags up. Something like this:
1. Buffs: ....
2. Static HoTs: all your HoTs when >= 6sec, Lb >= 3s
3. Flashing HoTs: all your HoTs when < 6s, Lb < 3s (Alpha tag goes in this field only)
I will test the code when I get home today. But, couldn't I combine 1+2 since they're both static?
Or, will it not work since (3) must come into effect and will not be able to modify strings in other fields?
Can I request PitBull to allow string manipulation to be in the same location? It seems odd to see Lifebloom > 3sec on the Upper-Right-Corner, then see Lifebloom<3sec flash at the Upper-Left-Corner (or any other location)...
OK, I will test as soon as possible, thanks a lot :)
["\n\n\n\n\n MaxHP"] = nothing and 11804
[" \n\n\n\n\n MaxHP"] = nothing and 11804
[".\n\n\n\n\n MaxHP"] = . plus 5 new lines then 11804
["\n\n\n\n\n" HP] = nothing and 11804
["\n\n" " " "\n\n\n" HP] = nothing and 11804
... however ...
["\n\n\n\n\n FractionalHP] = 5 new lines then 11804/11804
or
["\n\n\n\n\n" HP "/" MaxHP] = 5 new lines then 11804/11804
I don't understand?
I am trying to use \n to offset text vertically. Or request text offsets like the Aura icon offsets. :D That would rock. ;)
Have my own health and power hidden until mouseover if they're at 100%, and only show remaining HP/MP when they're below 100%, same with power.
Thanks for any help.
For my target's health I'd like it to show a percent for every mob/player *unless* that player is me, or I am in a group with that player, in which case I'd like it to show their max HP when they are full, and their missing HP when they are not.
I had a working tag for this in an older version of dogtag by using SureHP and never installing mob health which would just give me a percent for everyone but me and group members. However it seems like mobhealth is integrated into dogtag now? I'm always getting a value for HP using various tags.
Is there a check that will see if the HP of a unit is known to me?
Any help would be appreciated.