Scripted effect
finalize_starting_relic_effect
finalize_starting_relic_effect = yesgame/common/scripted_effects/02_starting_holy_site_relics_effects.txt, line 1566 (36 lines). No parameters.
finalize_starting_relic_effect is a scripted effect in Crusader Kings III, written at line 1566 of its file. It takes no parameters: finalize_starting_relic_effect = yes. The game's script calls it in 10 places, among them create_starting_generic_buddhist_relic_effect (scripted effect), create_starting_generic_christian_relic_effect (scripted effect) and create_starting_generic_germanic_relic_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/02_starting_holy_site_relics_effects.txt.
The comment above it in the file
Shared finalizer: modifiers + enshrinement
What it does
If
- scope:relic_site: Holy site artifact count at least 3
Then
destroy_artifact = scope:newly_created_artifact
Otherwise
scope:newly_created_artifact:add_scaled_artifact_modifier_piety_effect = yesadd_scaled_artifact_modifier_grandeur_small_effect = yesIf
One of these
rarity = famedor
rarity = illustrious
Then
Otherwise
add_artifact_modifier = artifact_monthly_prestige_penalty_modifier
scope:newly_created_artifact:set_holy_site_owner = { target = scope:relic_site generate_history = no }equip_artifact_to_owner = yes
• 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 (36 lines of game script)
finalize_starting_relic_effect = {
# A holy site only has the three holy_relic_* slots, and a relic past that would sit unenshrined and assert on equip
if = {
limit = { scope:relic_site = { holy_site_artifact_count >= 3 } }
destroy_artifact = scope:newly_created_artifact
}
else = {
scope:newly_created_artifact = {
scope:relic_owner = { save_scope_as = owner } # Required for the 'add_scaled_artifact_' scripted effects
add_scaled_artifact_modifier_piety_effect = yes
add_scaled_artifact_modifier_grandeur_small_effect = yes
if = {
limit = {
OR = {
rarity = famed
rarity = illustrious
}
}
add_2_scaled_artifact_modifier_devotion_effect = yes
}
else = {
add_scaled_artifact_modifier_devotion_effect = yes
}
add_artifact_modifier = artifact_monthly_prestige_penalty_modifier # overwrite default creation modifier
}
scope:newly_created_artifact = {
# Enshrine without history (setting owner & equipping = enshrining), skipping 'can_enshrine_artifact' rules)
set_holy_site_owner = {
target = scope:relic_site
generate_history = no
}
equip_artifact_to_owner = yes
}
}
}As written in game/common/scripted_effects/02_starting_holy_site_relics_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls finalize_starting_relic_effect.
Scripted effects (10)
Source: game/common/scripted_effects/02_starting_holy_site_relics_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.