Scripted effect
give_or_make_temporal_head_of_faith_title
give_or_make_temporal_head_of_faith_title = { RITE = … TITLE = … }game/common/scripted_effects/00_major_decisions_scripted_effects_2.txt, line 158 (29 lines). Parameters: $RITE$, $TITLE$.
give_or_make_temporal_head_of_faith_title is a scripted effect in Crusader Kings III, written at line 158 of its file. A call passes 2 parameters: RITE and TITLE. The game's script calls it in 2 places, among them appoint_a_righteous_caliph_scripted_effect (scripted effect) and claim_the_imamate_scripted_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_major_decisions_scripted_effects_2.txt.
What it does
If
a check the game hides
Then
Else if
rite = $RITE$$TITLE$ = { is_title_created = no }
Then
$TITLE$ = { … }make_temporal_head_of_faith_title = { TITLE = $TITLE$ }
• 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 (29 lines of game script)
give_or_make_temporal_head_of_faith_title = {
if = {
limit = { NOT = { exists = scope:hof_assigned } }
if = {
limit = { has_title = $TITLE$ }
make_temporal_head_of_faith_title = { TITLE = $TITLE$ }
}
else_if = {
limit = {
rite = $RITE$
$TITLE$ = { is_title_created = no }
}
# Transfer the title.
create_title_and_vassal_change = {
type = created
save_scope_as = change
add_claim_on_loss = no
}
$TITLE$ = {
change_title_holder = {
holder = scope:founder
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
make_temporal_head_of_faith_title = { TITLE = $TITLE$ }
}
}
}As written in game/common/scripted_effects/00_major_decisions_scripted_effects_2.txt.
Where it is used
Every place in common/, events/ and history/ that calls give_or_make_temporal_head_of_faith_title.
Scripted effects (2)
Source: game/common/scripted_effects/00_major_decisions_scripted_effects_2.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.