Scripted effect · By God Alone files
pam_holy_myron_chrismation_effect
pam_holy_myron_chrismation_effect = { PARENT = … }game/common/scripted_effects/pam_effects.txt, line 14544 (82 lines). Parameters: $PARENT$.
pam_holy_myron_chrismation_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 14544 of its file. A call passes 1 parameter: PARENT. The game's script calls it in 2 places, among them on_birth_father (on action) and on_birth_mother (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
$PARENT$ is the devoted parent, and the child is sealed once by whichever parent we reach first
What it does
If
- scope:child: Does not have “holy myron chrismated” (a variable the game's script sets)
Then
If
$PARENT$ = { pam_has_usable_holy_myron_trigger = yes is_available = yes exists = cp:councillor_court_chaplain }
Then
$PARENT$ = { … }
Otherwise
$PARENT$ = { … }
• 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 (82 lines of game script)
pam_holy_myron_chrismation_effect = {
if = {
limit = {
scope:child = {
is_alive = yes
NOT = { has_variable = pam_holy_myron_chrismated }
}
}
# Twins are one ceremony, and later paths cover the sibling through scope:pam_myron_twin
scope:child = {
set_variable = pam_holy_myron_chrismated
if = {
limit = { has_trait = twin }
random_sibling = {
limit = {
is_twin_of = scope:child
is_alive = yes
NOT = { has_variable = pam_holy_myron_chrismated }
}
save_scope_as = pam_myron_twin
}
}
}
scope:pam_myron_twin ?= {
set_variable = pam_holy_myron_chrismated
}
if = {
limit = {
$PARENT$ = {
pam_has_usable_holy_myron_trigger = yes
is_available = yes
exists = cp:councillor_court_chaplain
}
}
$PARENT$ = {
trigger_event = {
id = pam_holy_myron.0300
days = 3
}
}
}
else = {
$PARENT$ = {
send_interface_toast = {
type = event_generic_good
title = pam_holy_myron_chrismation_toast
left_icon = scope:child
right_icon = $PARENT$
scope:child = {
if = {
limit = {
NOR = {
has_character_modifier = pam_chrismated_child_modifier
has_character_modifier = pam_myron_chrismated_child_modifier
}
}
add_character_modifier = {
modifier = pam_chrismated_child_modifier
years = 16
}
}
}
scope:pam_myron_twin ?= {
if = {
limit = {
is_alive = yes
NOR = {
has_character_modifier = pam_chrismated_child_modifier
has_character_modifier = pam_myron_chrismated_child_modifier
}
}
add_character_modifier = {
modifier = pam_chrismated_child_modifier
years = 16
}
}
}
}
}
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_holy_myron_chrismation_effect.
On actions (the game's own hooks) (2)
- on_birth_father
- on_birth_mother
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.