Scripted effect
force_create_head_of_faith_title_effect
force_create_head_of_faith_title_effect = yesgame/common/scripted_effects/00_religion_effects.txt, line 279 (58 lines). No parameters.
force_create_head_of_faith_title_effect is a scripted effect in Crusader Kings III, written at line 279 of its file. It takes no parameters: force_create_head_of_faith_title_effect = yes. The game's script calls it in 1 place, among them Establish a … (decision). Patch 1.20.1.2, from game/common/scripted_effects/00_religion_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (58 lines of game script)
force_create_head_of_faith_title_effect = { # Has no cost, should be done manually on a per-case basis
custom_description = {
text = create_temporal_head_of_faith
subject = root
object = scope:faith
# No scope:rite: creation events only check mainline rite from rite-scoped flows
# Temporal HoF
if = {
limit = { faith = { has_doctrine_parameter = temporal_head_of_faith } }
if = {
limit = {
faith = { NOT = { exists = religious_head_title } }
}
trigger_event = faith_creation.0001 # Creates new dynamic title
}
else = { trigger_event = faith_creation.0011 } # Re-uses existing title
}
# Spiritual HoF
else_if = {
limit = { faith = { has_doctrine_parameter = spiritual_head_of_faith } }
if = {
limit = {
faith = { NOT = { exists = religious_head_title } }
}
trigger_event = faith_creation.0002 # Creates new dynamic title
}
else = { trigger_event = faith_creation.0012 } # Re-uses existing title
}
}
# Send an informative message to all players about the new HoF
hidden_effect = {
save_scope_as = reformer
faith = {
save_scope_as = faith
change_fervor = {
value = major_fervor_gain
desc = fervor_gain_recreated_hof
}
}
every_player = {
if = {
limit = { faith = scope:faith }
trigger_event = {
id = faith_creation.1010
days = 1
}
}
else = {
trigger_event = {
id = faith_creation.1011
days = 1
}
}
}
}
}As written in game/common/scripted_effects/00_religion_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls force_create_head_of_faith_title_effect.
Decisions (1)
Source: game/common/scripted_effects/00_religion_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.