Scripted effect · The Royal Court files
create_artifact_chest_effect
create_artifact_chest_effect = { CARPENTER = … OWNER = … }game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt, line 8 (48 lines). Parameters: $CARPENTER$, $OWNER$.
create_artifact_chest_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 8 of its file. A call passes 2 parameters: CARPENTER and OWNER. The game's script calls it in 3 places, among them Heirloom Offering (event emperor_imperial_examination.300), Inspiration Realized (event fund_inspiration.1061) and … Artifact (event debug.313). Patch 1.20.1.2, from game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (48 lines of game script)
create_artifact_chest_effect = {
# Get the character the artifact is being made for.
$OWNER$ = { save_scope_as = owner }
$CARPENTER$ = { save_scope_as = carpenter }
hidden_effect_new_object = {
# Get artifact quality, wealth, and materials
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
scope:owner = {
# Create the artifact
create_artifact = {
name = artifact_chest_name
creator = scope:carpenter
description = placeholder # Will be regenerated in the post-creation effects
visuals = chest
type = chest
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
#decaying = no
}
}
scope:newly_created_artifact = {
get_artifact_feature_references_effect = yes
set_artifact_description = artifact_chest_description
set_variable = {
name = big_chest
value = yes
}
add_scaled_artifact_modifier_grandeur_small_effect = yes
add_scaled_artifact_modifier_piety_effect = yes
if = {
limit = {
OR = {
rarity = famed
rarity = illustrious
}
}
add_scaled_artifact_modifier_dynasty_prestige_effect = yes
}
remove_artifact_modifier = artifact_placeholder_modifier
}
}
}As written in game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls create_artifact_chest_effect.
Events (3)
- Heirloom Offering
emperor_imperial_examination.300 - Inspiration Realized
fund_inspiration.1061 - … Artifact
debug.313
Source: game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.