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

Scripted effect

add_fornicator_trait_or_nothing_effect

add_fornicator_trait_or_nothing_effect = yes

game/common/scripted_effects/00_secret_effects.txt, line 391 (28 lines). No parameters.

add_fornicator_trait_or_nothing_effect is a scripted effect in Crusader Kings III, written at line 391 of its file. It takes no parameters: add_fornicator_trait_or_nothing_effect = yes. The game's script calls it in 4 places, among them By Another (event pregnancy.2050), By Another Man (event pregnancy.2002) and add_adulterer_fornicator_trait_or_nothing_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_secret_effects.txt.

What it does

  • If available:
    • If

      • is_male = yes

      Then

      • If

        • NOT = { knows_doctrine = doctrine_adultery_men_accepted }

        Then

        • add_known_doctrine = doctrine_adultery_men_accepted

      Otherwise

      • If

        • NOT = { knows_doctrine = doctrine_adultery_women_accepted }

        Then

        • add_known_doctrine = doctrine_adultery_women_accepted
  • If

    Then

• 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 (28 lines of game script)
add_fornicator_trait_or_nothing_effect = {
	save_scope_as = fornicator_check
	if = {
		limit = { is_available_quick = { advanced_ruler = yes } }
		if = {
			limit = { is_male = yes }
			if = {
				limit = { NOT = { knows_doctrine = doctrine_adultery_men_accepted } }
				add_known_doctrine = doctrine_adultery_men_accepted
			}
		}
		else = {
			if = {
				limit = { NOT = { knows_doctrine = doctrine_adultery_women_accepted } }
				add_known_doctrine = doctrine_adultery_women_accepted
			}
		}
	}
	if = {
		limit = {
			is_adult = yes
			is_married = no
			trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:fornicator GENDER_CHARACTER = scope:fornicator_check }
		}
		add_trait_force_tooltip = fornicator
		shunned_or_criminal_sf_impact_effect = { TRAIT = trait:fornicator }
	}
}

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

Where it is used

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

Source: game/common/scripted_effects/00_secret_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?