Scripted effect · The Royal Court files
create_artifact_sculpture_religious_effect
create_artifact_sculpture_religious_effect = { CREATOR = … OWNER = … }game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt, line 6734 (128 lines). Parameters: $CREATOR$, $OWNER$.
create_artifact_sculpture_religious_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 6734 of its file. A call passes 2 parameters: CREATOR and OWNER. The game's script calls it in 6 places, among them A True Relic (event pilgrimage.6770), Disbelieve Mandala: All But a Forgery (event disbelieve_mandala_ongoing.0010) and Sacred Claims (event hold_court.8020). Patch 1.20.1.2, from game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.
What it does
get_artifact_quality_effect = yesget_artifact_wealth_effect = yes- scope:owner › 1 of 7 things will happen:
- 14%: “Statue of ⟨High God⟩” Artifact is created
- 14%: “Statue of Mary” Artifact is created
- 14%: “Statue of ⟨Health God⟩” Artifact is created
- 14%: “Statue of ⟨Fertility God⟩” Artifact is created
- 14%: “Statue of ⟨Wealth God⟩” Artifact is created
- 14%: “Statue of ⟨War God⟩” Artifact is created
- 14%: “Statue of ⟨Knowledge God⟩” Artifact is created
scope:newly_created_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 (120 lines of game script)
create_artifact_sculpture_religious_effect = {
$OWNER$ = { save_scope_as = owner }
$CREATOR$ = { save_scope_as = creator }
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
scope:owner = {
random_list = { # To have different statue names
1 = {
trigger = { religion != religion:christianity_religion }
create_artifact = {
name = artifact_sculpture_religious_highgod_name
description = artifact_sculpture_religious_highgod_description
creator = scope:creator
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
1 = {
trigger = { religion = religion:christianity_religion }
create_artifact = {
name = artifact_sculpture_religious_mary_name
description = artifact_sculpture_religious_mary_description
creator = scope:creator
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
scope:newly_created_artifact = {
set_variable = statue_artifact_female_gender
}
}
1 = {
create_artifact = {
name = artifact_sculpture_religious_health_name
description = artifact_sculpture_religious_health_description
creator = scope:creator
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
1 = {
create_artifact = {
name = artifact_sculpture_religious_fertility_name
description = artifact_sculpture_religious_fertility_description
creator = scope:creator
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
scope:newly_created_artifact = {
set_variable = religious_fertility_statue
}
}
1 = {
create_artifact = {
name = artifact_sculpture_religious_wealth_name
description = artifact_sculpture_religious_wealth_description
creator = scope:creator
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
1 = {
create_artifact = {
name = artifact_sculpture_religious_war_name
description = artifact_sculpture_religious_war_description
creator = scope:creator
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
1 = {
create_artifact = {
name = artifact_sculpture_religious_knowledge_name
description = artifact_sculpture_religious_knowledge_description
creator = scope:creator
visuals = statue
type = sculpture
template = religious_statue_template
modifier = artifact_monthly_piety_3_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
}
}
scope:newly_created_artifact = {
set_variable = { # required to track equipability in template (based on dynamic religion)As written in game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.
The first 120 of its 128 lines; the rest is in game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt from line 6734.
Where it is used
Every place in common/, events/ and history/ that calls create_artifact_sculpture_religious_effect.
Events (4)
- A True Relic
pilgrimage.6770 - Disbelieve Mandala: All But a Forgery
disbelieve_mandala_ongoing.0010 - Sacred Claims
hold_court.8020 - Statue of …
debug.347
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.