CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted trigger

empire_creation_will_gain_contested_legitimacy_trigger

empire_creation_will_gain_contested_legitimacy_trigger = yes

game/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

• 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.

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.

Spotted a mistake on this page?