Scripted effect · By God Alone files
pam_create_holy_myron_artifact_effect
pam_create_holy_myron_artifact_effect = { CREATOR = … OWNER = … RARITY = … }game/common/scripted_effects/pam_effects.txt, line 14411 (58 lines). Parameters: $CREATOR$, $OWNER$, $RARITY$.
pam_create_holy_myron_artifact_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 14411 of its file. A call passes 3 parameters: CREATOR, OWNER and RARITY. The game's script calls it in 2 places, among them Gift the Holy Myron (interaction) and The Consecration of the Myron (event pam_holy_myron.0100). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
OWNER - character receiving the ampulla (artifact is created in their scope) CREATOR - the cleric who gathered the balsams and consecrated the oil RARITY - common | masterwork | famed | illustrious
What it does
get_artifact_quality_effect = yesget_artifact_wealth_effect = yes$OWNER$ = { … }scope:newly_created_artifact:If
rarity = common
Then
add_artifact_modifier = pam_holy_myron_vessel_modifier
Else if
rarity = masterwork
Then
add_artifact_modifier = pam_holy_myron_vessel_modifier
Else if
rarity = famed
Then
add_artifact_modifier = pam_holy_myron_vessel_potent_modifier
Otherwise
add_artifact_modifier = pam_holy_myron_vessel_potent_modifier
set_artifact_description = pam_holy_myron_artifact_desc_charged_$RARITY$remove_artifact_modifier = artifact_placeholder_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 (58 lines of game script)
pam_create_holy_myron_artifact_effect = {
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
$OWNER$ = {
create_artifact = {
name = pam_holy_myron_artifact_name
description = pam_holy_myron_artifact_desc_$RARITY$
creator = $CREATOR$
visuals = flask
type = miscellaneous
template = pam_holy_myron_template
rarity = $RARITY$
modifier = artifact_placeholder_modifier
decaying = no
save_scope_as = newly_created_artifact
wealth = scope:wealth
quality = scope:quality
}
}
scope:newly_created_artifact = {
save_scope_as = pam_myron_vessel
if = {
limit = { rarity = common }
set_variable = {
name = pam_holy_myron_charges
value = 1
}
add_artifact_modifier = pam_holy_myron_vessel_modifier
}
else_if = {
limit = { rarity = masterwork }
set_variable = {
name = pam_holy_myron_charges
value = 2
}
add_artifact_modifier = pam_holy_myron_vessel_modifier
}
else_if = {
limit = { rarity = famed }
set_variable = {
name = pam_holy_myron_charges
value = 3
}
add_artifact_modifier = pam_holy_myron_vessel_potent_modifier
}
else = {
set_variable = {
name = pam_holy_myron_charges
value = 4
}
add_artifact_modifier = pam_holy_myron_vessel_potent_modifier
}
# We set the description again once the charge variable exists, reading it through scope:pam_myron_vessel
set_artifact_description = pam_holy_myron_artifact_desc_charged_$RARITY$
remove_artifact_modifier = artifact_placeholder_modifier
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_create_holy_myron_artifact_effect.
Character interactions (1)
Events (1)
- The Consecration of the Myron
pam_holy_myron.0100
Source: game/common/scripted_effects/pam_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.