Scripted effect · By God Alone files
create_relic_artifact_effect
create_relic_artifact_effect = { NAME = … TYPE = … VISUAL = … }game/common/scripted_effects/pam_saint_effects.txt, line 290 (15 lines). Parameters: $NAME$, $TYPE$, $VISUAL$.
create_relic_artifact_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 290 of its file. A call passes 3 parameters: NAME, TYPE and VISUAL. The game's script calls it in 1 place, among them create_appropriate_relic_artifact_from_character_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_saint_effects.txt.
What it does
- “pam saint relic … name” Artifact is created
• 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 (15 lines of game script)
create_relic_artifact_effect = {
create_artifact = {
name = pam_saint_relic_$NAME$_name
description = pam_saint_relic_$NAME$_desc
visuals = $VISUAL$
type = $TYPE$
creator = scope:creator
template = pam_saint_relic_template
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
scope:relic_site = { set_variable = pam_relic_drawn_$NAME$ }
}As written in game/common/scripted_effects/pam_saint_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls create_relic_artifact_effect.
Scripted effects (1)
Source: game/common/scripted_effects/pam_saint_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.