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

Scripted effect

pregnancy_cleanup_effect

pregnancy_cleanup_effect = yes

game/common/scripted_effects/00_pregnancy_effects.txt, line 265 (67 lines). No parameters.

pregnancy_cleanup_effect is a scripted effect in Crusader Kings III, written at line 265 of its file. It takes no parameters: pregnancy_cleanup_effect = yes. The game's script calls it in 5 places, among them birth.0001 (event), Cradled by Death (event birth.3001) and Prematurely (event pregnancy.2101). Patch 1.20.1.2, from game/common/scripted_effects/00_pregnancy_effects.txt.

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 (67 lines of game script)
pregnancy_cleanup_effect = {
	hidden_effect = {
		if = {
			limit = {
				has_character_flag = unmarried_bastard_pregnancy
			}
			remove_character_flag = unmarried_bastard_pregnancy
		}
		if = {
			limit = {
				has_character_flag = bastard_pregnancy
			}
			remove_character_flag = bastard_pregnancy
		}
		if = {
			limit = {
				has_character_flag = pregnancy_real_father_of_bastard_is_known_flag
			}
			remove_character_flag = pregnancy_real_father_of_bastard_is_known_flag
		}
		if = {
			limit = {
				has_character_flag = pregnancy_spouse_knows_of_bastardy
			}
			remove_character_flag = pregnancy_spouse_knows_of_bastardy
		}
		if = {
			limit = {
				has_character_flag = pregnancy_real_father_knows
			}
			remove_character_flag = pregnancy_real_father_knows
		}
		if = {
			limit = {
				has_character_flag = birth_will_go_smoothly
			}
			remove_character_flag = birth_will_go_smoothly
		}
		if = {
			limit = {
				has_character_flag = birth_child_will_become_sickly
			}
			remove_character_flag = birth_child_will_become_sickly
		}
		if = {
			limit = {
				has_character_flag = birth_mother_will_become_ill
			}
			remove_character_flag = birth_mother_will_become_ill
		}
		if = {
			limit = {
				has_variable = suppress_bastardy
			}
			remove_variable = suppress_bastardy
			scope:child ?= {
				set_variable = child_bastardy_suppressed
			}
		}
	}
	if = {
		limit = {
			has_trait = pregnant
		}
		remove_trait = pregnant
	}
}

As written in game/common/scripted_effects/00_pregnancy_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls pregnancy_cleanup_effect.

Events (5)

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.

Spotted a mistake on this page?