Scripted effect
christian_saint_bone_creation_effect
christian_saint_bone_creation_effect = yesgame/common/scripted_effects/00_pilgrimage_effects.txt, line 1028 (93 lines). No parameters.
christian_saint_bone_creation_effect is a scripted effect in Crusader Kings III, written at line 1028 of its file. It takes no parameters: christian_saint_bone_creation_effect = yes. The game's script calls it in 2 places, among them …: ... Done That (event pilgrimage.7000) and The Arrival (event pilgrimage.4001). Patch 1.20.1.2, from game/common/scripted_effects/00_pilgrimage_effects.txt.
The comment above it in the file
Create a bone of a random saint in a box
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (93 lines of game script)
christian_saint_bone_creation_effect = {
if = {
limit = {
has_royal_court = yes
OR = {
faith = faith:catholic
faith = faith:orthodox
faith = faith:miaphysitism
faith = faith:armenian_apostolic
faith = faith:nestorian
rite = { rite_has_parameter = christian_syncretic_actor }
}
}
hidden_effect = {
random = {
chance = 10 # 10% base chance
modifier = {
add = 10 # 20% chance for medium
exists = scope:activity
exists = var:pilgrimage_distance
scope:activity.var:pilgrimage_distance = flag:medium_pilgrimage_var
}
modifier = {
add = 20 # 30% chance for long
exists = scope:activity
exists = var:pilgrimage_distance
scope:activity.var:pilgrimage_distance = flag:long_pilgrimage_var
}
modifier = {
add = 30 # 40% chance for very long
exists = scope:activity
exists = var:pilgrimage_distance
scope:activity.var:pilgrimage_distance = flag:very_long_pilgrimage_var
}
modifier = {
add = 10
has_character_flag = mid_pious_reward
}
modifier = {
add = 20
has_character_flag = high_pious_reward
}
modifier = {
add = 30
has_character_flag = perfect_pious_reward
}
modifier = { # half as likely for AI
factor = 0.5
is_ai = yes
}
save_scope_as = saint_bone_owner
hidden_effect_new_object = {
create_artifact = {
name = christian_saint_bone_name
description = christian_saint_bone_description
type = pedestal
visuals = bone
template = saintly_bones_template
modifier = artifact_monthly_piety_1_modifier
save_scope_as = christian_saint_bone_scope
}
scope:christian_saint_bone_scope = {
set_variable = { # required to track usability for template
name = saint_bone_faith
value = scope:saint_bone_owner.faith
}
set_variable = { # required to track usability for template
name = holy_site_var
value = scope:saint_bone_owner.involved_activity.activity_location.county
}
}
scope:activity ?= {
add_activity_log_entry = {
key = pilgrimage_completed_relic_log
score = 75
tags = { complete }
character = scope:host
artifact = scope:christian_saint_bone_scope
show_in_conclusion = yes
# Effects
scope:christian_saint_bone_scope = {
if = {
limit = { artifact_owner != root }
set_owner = root
}
}
}
}
}
}
}
}
}As written in game/common/scripted_effects/00_pilgrimage_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls christian_saint_bone_creation_effect.
Events (2)
- …: ... Done That
pilgrimage.7000 - The Arrival
pilgrimage.4001
Source: game/common/scripted_effects/00_pilgrimage_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.