Scripted effect
create_artifact_heirloom_seal_effect
create_artifact_heirloom_seal_effect = { OWNER = … }game/common/scripted_effects/01_exp1_historical_artifacts_creation_effect.txt, line 4508 (34 lines). Parameters: $OWNER$.
create_artifact_heirloom_seal_effect is a scripted effect in Crusader Kings III, written at line 4508 of its file. A call passes 1 parameter: OWNER. The game's script calls it in 2 places, among them historical_artifacts.0023 (event) and inspiration_adventure_create_artifact_effect (scripted effect). 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- “Heirloom Seal” Artifact is created
scope:newly_created_artifact:add_artifact_title_history = { target = title:h_china date = 1.1.1 }
• 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 (34 lines of game script)
create_artifact_heirloom_seal_effect = {
# Get the character the artifact is being made for.
$OWNER$ = { save_scope_as = owner }
# Get artifact quality and wealth
set_artifact_rarity_illustrious = yes
# Create the artifact
create_artifact = {
name = heirloom_seal.name
description = heirloom_seal.desc
creator = scope:owner
visuals = special_seal
type = seal_of_investiture_court
wealth = scope:wealth
quality = scope:quality
template = general_unique_template
modifier = heirloom_seal_modifier
save_scope_as = newly_created_artifact
}
scope:newly_created_artifact = {
set_variable = { name = historical_unique_artifact value = yes }
set_variable = heirloom_seal
save_scope_as = epic
add_artifact_title_history = {
target = title:h_china
date = 1.1.1 #Actually 221 BCE
}
set_variable = {
name = artifact_succession_title
value = title:h_china
}
}
}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_heirloom_seal_effect.
Events (1)
Scripted effects (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.