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_hof_requirements_trigger

empire_creation_hof_requirements_trigger = yes

game/common/scripted_triggers/00_empire_faith_gate_triggers.txt, line 243 (83 lines). No parameters.

empire_creation_hof_requirements_trigger is a scripted trigger in Crusader Kings III, written at line 243 of its file. It takes no parameters: empire_creation_hof_requirements_trigger = yes (or no). The game's script calls it in 2 places, among them empire_faith_gate_panel_visible (gui) and rule_title_creation_imperial_power_projection_title_creation_trigger (scripted trigger). Its body carries 6 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/00_empire_faith_gate_triggers.txt.

The comment above it in the file

Head-of-faith requirements for empire creation.
Three variants: a spiritual head, a temporal head, or no head at all

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 (83 lines of game script)
empire_creation_hof_requirements_trigger = {
	trigger_if = {
		limit = {
			empire_faith_gate_enabled_trigger = yes
			government_subject_to_faith_empire_trigger = yes
			faith_allows_empire_trigger = yes
		}
		# Spiritual head path
		trigger_if = {
			limit = {
				faith = { has_doctrine = doctrine_spiritual_head }
				exists = faith.religious_head
			}
			custom_tooltip = {
				text = empire_faith_gate_hof_spiritual_good_terms
				faith.religious_head = {
					opinion = {
						target = root
						value > 0
					}
				}
			}
			custom_tooltip = {
				text = empire_faith_gate_powerful_vassals_approve
				any_powerful_vassal = {
					percent >= 0.5
					opinion = {
						target = root
						value > 0
					}
				}
			}
		}
		# Temporal head path
		trigger_else_if = {
			limit = {
				faith = { has_doctrine = doctrine_temporal_head }
				exists = faith.religious_head
			}
			OR = {
				custom_tooltip = {
					text = empire_faith_gate_hof_temporal_is_hof
					this = faith.religious_head
				}
				custom_tooltip = {
					text = empire_faith_gate_hof_temporal_good_terms
					faith.religious_head = {
						opinion = {
							target = root
							value > 0
						}
					}
				}
			}
			custom_tooltip = {
				text = empire_faith_gate_powerful_vassals_approve
				any_powerful_vassal = {
					percent >= 0.5
					opinion = {
						target = root
						value > 0
					}
				}
			}
		}
		# Path for faiths with no head, where the exempt rule setting lets them skip approval entirely
		trigger_else = {
			trigger_if = {
				limit = { has_game_rule = empire_faith_gate_on }
				custom_tooltip = {
					text = empire_faith_gate_powerful_vassals_approve
					any_powerful_vassal = {
						percent >= 0.5
						opinion = {
							target = root
							value > 0
						}
					}
				}
			}
		}
	}
}

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

Buttons of the game's windows (scripted GUIs) (1)

  • empire_faith_gate_panel_visible

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?