Scripted effect · By God Alone files
pam_childbirth_piety_reward_effect
pam_childbirth_piety_reward_effect = yesgame/common/scripted_effects/pam_effects.txt, line 12343 (21 lines). No parameters.
pam_childbirth_piety_reward_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 12343 of its file. It takes no parameters: pam_childbirth_piety_reward_effect = yes. The game's script calls it in 13 places, among them A Rough Start (event birth.2003), Bastard Born (event birth.1006) and Cradled by Death (event birth.3011). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
PAM - Sacred Childbirth: scaled piety (regular tenet) for a live birth. Also triggers spiritual fulfillment and stress loss rewards (personal tenet), shown in birth events
What it does
If
- Their rite: The rite has Mothers and fathers gain Piety when their child is born
Then
Otherwise
add_piety = { … }
pam_childbirth_spiritual_fulfillment_reward_effect = yes
• 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 (21 lines of game script)
pam_childbirth_piety_reward_effect = {
if = {
limit = { rite = { rite_has_parameter = piety_from_childbirth_active } }
if = {
limit = { scope:child = { has_any_negative_bastard_trait_trigger = no } }
add_piety = {
value = major_piety_gain
if = { limit = { any_child = { is_twin_of = scope:child } } add = major_piety_gain }
if = { limit = { any_child = { count >= 3 is_twin_of = scope:child } } add = major_piety_gain }
}
}
else = {
add_piety = {
value = minor_piety_gain
if = { limit = { any_child = { is_twin_of = scope:child } } add = minor_piety_gain }
if = { limit = { any_child = { count >= 3 is_twin_of = scope:child } } add = minor_piety_gain }
}
}
}
pam_childbirth_spiritual_fulfillment_reward_effect = yes
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_childbirth_piety_reward_effect.
Events (13)
- A Rough Start
birth.2003 - Bastard Born
birth.1006 - Cradled by Death
birth.3011 - Cradled by Death
birth.3012 - Fatherless
birth.1005 - My …
birth.1001
7 more
- My …
birth.1002 - My …
birth.2011 - My …
birth.2012 - My … and Heir
birth.1003 - The Blessing of Ignorance
birth.2001 - Twice Blessed
birth.2002 - What's In A Name?
birth.9002
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.