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

Scripted effect

had_sex_with_unknown_effect

had_sex_with_unknown_effect = { GENDER = … }

game/common/scripted_effects/00_romance_effects.txt, line 748 (62 lines). Parameters: $GENDER$.

had_sex_with_unknown_effect is a scripted effect in Crusader Kings III, written at line 748 of its file. A call passes 1 parameter: GENDER. The game's script calls it in 4 places, among them … Intimate Desires (event pilgrimage.2101), Indiscretions (event sibling.8003) and Into the Night (event ep2_wedding.3420). Patch 1.20.1.2, from game/common/scripted_effects/00_romance_effects.txt.

The comment above it in the file

For having sex with "someone" (not a character)

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 (62 lines of game script)
had_sex_with_unknown_effect = {
	save_temporary_scope_value_as = {
		name = gender
		value = flag:$GENDER$
	}

	#Error logging
	if = {
		limit = {
			is_adult = no
		}
		error_log = "Trying to run had_sex_with_unknown_effect on a child"
	}

	#Stress release
	if = {
		limit = {
			OR = {
				has_trait = lustful
				has_trait = lifestyle_reveler
			}
		}
		add_stress = minor_stress_loss
	}

	#Sodomy
	if = {
		limit = { scope:gender = flag:male }
		give_homosexual_secret_or_nothing_with_target_effect = { CHARACTER = dummy_male }
	}

	shunned_or_criminal_sf_impact_effect = { TRAIT = trait:fornicator }

	hidden_effect = {
		#Adultery suspicion
		set_variable = {
			name = had_recent_sex
			value = flag:$GENDER$
		}
		random = {
			chance = 5
			random_spouse = {
				limit = { is_ai = no }
				alternative_limit = { always = yes }
				trigger_event = adultery.0001
			}
		}

		#STD transmission
		random_list = {
			95 = {
				#Nothing
			}
			4 = {
				contract_disease_notify_effect = { DISEASE = lovers_pox }
			}
			1 = {
				contract_disease_notify_effect = { DISEASE = great_pox }
			}
		}
	}
}

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

Where it is used

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

Events (4)

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