Scripted effect · Silk and Silver files
create_curio_artifact_effect
create_curio_artifact_effect = { CREATOR = … OWNER = … }game/common/scripted_effects/gdp_domicile_artifact_creation_scripted_effects.txt, line 31 (52 lines). Parameters: $CREATOR$, $OWNER$.
create_curio_artifact_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 31 of its file. A call passes 2 parameters: CREATOR and OWNER. The game's script calls it in 9 places, among them Solicit Patronage (decision), Spending Spree (decision) and …: Nexus of Knowledge (event gdp_merchant_luxury_contract.1621). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/gdp_domicile_artifact_creation_scripted_effects.txt.
What it does
generate_trinket_effect = { … }If
a check the game hides
Then
clear_saved_scope = qualityclear_saved_scope = curio_rolled_quality
hidden_effect_new_object = { … }- You gain a Curiosity Domicile Artifact
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (52 lines of game script)
create_curio_artifact_effect = {
# Without a caller-set quality the trinket pool includes the bad tier, so roll common to rare here
hidden_effect = {
if = {
limit = {
NOT = { exists = scope:quality }
}
random_list = {
55 = {
save_scope_value_as = {
name = quality
value = 25
}
}
35 = {
save_scope_value_as = {
name = quality
value = 50
}
}
10 = {
save_scope_value_as = {
name = quality
value = 70
}
}
}
save_scope_value_as = {
name = curio_rolled_quality
value = yes
}
}
}
generate_trinket_effect = {
TRINKET_RECEIVER = $OWNER$
TRINKET_GIVER = $CREATOR$
GRAB_ALL_TRINKETS = yes
HISTORY_TYPE = given
}
if = {
limit = { exists = scope:curio_rolled_quality }
clear_saved_scope = quality
clear_saved_scope = curio_rolled_quality
}
hidden_effect_new_object = {
scope:new_trinket ?= {
reforge_artifact = { type = curio }
domicile_curio_artifact_modifiers_effect = yes
}
}
custom_tooltip = create_curio_artifact
}As written in game/common/scripted_effects/gdp_domicile_artifact_creation_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls create_curio_artifact_effect.
Decisions (2)
Character interactions (1)
- Create Domicile Artifact
Events (5)
- …: Nexus of Knowledge
gdp_merchant_luxury_contract.1621 - …: Nexus of Knowledge
gdp_merchant_luxury_contract.1651 - Come Bearing Gifts
yearly_republic.1018 - Craft Artifact: Success
craft_artifact_scheme.1000 - Trinkets and Fantastic Beasts
carnival.1025
Scripted effects inside an event file (1)
- lc_curio_fallback_artifact_effect
Source: game/common/scripted_effects/gdp_domicile_artifact_creation_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.