Scripted trigger
can_create_temporal_head_of_faith_title_trigger
can_create_temporal_head_of_faith_title_trigger = yesgame/common/scripted_triggers/00_religious_triggers.txt, line 1478 (34 lines). No parameters.
can_create_temporal_head_of_faith_title_trigger is a scripted trigger in Crusader Kings III, written at line 1478 of its file. It takes no parameters: can_create_temporal_head_of_faith_title_trigger = yes (or no). The game's script calls it in 8 places, among them You can Create the … Head of Faith (important action), faith_creation.0001 (event) and faith_creation.0011 (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.
The comment above it in the file
Head of Faith
What it checks
num_realm_holy_sites_faithful_holders = { COUNT = holy_sites_to_create_temporal_head_of_faith CHARACTER = root }root.piety_level >= high_piety_level- You › If you are the Head of Faith: You are the Head of Faith
• 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 (34 lines of game script)
can_create_temporal_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_temporal_head_of_faith
CHARACTER = root
}
root.piety_level >= high_piety_level
trigger_if = {
limit = { root = { top_liege != this } }
custom_description = {
text = cannot_create_hof_title_at_or_above_liege_tier
root.liege.primary_title.tier > tier_duchy
}
}
root = {
trigger_if = {
limit = { faith.religious_head ?= this }
NOT = {
custom_tooltip = {
text = empire_faith_gate_hof_temporal_is_hof
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_temporal_head_of_faith_title_trigger.
Important actions (1)
- You can Create the … Head of Faith
Events (6)
- faith_creation.0001
- faith_creation.0011
- Heirs of the Prophet: Muhakkima
head_of_faith.0021 - Heirs of the Prophet: Shia
head_of_faith.0011 - Heirs of the Prophet: Sunni
head_of_faith.0001 - Heirs of the Prophet: Zandaqa
head_of_faith.0031
Scripted triggers (1)
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.