Scripted effect · The Royal Court files
create_artifact_wall_shield_effect
create_artifact_wall_shield_effect = { CREATOR = … OWNER = … TARGET = … }game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt, line 2175 (62 lines). Parameters: $CREATOR$, $OWNER$, $TARGET$.
create_artifact_wall_shield_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 2175 of its file. A call passes 3 parameters: CREATOR, OWNER and TARGET. The game's script calls it in 5 places, among them Armorer: Defensive Gifts (event ep2_locale_events.2011), Inspiration Realized (event fund_inspiration.1021) and The Smith's Clangor (event travel_events_oltner_2.1110). 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 (62 lines of game script)
create_artifact_wall_shield_effect = {
$OWNER$ = { save_scope_as = owner }
$TARGET$ = { save_scope_as = target }
$CREATOR$ = { save_scope_as = smith }
hidden_effect_new_object = {
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
if = {
limit = {
scope:smith = { artifact_use_mediterranean_building_visuals_trigger = yes }
}
scope:owner = {
create_artifact = {
name = artifact_wall_shield_name
creator = scope:smith
description = artifact_wall_shield_description
visuals = wall_shield_medi
visuals_source = scope:target
type = wall_shield_special
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
#decaying = no
}
}
}
else = {
scope:owner = {
create_artifact = {
name = artifact_wall_shield_name
creator = scope:smith
description = artifact_wall_shield_description
visuals = wall_shield
visuals_source = scope:target
type = wall_shield
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
#decaying = no
}
}
}
scope:newly_created_artifact = {
add_scaled_artifact_modifier_grandeur_small_effect = yes
add_scaled_artifact_modifier_dynasty_prestige_effect = yes
if = {
limit = {
OR = {
rarity = famed
rarity = illustrious
}
}
add_scaled_artifact_modifier_minor_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_wall_shield_effect.
Character interactions (1)
- Bestow Artifact
Events (4)
- Armorer: Defensive Gifts
ep2_locale_events.2011 - Inspiration Realized
fund_inspiration.1021 - The Smith's Clangor
travel_events_oltner_2.1110 - … Shield
debug.327
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.