If you're using
any_??? = { count >= N }
as a trigger, is there a way to show the player how far they are towards fulfilling the condition?
As a more concrete example, I have the code below in the
allow
block of an intrigue-menu decision, and I would ideally like to have a tooltip that shows early-game players that they are 2/20 (or whatever) towards completing this goal.
Code:
custom_tooltip = {
text = emb_celtic_unity_this_character_owns_at_least_20_provinces_of_any_celtic_culture_in_western_europe_region_tt
any_realm_province = {
region = world_europe_west
culture_group = celtic
count >= 20
}
}
Things I've tried or thought about:
- Removing the
custom_tooltip
:
- The condition works, but the "count" requirement is completely absent from the tooltip. This is worse than useless, because it's misleading.
- Custom localisation (some kind of script that would generate "2/20" for insertion in the
custom_tooltip
):
- I believe this can only be used for triggers/conditions (not effects/commands); and counting the number of provinces that fit a criterion seems to require a command; so I don't think this is possible.
- Exhaustive if-statements (if count == 1 display 1/20; else if count == 2 display 2/20; etc):
- This would definitely work, but it's high-maintenance and fragile and way too much effort for a "would be nice" feature.
- Also, this solution is not generally applicable, ie. it's impractical for a N/100 or N/1000 check.
Essentially, I'm hoping there's some nice way to get the CK2 UI to display a count of objects that exist in a defined scope. There very well may not be, but I thought it was worth checking with the hivemind!