I use following code for Unitname+level. Names will be truncated if they are too long which is the really cool part here.
An example: Whenever my target is tagged by someone, the unitname color will turn into grey and get a (*) after it's name. When target is indicated as a rare mob, it has a pink 'R' added before the actual name.
Over to my problem... My problem here is that whenever a mob is tagged (not by me) and is a RARE, the targetname is completely ignored. So it will be truncated like normally, but shown as: <level> R *. I don't really get what's wrong in the code. Missing parantheses or whatever, or just need to add some small check, just guesses. The code is quite messy, but works for everything else that I want.
Code:
[Name = Name('player') ? '<<<You!>>>' ! ((AFK or DND) ' ' DifficultyColor (Level (Classification = 'Elite' ? '+' ! Classification = 'Rare' ? 'R':Color("EEA2AD") ! Classification = 'Boss' ? '+')) ' ' (((((not IsTapped & Name:Contains(' ') & Length(Name) > 11) ? ClassColor Abbreviate(Name):Substring(1, (Length(Abbreviate(Name)) - 1)):Append(". ") Name:Substring(-15, -1):Replace(" ", " "):Substring(-15, -1):Replace(" ", ""):Truncate(11, nil) ! not IsTapped & Name:Truncate(11, nil):ClassColor))) ((((IsTapped & Name:Truncate(11, nil):Gray) or IsTapped) & Name:Contains(' ') & Length(Name) > 11) ? Gray Abbreviate(Name):Substring(1, (Length(Abbreviate(Name)) - 1)):Append(". ") Name:Substring(-15, -1):Replace(" ", " "):Substring(-15, -1):Replace(" ", ""):Truncate(11, nil))) or ((IsTapped & not IsPlayer & Length(Name)) < 11 ? Name)) [IsTapped & not IsPlayer ? '*':Gray]]
Need help!