Scripted effect
create_artifact_chinese_caligraphy_effect
create_artifact_chinese_caligraphy_effect = { OWNER = … }game/common/scripted_effects/01_exp1_historical_artifacts_creation_effect.txt, line 1239 (29 lines). Parameters: $OWNER$.
create_artifact_chinese_caligraphy_effect is a scripted effect in Crusader Kings III, written at line 1239 of its file. A call passes 1 parameter: OWNER. The game's script calls it in 1 place, among them 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_masterwork = yes- “Chinese Calligraphy” 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 (29 lines of game script)
create_artifact_chinese_caligraphy_effect = {
# Get the character the artifact is being made for.
$OWNER$ = { save_scope_as = owner }
# Not really used, but if we don't set the scopes we get errors in the feature selection
set_artifact_rarity_masterwork = yes
# Create the artifact
create_artifact = {
type = pedestal
visuals = scroll
wealth = scope:wealth
template = general_unique_template
quality = scope:quality
history = {
type = created_before_history
}
modifier = caligraphy_modifier
save_scope_as = newly_created_artifact
name = artifact_chinese_caligraphy_name
description = artifact_chinese_caligraphy_description
}
scope:newly_created_artifact = {
set_variable = { name = historical_unique_artifact value = yes }
set_variable = chinese_caligraphy
add_2_scaled_artifact_modifier_rulership_effect = yes
save_scope_as = epic
}
}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_chinese_caligraphy_effect.
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.