In the CHARACTER_TOOLTIP loc string, replace GetHighestTitles with some custom loc like the below
Code:
defined_text = {
name = GetHightestTitlesShorter
use_first_valid = yes
text = {
trigger = {
NOT = {
any_demesne_title = {
tier = PREV
count >= 5 # Or whatever
}
}
}
localisation_key = GetHightestTitlesActual # "[This.GetHightestTitles]"
}
text = {
trigger = {
any_demesne_title = {
tier = PREV
count >= 5 # Or whatever
}
}
localisation_key = GetHightestTitlesSummary # "[This.GetTitle] of [This.PrimaryTitle.GetName] and other titles", or perhaps "[This.GetTitle] of [This.PrimaryTitle.GetName], of [<some other title, if scopeable in loc>.GetName], of [<third title>.GetName], etc., etc."
}
}
There are a couple of places where it would break down, however:
- Anyone with a primary title with a custom ruler title (e.g. the Principality of Antioch) would in the second case be e.g. "Prince of Antioch, of Sicily, of Jerusalem, etc., etc.", which might be weird.
- Rel heads would always get weird if they hold a higher title, e.g. "Bob, Fylkir of Britannia" instead of "Fylkir Bob, Emperor of Britannia". Might be possible to work around with a special rel head version of the custom loc, however.
- Though very rare (I think vanilla only uses it for Temujin), any ruler with a special character title would possibly break in a similar manner to the above, and such titles persist after (landed) title loss unless cleared in script, meaning a "has_landed_title = <title>" wouldn't work (and Temujin would break even when holding titles because nomadic titles are dynamic and he'd fail "has_landed_title = e_mongol_empire" as a result).