Scripted effect · By God Alone files
pam_be_fruitful_fruitful_upbringing_effect
pam_be_fruitful_fruitful_upbringing_effect = yesgame/common/scripted_effects/pam_effects.txt, line 507 (53 lines). No parameters.
pam_be_fruitful_fruitful_upbringing_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 507 of its file. It takes no parameters: pam_be_fruitful_fruitful_upbringing_effect = yes. 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.
What it does
If
One of these
- scope:mother: The Personal Tenets unlock tenet be fruitful and multiply fruitful upbringing
or
scope:father: The Personal Tenets unlock tenet be fruitful and multiply fruitful upbringing
Then
scope:child:If
scope:mother:has_relation_soulmate = scope:father
Then
- Gains the modifier “Devotedly Raised” for 16 years
- Health +0.6
Else if
scope:mother:One of these
has_relation_lover = scope:fatheror
has_relation_best_friend = scope:father
Then
- Gains the modifier “Lovingly Raised” for 16 years
- Health +0.4
Else if
scope:mother:One of these
has_relation_friend = scope:fatheror
Opinion of father at least 40
Then
- Gains the modifier “Fondly Raised” for 16 years
- Health +0.2
• 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 (53 lines of game script)
pam_be_fruitful_fruitful_upbringing_effect = {
if = {
limit = {
exists = scope:father
OR = {
scope:mother ?= { has_personal_tenet_flag = tenet_be_fruitful_and_multiply_fruitful_upbringing }
scope:father ?= { has_personal_tenet_flag = tenet_be_fruitful_and_multiply_fruitful_upbringing }
}
}
scope:child = {
if = {
limit = {
scope:mother ?= { has_relation_soulmate = scope:father }
}
add_character_modifier = {
modifier = tenet_be_fruitful_and_multiply_fruitful_upbringing_devoted
years = 16
}
}
else_if = {
limit = {
scope:mother ?= {
OR = {
has_relation_lover = scope:father
has_relation_best_friend = scope:father
}
}
}
add_character_modifier = {
modifier = tenet_be_fruitful_and_multiply_fruitful_upbringing_close
years = 16
}
}
else_if = {
limit = {
scope:mother ?= {
OR = {
has_relation_friend = scope:father
opinion = {
target = scope:father
value >= medium_positive_opinion
}
}
}
}
add_character_modifier = {
modifier = tenet_be_fruitful_and_multiply_fruitful_upbringing_fond
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_be_fruitful_fruitful_upbringing_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.