Scripted effect
married_mother_pregnancy_effect
married_mother_pregnancy_effect = yesgame/common/scripted_effects/00_pregnancy_effects.txt, line 33 (36 lines). No parameters.
married_mother_pregnancy_effect is a scripted effect in Crusader Kings III, written at line 33 of its file. It takes no parameters: married_mother_pregnancy_effect = yes. The game's script calls it in 3 places, among them By Another (event pregnancy.2050), By Another Man (event pregnancy.2002) and The Wait (event pregnancy.2005). Patch 1.20.1.2, from game/common/scripted_effects/00_pregnancy_effects.txt.
What it does
add_trait_force_tooltip = pregnant
• 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 (36 lines of game script)
married_mother_pregnancy_effect = {
add_trait_force_tooltip = pregnant
if = {
limit = {
NOT = { exists = scope:spouse }
exists = primary_spouse
}
primary_spouse = {
save_scope_as = spouse
}
}
if = {
limit = { exists = scope:spouse }
scope:spouse = {
pregnancy_spouse_suspicion_chance_effect = yes
}
}
hidden_effect = {
if = {
limit = {
NOT = {
any_owned_story = {
type = story_peasant_affair
var:peasant_character = {
this = scope:real_father
}
}
}
}
trigger_event = { #This parses whether the mother is planning to confess to a real_father, and checks if there are characters out there who should suspect that they might be the real father
id = adultery.1101
days = 20
}
}
}
}As written in game/common/scripted_effects/00_pregnancy_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls married_mother_pregnancy_effect.
Events (3)
- By Another
pregnancy.2050 - By Another Man
pregnancy.2002 - The Wait
pregnancy.2005
Source: game/common/scripted_effects/00_pregnancy_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.