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

Scripted trigger

possible_pregnancy_after_sex_with_character_trigger

possible_pregnancy_after_sex_with_character_trigger = { CHARACTER = … }

game/common/scripted_triggers/00_romance_and_seduction_triggers.txt, line 864 (31 lines). Parameters: $CHARACTER$.

possible_pregnancy_after_sex_with_character_trigger is a scripted trigger in Crusader Kings III, written at line 864 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 1 place, among them had_sex_with_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/00_romance_and_seduction_triggers.txt.

The comment above it in the file

PREGNANCY & STDs ###

What it checks

  • If

    • is_male = yes
    • $CHARACTER$ = { is_female = yes }

    Then

    • is_visibly_fertile = yes
    • Fertility at least 0.1
    • $CHARACTER$ = { is_visibly_fertile = yes fertility >= 0.1 is_pregnant = no }
  • If

    • is_female = yes
    • $CHARACTER$ = { is_male = yes }

    Then

    • is_visibly_fertile = yes
    • Fertility at least 0.1
    • Not: Is pregnant
    • $CHARACTER$ = { is_visibly_fertile = yes fertility >= 0.1 }

• 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 (31 lines of game script)
possible_pregnancy_after_sex_with_character_trigger = {
	trigger_if = {
		limit = {
			is_male = yes
			$CHARACTER$ = { is_female = yes }
		}
		is_visibly_fertile = yes
		fertility >= 0.1

		$CHARACTER$ ={
			is_visibly_fertile = yes
			fertility >= 0.1
			is_pregnant = no
		}
	}

	trigger_if = {
		limit = {
			is_female = yes
			$CHARACTER$ = { is_male = yes }
		}
		is_visibly_fertile = yes
		fertility >= 0.1
		is_pregnant = no

		$CHARACTER$ = {
			is_visibly_fertile = yes
			fertility >= 0.1
		}
	}
}

As written in game/common/scripted_triggers/00_romance_and_seduction_triggers.txt.

Where it is used

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

Scripted effects (1)

Source: game/common/scripted_triggers/00_romance_and_seduction_triggers.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?