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

Scripted effect

historical_pregnancy_effect

historical_pregnancy_effect = yes

game/common/scripted_effects/00_pregnancy_effects.txt, line 70 (39 lines). No parameters.

historical_pregnancy_effect is a scripted effect in Crusader Kings III, written at line 70 of its file. It takes no parameters: historical_pregnancy_effect = yes. The game's script calls it in 1 place, among them pregnancy_maintainance_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_pregnancy_effects.txt.

What it does

  • If

    a check the game hides

    Then

    • Depending on historical pregnancy › When historical pregnancy is antoku:
      • create_character = { … }
      • scope:child:
        • add_pressed_claim = title:k_chrysanthemum_throne
    • create_character_memory = { … }
    • current_travel_plan ?= { … }

• 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 (39 lines of game script)
historical_pregnancy_effect = {
	if = {
		limit = { exists = var:historical_pregnancy }
		switch = {
			trigger = var:historical_pregnancy
			flag:antoku = {
				save_scope_as = mother
				character:japanese_yamato_54 = { save_scope_as = father }
				create_character = {
					name = "Tokihito" # birth name of Antoku
					gender_female_chance = 0
					random_traits = no
					age = 0
					dynasty_house = scope:father.house # Yamato
					employer = scope:mother.employer
					father = scope:father # Emperor Takakura
					mother = scope:mother # Noriko
					faith = scope:father.faith
					rite = scope:father.rite
					culture = scope:father.culture
					save_scope_as = child
				}
				scope:child = { add_pressed_claim = title:k_chrysanthemum_throne }
			}
		}
		create_character_memory = {
			type = child_born
			participants = { child = scope:child }
		}
		current_travel_plan ?= { 
			if = {
				limit = {
					travel_plan_owner = { is_ruler = yes }
				}
				add_companion = scope:child
			}
		}
	}
}

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

Where it is used

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

Scripted effects (1)

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?