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

Scripted trigger

ai_only_check_stronger_same_faith_empire_exists_trigger

ai_only_check_stronger_same_faith_empire_exists_trigger = yes

game/common/scripted_triggers/00_empire_faith_gate_triggers.txt, line 169 (10 lines). No parameters.

ai_only_check_stronger_same_faith_empire_exists_trigger is a scripted trigger in Crusader Kings III, written at line 169 of its file. It takes no parameters: ai_only_check_stronger_same_faith_empire_exists_trigger = yes (or no). The game's script calls it in 1 place, among them rule_title_creation_imperial_power_projection_title_creation_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_empire_faith_gate_triggers.txt.

What it checks

  • Is played by the AI
  • Highest held Title is less than Empire Rank
  • Any in global list:
    • Highest held Title is at least Empire Rank
    • Their faith is the same as yours
    • current_military_strength > root.current_military_strength

• 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 (10 lines of game script)
ai_only_check_stronger_same_faith_empire_exists_trigger = {
	is_ai = yes
	highest_held_title_tier < tier_empire
	any_in_global_list = {
		variable = efg_empire_holders
		highest_held_title_tier >= tier_empire
		faith = root.faith
		current_military_strength > root.current_military_strength
	}
}

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