Scripted effect · The Royal Court files
create_artifact_box_medium_effect
create_artifact_box_medium_effect = { CARPENTER = … OWNER = … }game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt, line 1213 (73 lines). Parameters: $CARPENTER$, $OWNER$.
create_artifact_box_medium_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 1213 of its file. A call passes 2 parameters: CARPENTER and OWNER. The game's script calls it in 3 places, among them Inspiration Realized (event fund_inspiration.1061), Bestow Artifact (interaction) and … Ornamental Coffret (event debug.320). Patch 1.20.1.2, from game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.
The comment above it in the file
Medium box
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (73 lines of game script)
create_artifact_box_medium_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
if = { #IF we have set the location we use it for the materials
limit = { exists = scope:location }
scope:location = { add_to_list = artifact_material_sources }
}
# Create the artifact
scope:owner = {
if = {
limit = {
exists = scope:adventurer
}
create_artifact = {
name = artifact_box_medium_name
creator = scope:adventurer
description = placeholder
visuals = medium_box
type = box
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
#decaying = no
history = {
location = scope:location
actor = scope:adventurer
recipient = root
type = discovered
}
}
}
else = {
create_artifact = {
name = artifact_box_medium_name
creator = scope:carpenter
description = placeholder
visuals = medium_box
type = box
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_box_medium_description
# Set grandeur
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_box_medium_effect.
Character interactions (1)
- Bestow Artifact
Events (2)
- Inspiration Realized
fund_inspiration.1061 - … Ornamental Coffret
debug.320
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.