Its simple tag for PitBull:
[Level:DifficultyColor Name:ClassColor:Truncate(4, nil)] [(AFK or DND):Angle]
Show lcff if enabled. Solved need Truncate(14, nil) for 4 simbols...
You could also swap the order of modifiers, so that Truncate is only applied to Name, and not ClassColor. This would make it easier to maintain in the future if you wanted to remove ClassColor, for example.
[Level:DifficultyColor Name:Truncate(4):ClassColor] [(AFK or DND):Angle]
(You also don't need the second, nil, argument to Truncate.)
Where are you seeing this feature in Cartographer? What you describe is not possible unless you know the exact position of the player or NPC; for players, this would be accomplished by both players running some addon that broadcast their position over the addon comm channel. For NPCs, you would need either a premade database of NPC positions, or you would need to stand on the NPC and mark its position prior to moving away and getting a distance.
None of these functions are in any way related to functions provided by Ace2; they are far beyond the scope of an addon development framework.
Same as player power, but simplified to reflect that there are no rage-using pets.
[~Status ? MP:Hide(MaxMP):PowerColor]
WTB PetOwnerClassColor tag! It's not so bad for the pet frame, because I can just use my own class color... but it gets more complicated for party pets, and even worse for target/focus/ToT units that are pets. It's also, unfortunately, impossible to color pet health bars by their owner's class. :(
Name in gray if dead or offline. Player name in class color, with one-letter druid form and AFK/DND tag. Pet name in owner's class color (guess based on creature type). Mob name in reaction color.
[if Status then
(if IsPlayer then
ClassColor Name DruidForm:Truncate(1, false):Angle (if AFK then
elseif DND then
elseif IsPet then
(if (CreatureType = "Beast") then
Color("abd473") Name Owner:Paren
elseif (CreatureType = "Demon") then
Color("9482ca") Name Owner:Paren
elseif ((CreatureType = "Humanoid") or (Name = "Shadowfiend")) then
Color("ffffff") Name Owner:Paren
elseif Name:Contains("Totem") then
Color("00ddba") Name Owner:Paren
Level in blue-gray for friendly players and pets. Level in difficulty color for hostile players and pets, and all NPCs. Hidden for non-combat pets, critters, and bosses.
Colorized one-letter classification -- red B for bosses, silver R for rares, gold E for elites.
NPC creature type. Hidden for non-combat pets, unspecified (silithids, for example), or unknown (players in the middle of loading screens, for example).
[(if (IsFriend and (IsPlayer or (IsPet and (CreatureType ~= "Non-combat Pet")))) then
elseif (IsPlayer or (IsPet and (CreatureType ~= "Non-combat Pet")) or ((Classification ~= "Boss") and (Creature ~= "Critter") and (CreatureType ~= "Non-combat Pet"))) then
end) (if (Classification = "Boss") then
((if Classification:Contains("Rare") then
end) (if Classification:Contains("Elite") then
end) (if (not IsPlayer) then
CreatureType:Hide("Not specified"):Hide("Non-combat Pet"):Hide("Unknown"):Truncate(2, false)
Show status and max HP (if known) in gray if the unit is dead or offline.
Otherwise, if HP is known, show current HP, and missing HP for friendly units or percent HP for hostile units.
Otherwise, show percent HP.
[if Status then
(Color("aaaaaa") Status (if (not IsPlayerOrPet and HP(known=true)) then
" " MaxHP:Short:Paren
elseif HP(known=true) then
(HP:Short " " (if IsFriend then
If the unit is dead or offline, and uses mana, show the max mana in gray.
If the unit uses mana, show the max mana in medium blue, and current mana (if less than max) in light blue.
If the unit uses rage, show the current rage (if not zero) in light red.
If the unit uses energy or focus, show the current energy/focus (if less than max) in light yellow.
[if IsPlayer then
(if Status then
(if IsMana then
(if IsMana then
(if MP = MaxMP then
MP:Hide(0):Color("00ccff") Color(" || " MaxMP, "006699")
(if IsRage then
(if MP ~= MaxMP then
(if (IsMana and not Status) then
this probably seems really easy to you guys that have these huge complicated scripts.. but im just trying to get a absolute short + percentage.. when this was updated it was changed so you cant copy/paste from each setting anymore >.>
Well, I don't know know what you're trying to get absolute and percent values for, but I'll assume it's health, in which case you want:
Of course, you can spruce it up a bit. If, for example, you only want to show the absolute value if it's "known" (i.e. a player in your group, or a mob with data in MobHealth) you can do:
[if HP(known=true) then HP " " PercentHP:Percent:Paren else PercentHP:Percent end]
...which will show XXX (YY%) if the exact health value is known, otherwise just YY%.