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_termination_attempt_effect

pregnancy_termination_attempt_effect = yes

game/common/scripted_effects/00_pregnancy_effects.txt, line 335 (55 lines). No parameters.

pregnancy_termination_attempt_effect is a scripted effect in Crusader Kings III, written at line 335 of its file. It takes no parameters: pregnancy_termination_attempt_effect = yes. The game's script calls it in 2 places, among them By Another Man (event pregnancy.2002) and Out of Wedlock (event pregnancy.2001). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_pregnancy_effects.txt.

What it does

  • 1 of 4 things will happen:
    • 42%:
      • end_pregnancy = yes
    • 13%:
      • end_pregnancy = yes
      • Gains the Trait Ill
    • 42%: The treatment fails
    • 4%:
      • death = { death_reason = death_attempted_treatment }

• 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 (55 lines of game script)
pregnancy_termination_attempt_effect = {
	random_list = {
		100 = { #Pregnancy ends, no negative consequence
			#custom_tooltip = pregnancy_treatment_succeeds_tt
			show_as_tooltip = {
				end_pregnancy = yes
			}
			hidden_effect = {
				trigger_event = {
					id = pregnancy.2003
					days = { 3 10 }
				}
			}
		}
		30 = { #Pregnancy ends, mother becomes Ill
			trigger = {
				NOT = { has_trait = ill }
			}
			show_as_tooltip = {
				end_pregnancy = yes
				add_trait = ill
			}
			#custom_tooltip = pregnancy_treatment_succeeds_tt
			#custom_tooltip = pregnancy_treatment_fall_ill_tt
			hidden_effect = {
				trigger_event = {
					id = pregnancy.2004
					days = { 3 10 }
				}
			}
		}
		100 = { #The pregnancy continues
			custom_tooltip = pregnancy_treatment_fails_tt	
			hidden_effect = {
				trigger_event = {
					id = pregnancy.2005
					days = { 3 10 }
				}
			}
		}
		10 = { #The mother dies
			show_as_tooltip = {
				death = {
					death_reason = death_attempted_treatment
				}
			}
			hidden_effect = {
				trigger_event = {
					id = pregnancy.2007
					days = { 3 10 }
				}
			}
		}
	}
}

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_termination_attempt_effect.

Events (2)

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?