CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · By God Alone files

pam_childbirth_piety_reward_effect

pam_childbirth_piety_reward_effect = yes

game/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

• 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)

7 more

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.

Spotted a mistake on this page?