Scripted effect
set_up_dynamic_temporal_hof_title_effect
set_up_dynamic_temporal_hof_title_effect = { NEW_HOLDER = … }game/common/scripted_effects/00_religion_effects.txt, line 347 (35 lines). Parameters: $NEW_HOLDER$.
set_up_dynamic_temporal_hof_title_effect is a scripted effect in Crusader Kings III, written at line 347 of its file. A call passes 1 parameter: NEW_HOLDER. The game's script calls it in 6 places, among them Azariqa Rebellion (casus belli), faith_creation.0001 (event) and on_faith_created (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_religion_effects.txt.
The comment above it in the file
Dynamic HoF title creation
What it does
create_dynamic_title = { tier = duchy name = REL_HEAD_TITLE_NAME adj = REL_HEAD_TITLE_ADJ }scope:new_title:set_destroy_if_invalid_heir = yesset_no_automatic_claims = yesset_definitive_form = yesset_always_follows_primary_heir = yes- Gains the … Title ($NEW HOLDER$)
- Their faith:
set_religious_head_title = scope:new_title
- If does NOT have the Same Faith Law: Adopts the Same Faith Law
scope:new_title:generate_coa = religious_titleadd_title_law = temporal_head_of_faith_succession_law
• 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 (35 lines of game script)
set_up_dynamic_temporal_hof_title_effect = {
faith = { save_scope_as = my_faith }
create_dynamic_title = {
tier = duchy
name = REL_HEAD_TITLE_NAME
adj = REL_HEAD_TITLE_ADJ
}
create_title_and_vassal_change = {
type = created
save_scope_as = change
add_claim_on_loss = no
}
scope:new_title = {
set_destroy_if_invalid_heir = yes
set_no_automatic_claims = yes
set_definitive_form = yes
set_always_follows_primary_heir = yes
change_title_holder = {
holder = $NEW_HOLDER$
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
faith = { set_religious_head_title = scope:new_title }
if = {
limit = {
NOT = { has_realm_law = same_faith_succession_law }
}
add_realm_law_skip_effects = same_faith_succession_law
}
scope:new_title = {
generate_coa = religious_title
add_title_law = temporal_head_of_faith_succession_law
}
}As written in game/common/scripted_effects/00_religion_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls set_up_dynamic_temporal_hof_title_effect.
Casus belli (1)
Events (1)
On actions (the game's own hooks) (1)
- on_faith_created
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.