Scripted effect · The Royal Court files
create_artifact_brooch_effect
create_artifact_brooch_effect = { OWNER = … SMITH = … }game/common/scripted_effects/00_ep1_artifact_creation_effects.txt, line 11282 (157 lines). Parameters: $OWNER$, $SMITH$.
create_artifact_brooch_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 11282 of its file. A call passes 2 parameters: OWNER and SMITH. The game's script calls it in 22 places, among them …: the Jeweler (event ep3_laamp_decision_event.1065), A Laden Caravan (event travel_events_oltner_2.1030) and A Small Grave (event bp3_roaming.0250). 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 (120 lines of game script)
create_artifact_brooch_effect = {
# Get the character the artifact is being made for.
$OWNER$ = { save_scope_as = owner }
$SMITH$ = { save_scope_as = goldsmith }
save_adventurer_location_effect = yes
hidden_effect_new_object = {
# Get artifact quality, wealth, materials, and decorations
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
if = { #Any existing dummy character gets turned into the goldsmith
limit = {
exists = scope:dummy_gender
scope:goldsmith = scope:dummy_gender
}
clear_saved_scope = goldsmith
clear_saved_scope = dummy_gender
}
# Create the artifact
if = {
limit = { exists = scope:adventurer }
create_artifact = {
name = artifact_brooch_name
description = placeholder
visuals = brooch
type = brooch
modifier = artifact_placeholder_modifier
wealth = scope:wealth
quality = scope:quality
save_scope_as = newly_created_artifact
history = {
location = scope:location
actor = scope:adventurer
recipient = root
type = discovered
}
}
}
else_if = {
limit = {
scope:host ?= $OWNER$
scope:activity ?= { has_activity_type = activity_tournament }
}
create_artifact = {
name = artifact_brooch_name
creator = scope:host
description = placeholder # Will be updated in the post-creation effects after decorations are assigned.
visuals = brooch
type = brooch
modifier = artifact_placeholder_modifier
wealth = scope:wealth
quality = scope:quality
history = {
type = prize_created
recipient = scope:host
}
save_scope_as = newly_created_artifact
}
}
else_if = {
limit = {
exists = scope:goldsmith
exists = scope:owner
scope:goldsmith = scope:owner
}
create_artifact = {
name = artifact_brooch_name
description = placeholder # Will be updated in the post-creation effects after decorations are assigned.
visuals = brooch
type = brooch
modifier = artifact_placeholder_modifier
wealth = scope:wealth
quality = scope:quality
history = {
type = created
actor = scope:goldsmith
recipient = scope:goldsmith
location = scope:goldsmith.location
}
save_scope_as = newly_created_artifact
}
}
else_if = {
limit = { exists = scope:goldsmith }
create_artifact = {
name = artifact_brooch_name
creator = scope:goldsmith
description = placeholder # Will be updated in the post-creation effects after decorations are assigned.
visuals = brooch
type = brooch
modifier = artifact_placeholder_modifier
wealth = scope:wealth
quality = scope:quality
save_scope_as = newly_created_artifact
}
}
else = {
create_artifact = {
name = artifact_brooch_name
description = placeholder # Will be updated in the post-creation effects after decorations are assigned.
visuals = brooch
type = brooch
modifier = artifact_placeholder_modifier
wealth = scope:wealth
quality = scope:quality
save_scope_as = newly_created_artifact
history = { type = created_before_history }
}
}
scope:newly_created_artifact = {
# Finish generating decorations and update description
if = {
limit = {
OR = {
has_artifact_feature = brooch_decoration_adornment
has_artifact_feature = brooch_decoration_centerpiece_and_adornment
}
}
set_artifact_feature_group = brooch_adornmentAs written in game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.
The first 120 of its 157 lines; the rest is in game/common/scripted_effects/00_ep1_artifact_creation_effects.txt from line 11282.
Where it is used
Every place in common/, events/ and history/ that calls create_artifact_brooch_effect.
Character interactions (1)
- Bestow Artifact
Events (17)
- …: the Jeweler
ep3_laamp_decision_event.1065 - A Laden Caravan
travel_events_oltner_2.1030 - A Small Grave
bp3_roaming.0250 - A Wandering Merchant
ep3_camp_party.1040 - Eparch: For Services Rendered
ep3_eparch_event.0020 - Happy Birthday!
bp1_yearly.3005
11 more
- Heirloom Offering
emperor_imperial_examination.300 - In Their Footsteps
bp2_yearly.2002 - Inspiration Realized
fund_inspiration.1071 - No More
ep3_story_cycle_harrying.3022 - Passing Like Fire
migration_events.1050 - Rescuer: Success
ep3_contract_event.0575 - Starving Soldiers
ep3_laamps.5015 - The Greater Good
ep3_story_cycle_harrying.3000 - Treasure Map: A Bird in the Hand...
ep3_contract_event.0045 - … Artifact
debug.307 - DEBUG TEST TITLE
debug_story_test_event.0001
Scripted effects inside an event file (3)
- create_coronation_artifact_effect
- create_cultural_artifact_effect
- tribute_mission_1000_set_artifact_reward_effect
Scripted effects (1)
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.