Quick question: What can I use now for the old Trunc command? I used it for names since otherwise it goes over the unit frame size if the npc name is too long. I used to use [Name:Trunc(12orwhatevernumberIwanthere)]
I had the same problem with Trunc, spelling it out worked for me...at least I don't get an error anymore.
From the Wiki:
Truncate(value, number, ellipses=true)
Truncate value to the length specified by number, adding ellipses by default
["Hello":Truncate(3)] => "Hel..."; ["Hello":Truncate(3, nil)] => "Hel"
Used on target frame:
[if PercentHP > 95 then
Classification Level SmartRace (if IsPlayer then Class end):ClassColor DruidForm:Paren
else
FractionalHP:Short
end]
"Classification Level SmartRace" etc. is all clumped together, adding " " or ' ' between the tags throws Syntax errors. Adding ( ) or [ ] around them removes them on save.
[if (HasAura("Arcane Intellect") or HasAura("Arcane Brilliance")) then "Int":Color("00aaff")]
[if (HasAura("Soulstone") or HasAura("Soulstone Resurrection")) then "SS":Fuschia]
[if (HasAura("Arcane Intellect") or HasAura("Arcane Brilliance")) then "Int":Color("00aaff")]
[if (HasAura("Soulstone") or HasAura("Soulstone Resurrection")) then "SS":Fuschia]
This seems to work, Thanks.
But on another issue it seems it doesnt update sometimes,
Example: I buffed me and my party member with Arcane brilliance, it it said "Int" on both our frames as supposed. but then I i dispelled my buff and it still said "Int", now when i got none of those buffs. Maybe 2mins later the "Int" dissappeared on my frame, and I rebuffed myself with Arcane Intellect and it took some minutes to it to show "int" on my frame.
This seems to me some kind of updating bug.
I've seen one or two other posts about the player frame not updating. One said it updates when you mouse over the frame so try that. It's not a fix but might help for now.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
1. [Offline:AFKDND:Angle]
2. [CastDelay:Round] [CastEndTime:Sub([CurrentTime]):Round:HideLess(0)]
Didn't find all in the docu postet on the wiki
THX
Alex
[CurMP] [MaxMP] [CurHP] [MaxHP] :(
[MP] [MaxMP] [HP] [MaxHP]
should work
look in the wiki (i found also solutions for my problem there)
Thx a lot, it works fine.
But now Colors are bugged :) i do my line like this:
[IsMouseOver ? MP:Color(666666)) [IseMouseOver ? MaxMP:Color(999999)]
Do you got a link of the wiki page plz ?
Basically, will show missing health (classcolored), and upon mouseover absolute values for health/power (classcolored)
Player:
Health: [MissingHP:Hide(0):ClassColor] [IsMouseOver ? HP] [IsMouseOver ? MaxHP]
Mana: [IsMouseOver?MP:ClassColor] [IsMouseOver?MaxMP:ClassColor]
Target:
Health: [IsFriend ? MissingHP:Hide(0):ClassColor] [IsMouseOver ? HP:ClassColor] [IsMouseOver ? MaxHP:ClassColor]
Mana: [IsMouseOver?MP:ClassColor] [IsMouseOver?MaxMP:classColor]
--------------------
Quick question: What can I use now for the old Trunc command? I used it for names since otherwise it goes over the unit frame size if the npc name is too long. I used to use [Name:Trunc(12orwhatevernumberIwanthere)]
Thanks!
(Now to work on my cowtip tags!)
[DruidForm:Paren] [DEAD:Angle] [DND:Angle] [AFK:Angle]
What I am wanting it to do is say => AFK (1:45)
What it is showing is => ""
The [DND:Angle] is working correctly.
I haven't been able to test [DEAD:Angle] yet, as I've not died.
The [DruidForm:Paren] is only displaying 2 of the druid forms (Bear, Cat). I only have 4 (Bear, Aquatic, Cat, Travel).
From the Wiki:
[IsMouseOver ? HP:Gray] [IsMouseOver ? MaxHP] [IsFriend ? MissingHP:Hide(0):HPColor] [IsEnemy ? PercentHP:ClassColor]
But ...:Color(999999)... don't work :/
use Color("999999") instead
Don't work :/
[IsMouseOver ? HP:Color(999999)] or [IsMouseOver ? HP:Color("999999")] not working.
Try this:
[ShortDruidForm(value=true,unit="player") (AFK or DND:Angle)]
or
[DruidForm(unit="player") (AFK or DND:Angle)]
Or tell me where u gonna use the syntax - wich addon?
[if PercentHP > 95 then
Classification Level SmartRace (if IsPlayer then Class end):ClassColor DruidForm:Paren
else
FractionalHP:Short
end]
"Classification Level SmartRace" etc. is all clumped together, adding " " or ' ' between the tags throws Syntax errors. Adding ( ) or [ ] around them removes them on save.
[HasAura(Arcane Intellect) ? Text(Int):Color(00aaff)] [HasAura("Arcane Brilliance") ? Text(Int):Color(00aaff)] [HasAura("Soulstone") | HasAura("Soulstone Resurrection") ? Text(SS):Fuchsia]
Try this:
This seems to work, Thanks.
But on another issue it seems it doesnt update sometimes,
Example: I buffed me and my party member with Arcane brilliance, it it said "Int" on both our frames as supposed. but then I i dispelled my buff and it still said "Int", now when i got none of those buffs. Maybe 2mins later the "Int" dissappeared on my frame, and I rebuffed myself with Arcane Intellect and it took some minutes to it to show "int" on my frame.
This seems to me some kind of updating bug.
edit: the frames i meant was Pitbull raidframes