Scripted effect
create_artifact_papal_tiara_effect
create_artifact_papal_tiara_effect = { OWNER = … }game/common/scripted_effects/01_exp1_historical_artifacts_creation_effect.txt, line 3927 (42 lines). Parameters: $OWNER$.
create_artifact_papal_tiara_effect is a scripted effect in Crusader Kings III, written at line 3927 of its file. A call passes 1 parameter: OWNER. The game's script calls it in 1 place, among them historical_artifacts.0023 (event). Patch 1.20.1.2, from game/common/scripted_effects/01_exp1_historical_artifacts_creation_effect.txt.
What it does
set_artifact_rarity_illustrious = yes- “Papal Tiara” Artifact is created
scope:newly_created_artifact:add_artifact_title_history = { target = title:k_papal_state date = 816.6.12 }add_artifact_modifier = artifact_monthly_learning_lifestyle_xp_2_modifier
• 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 (42 lines of game script)
create_artifact_papal_tiara_effect = {
# Get the character the artifact is being made for.
$OWNER$ = { save_scope_as = owner }
set_artifact_rarity_illustrious = yes
# Create the artifact
create_artifact = {
name = papal_tiara_name
description = papal_tiara_description
template = papal_tiara_template
type = helmet
visuals = pope_tiara
wealth = scope:wealth
quality = scope:quality
history = {
type = created
date = 800.1.1
recipient = character:7862 #Leo III - fictitious date, probably somewhere between the 8th and 9th centuries
location = province:2575 #Rome
}
modifier = artifact_monthly_piety_4_modifier
save_scope_as = newly_created_artifact
decaying = no
}
scope:newly_created_artifact = {
set_variable = { name = historical_unique_artifact value = yes }
set_variable = {
name = artifact_succession_title
value = title:k_papal_state
}
set_variable = {
name = pope_hat
value = yes
}
add_artifact_title_history = {
target = title:k_papal_state
date = 816.6.12
}
add_artifact_modifier = artifact_monthly_learning_lifestyle_xp_2_modifier
}
}As written in game/common/scripted_effects/01_exp1_historical_artifacts_creation_effect.txt.
Where it is used
Every place in common/, events/ and history/ that calls create_artifact_papal_tiara_effect.
Events (1)
Source: game/common/scripted_effects/01_exp1_historical_artifacts_creation_effect.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.