Scripted effect · The Royal Court files
destroy_artifact_aniconist_effect
destroy_artifact_aniconist_effect = { ARTIFACT = … DESTROYER = … GIVE_GOLD = … PIETY_BY_DEFAULT = … }game/common/scripted_effects/00_ep1_artifact_effects.txt, line 516 (95 lines). Parameters: $ARTIFACT$, $DESTROYER$, $GIVE_GOLD$, $PIETY_BY_DEFAULT$.
destroy_artifact_aniconist_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 516 of its file. A call passes 4 parameters: ARTIFACT, DESTROYER, GIVE_GOLD and PIETY_BY_DEFAULT. The game's script calls it in 2 places, among them Destroy Artifact (interaction) and Grave Goods (event funeral.1010). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_artifact_effects.txt.
The comment above it in the file
Destroy Artifact effect DESTROYER = Character destroying the artifact ARTIFACT = The artifact to destroy
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (95 lines of game script)
destroy_artifact_aniconist_effect = {
$ARTIFACT$ = {
save_temporary_scope_as = artifact
}
$DESTROYER$ = {
if = {
limit = {
OR = {
$DESTROYER$.rite = { rite_has_parameter = destroying_artifacts_is_pious }
$PIETY_BY_DEFAULT$ = yes
}
}
give_destroyed_artifact_piety = yes
}
if = {
limit = {
has_personal_tenet_flag = tenet_aniconism_destruction_fulfillment
}
change_spiritual_fulfillment = minor_spiritual_fulfillment_value
}
if = {
limit = {
$GIVE_GOLD$ = yes
}
add_gold = {
if = {
limit = {
scope:artifact = { rarity = illustrious }
}
add = {
value = 25
}
}
else_if = {
limit = {
scope:artifact = { rarity = famed }
}
add = {
value = 15
}
}
else_if = {
limit = {
scope:artifact = { rarity = masterwork }
}
add = {
value = 8
}
}
else = {
add = {
value = 4
}
}
# Boost the value up to something meaningful
multiply = {
value = 10
}
# multiply by durability percentage
multiply = {
add = scope:artifact.artifact_durability
divide = scope:artifact.artifact_max_durability
divide = 2
add = 0.5
}
#Nerf it to bits for LAAMPs
if = {
limit = {
$DESTROYER$ = { has_government = landless_adventurer_government }
}
multiply = {
value = 0.1
}
}
if = {
limit = {
exists = scope:artifact.var:ai_to_ai_destroy_in_sieges # Trash artifact
}
max = {
value = $DESTROYER$.tiny_gold_value
multiply = 0.5
}
}
round = yes
min = 1
}
}
destroy_owned_artifact = scope:artifact
}
}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 destroy_artifact_aniconist_effect.
Character interactions (1)
Events (1)
- Grave Goods
funeral.1010
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.