Scripted effect · The Royal Court files
give_destroyed_artifact_piety
give_destroyed_artifact_piety = yesgame/common/scripted_effects/00_ep1_artifact_effects.txt, line 612 (58 lines). No parameters.
give_destroyed_artifact_piety is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 612 of its file. It takes no parameters: give_destroyed_artifact_piety = yes. The game's script calls it in 1 place, among them destroy_artifact_aniconist_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_artifact_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)
give_destroyed_artifact_piety = {
add_piety = {
# Base value
value = 5
# Add the artifact's quality
if = {
limit = { exists = scope:artifact.var:quality }
add = scope:artifact.var:quality
}
# If none can be found, add its wealth
else_if = {
limit = { exists = scope:artifact.var:wealth }
add = scope:artifact.var:wealth
}
# Artifact has no quality or wealth (typical for court artifacts), add something based on rarity
else_if = {
limit = {
scope:artifact = { rarity = illustrious }
}
add = {
value = 20
}
}
else_if = {
limit = {
scope:artifact = { rarity = famed }
}
add = {
value = 12
}
}
else_if = {
limit = {
scope:artifact = { rarity = masterwork }
}
add = {
value = 8
}
}
else = {
add = {
value = 4
}
}
# Boost the value up to something meaningful
multiply = 20
# Holy Relics are way cooler to burn, double the final value
if = {
limit = {
scope:artifact = { is_holy_relic = yes }
}
multiply = {
value = 2
desc = aniconist_destroying_relic
}
}
}
}As written in game/common/scripted_effects/00_ep1_artifact_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls give_destroyed_artifact_piety.
Scripted effects (1)
Source: game/common/scripted_effects/00_ep1_artifact_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.