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_count_trigger

empire_creation_will_gain_contested_legitimacy_count_trigger = { COUNT = … }

game/common/scripted_triggers/00_empire_faith_gate_triggers.txt, line 128 (25 lines). Parameters: $COUNT$.

empire_creation_will_gain_contested_legitimacy_count_trigger is a scripted trigger in Crusader Kings III, written at line 128 of its file. A call passes 1 parameter: COUNT. The game's script calls it in 3 places, among them empire_creation_will_gain_contested_legitimacy_tier_1_trigger (scripted trigger), empire_creation_will_gain_contested_legitimacy_tier_2_trigger (scripted trigger) and empire_creation_will_gain_contested_legitimacy_tier_3_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

Shared contested-legitimacy check for title creation.
Parameter COUNT = minimum number of other same-faith independent empire holders.

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 (25 lines of game script)
empire_creation_will_gain_contested_legitimacy_count_trigger = {
	empire_creation_will_gain_contested_legitimacy_trigger = yes
	trigger_if = {
		limit = { has_global_variable_list = efg_empire_holders }
		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 >= $COUNT$
		}
	}
	trigger_else = {
		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 >= $COUNT$
		}
	}
}

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_count_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?