Scripted trigger
empire_creation_will_gain_contested_legitimacy_trigger
empire_creation_will_gain_contested_legitimacy_trigger = yesgame/common/scripted_triggers/00_empire_faith_gate_triggers.txt, line 81 (44 lines). No parameters.
empire_creation_will_gain_contested_legitimacy_trigger is a scripted trigger in Crusader Kings III, written at line 81 of its file. It takes no parameters: empire_creation_will_gain_contested_legitimacy_trigger = yes (or no). The game's script calls it in 1 place, among them empire_creation_will_gain_contested_legitimacy_count_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_empire_faith_gate_triggers.txt.
The comment above it in the file
Title-window check: creating scope:landed_title would apply contested legitimacy
What it checks
empire_faith_gate_enabled_trigger = yes- scope:landed_title: Title tier exactly Empire
- Highest held Title is less than Empire Rank
- Is an Independent Ruler
government_subject_to_faith_empire_trigger = yesfaith_allows_empire_trigger = yesIf a check the game hides passes: the same again (8 lines)
None of these
- Any in global list:
- Is an Independent Ruler
- Highest held Title is at least Hegemony Rank
- Their faith is the same as yours
- Any in global list:
- In global list (at least 1):
- Is an Independent Ruler
- Highest held Title is exactly Empire Rank
government_subject_to_faith_empire_trigger = yesfaith_allows_empire_trigger = yes- Their faith is the same as yours
Otherwise
- Independent ruler (at least 1):
- Highest held Title is exactly Empire Rank
government_subject_to_faith_empire_trigger = yesfaith_allows_empire_trigger = yes- Their faith is the same as yours
• 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 (44 lines of game script)
empire_creation_will_gain_contested_legitimacy_trigger = {
empire_faith_gate_enabled_trigger = yes
scope:landed_title = { tier = tier_empire }
highest_held_title_tier < tier_empire
is_independent_ruler = yes
government_subject_to_faith_empire_trigger = yes
faith_allows_empire_trigger = yes
trigger_if = {
limit = { has_global_variable_list = efg_empire_holders }
NOT = {
any_in_global_list = {
variable = efg_empire_holders
is_independent_ruler = yes
highest_held_title_tier >= tier_hegemony
faith = root.faith
}
}
any_in_global_list = {
variable = efg_empire_holders
NOT = { this = root }
is_independent_ruler = yes
highest_held_title_tier = tier_empire
government_subject_to_faith_empire_trigger = yes
faith_allows_empire_trigger = yes
faith = root.faith
count >= 1
}
}
trigger_else = {
NOT = {
any_independent_ruler = {
highest_held_title_tier >= tier_hegemony
faith = root.faith
}
}
any_independent_ruler = {
highest_held_title_tier = tier_empire
government_subject_to_faith_empire_trigger = yes
faith_allows_empire_trigger = yes
faith = root.faith
count >= 1
}
}
}As written in game/common/scripted_triggers/00_empire_faith_gate_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls empire_creation_will_gain_contested_legitimacy_trigger.
Scripted triggers (1)
Source: game/common/scripted_triggers/00_empire_faith_gate_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.