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

Scripted trigger

can_create_spiritual_head_of_faith_title_trigger

can_create_spiritual_head_of_faith_title_trigger = yes

game/common/scripted_triggers/00_religious_triggers.txt, line 1513 (40 lines). No parameters.

can_create_spiritual_head_of_faith_title_trigger is a scripted trigger in Crusader Kings III, written at line 1513 of its file. It takes no parameters: can_create_spiritual_head_of_faith_title_trigger = yes (or no). The game's script calls it in 4 places, among them You can Create the … Head of Faith (important action), faith_creation.0002 (event) and faith_creation.0012 (event). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/00_religious_triggers.txt.

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 (40 lines of game script)
can_create_spiritual_head_of_faith_title_trigger = {
	trigger_if = {
		limit = {
			this = faith:christian_faith
		}
		custom_tooltip = {
			text = pam_great_schism_decision_taken
			has_global_variable = pam_great_schism_decision_taken
		}
	}
	num_realm_holy_sites_faithful_holders = {
		COUNT = holy_sites_to_create_spiritual_head_of_faith
		CHARACTER = root
	}
	# Non-mainline rites need one more level of devotion than the mainline rite
	trigger_if = {
		limit = {
			root = { NOT = { rite = faith.main_rite } }
		}
		root.piety_level >= high_piety_level
	}
	trigger_else = {
		root.piety_level >= medium_piety_level
	}
	trigger_if = {
		limit = { has_doctrine_parameter = block_from_create_hof_parameter }
		NOT = { has_doctrine_parameter = block_from_create_hof_parameter }
	}
	root = {
		trigger_if = {
			limit = { faith.religious_head ?= this }
			NOT = {
				custom_tooltip = {
					text = can_create_spiritual_hof_title_trigger_is_hof_tt
					faith.religious_head ?= this
				}
			}
		}
	}
}

As written in game/common/scripted_triggers/00_religious_triggers.txt.

Where it is used

Every place in common/, events/ and history/ that calls can_create_spiritual_head_of_faith_title_trigger.

Important actions (1)

  • You can Create the … Head of Faith

Source: game/common/scripted_triggers/00_religious_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?