Scripted effect · The Royal Court files
create_artifact_icon_effect
create_artifact_icon_effect = { CREATOR = … OWNER = … }game/common/scripted_effects/00_ep1_artifact_creation_effects.txt, line 11082 (103 lines). Parameters: $CREATOR$, $OWNER$.
create_artifact_icon_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 11082 of its file. A call passes 2 parameters: CREATOR and OWNER. The game's script calls it in 1 place, among them Inspiration Realized (event fund_inspiration.1061). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_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 (103 lines of game script)
create_artifact_icon_effect = {
$OWNER$ = { save_scope_as = owner }
$CREATOR$ = { save_scope_as = creator }
hidden_effect_new_object = {
# Get artifact quality, wealth, materials, and decorations
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
random_list = {
50 = {
trigger = { scope:owner = { has_royal_court = yes } }
create_artifact = {
name = artifact_icon_name
creator = scope:creator
description = placeholder # Will be updated in the post-creation effects
visuals = icon_court_large
type = wall_icon_court_large
modifier = artifact_placeholder_modifier
wealth = scope:wealth
quality = scope:quality
save_scope_as = newly_created_artifact
}
}
50 = {
trigger = { scope:owner = { has_royal_court = yes } }
create_artifact = {
name = artifact_icon_name
creator = scope:creator
description = placeholder # Will be updated in the post-creation effects
visuals = icon_court_small
type = wall_icon_court_small
modifier = artifact_placeholder_modifier
wealth = scope:wealth
quality = scope:quality
save_scope_as = newly_created_artifact
}
}
50 = {
trigger = { scope:owner = { has_royal_court = no } }
create_artifact = {
name = artifact_icon_name
creator = scope:creator
description = placeholder # Will be updated in the post-creation effects
visuals = trinket_icon
type = miscellaneous_when_not_court
modifier = artifact_placeholder_modifier
wealth = scope:wealth
quality = scope:quality
save_scope_as = newly_created_artifact
}
}
}
scope:newly_created_artifact = {
# Get decoration type and update description
get_artifact_feature_references_effect = yes
set_artifact_name = artifact_icon_name
set_artifact_description = artifact_icon_description
# Crowns with high rarity get more modifiers
if = {
limit = {
rarity = illustrious
}
add_2_scaled_artifact_modifier_rulership_effect = yes
add_scaled_artifact_modifier_devotion_effect = yes
add_scaled_artifact_modifier_piety_effect = yes
}
else_if = {
limit = {
rarity = famed
}
add_2_scaled_artifact_modifier_rulership_effect = yes
add_scaled_artifact_modifier_devotion_effect = yes
add_scaled_artifact_modifier_piety_effect = yes
}
else_if = {
limit= {
rarity = masterwork
}
add_scaled_artifact_modifier_piety_effect = yes
add_scaled_artifact_modifier_rulership_effect = yes
}
else_if = {
limit= {
rarity = common
}
add_scaled_artifact_modifier_piety_effect = yes
add_scaled_artifact_modifier_rulership_effect = yes
}
set_variable = {
name = quality
value = scope:quality
}
set_variable = {
name = wealth
value = scope:wealth
}
}
}
}As written in game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls create_artifact_icon_effect.
Events (1)
- Inspiration Realized
fund_inspiration.1061
Source: game/common/scripted_effects/00_ep1_artifact_creation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.