Scripted trigger · All Under Heaven files
has_highest_merit_rank
has_highest_merit_rank = yesgame/common/scripted_triggers/10_tgp_triggers.txt, line 952 (7 lines). No parameters.
has_highest_merit_rank is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 952 of its file. It takes no parameters: has_highest_merit_rank = yes (or no). The game's script calls it in 1 place, among them A Meritorious Path (event tgp_china_career.0010). Patch 1.20.1.2, from game/common/scripted_triggers/10_tgp_triggers.txt.
What it checks
- If government is Celestial:
merit_level = 9
- Otherwise:
merit_level = 5
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (7 lines of game script)
has_highest_merit_rank = {
trigger_if = {
limit = { government_has_flag = government_is_celestial }
merit_level = 9
}
trigger_else = { merit_level = 5 }
}As written in game/common/scripted_triggers/10_tgp_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls has_highest_merit_rank.
Events (1)
- A Meritorious Path
tgp_china_career.0010
Source: game/common/scripted_triggers/10_tgp_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.