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

Scripted effect

bastard_real_father_suspicion_chance_effect

bastard_real_father_suspicion_chance_effect = yes

game/common/scripted_effects/00_bastard_effects.txt, line 370 (126 lines). No parameters.

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

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (120 lines of game script)
bastard_real_father_suspicion_chance_effect = {
	hidden_effect = { #Root will here refer to the mother with a pregnancy
		save_scope_as = mother

		#Build a list of potential fathers
		every_in_list = {
			variable = potential_father_variable_list
			limit = {
				NOT = {	is_consort_of = scope:mother }	
			}
			add_to_list = potential_fathers
		}
		clear_variable_list = potential_father_variable_list #Remove list when unnecessary
		every_relation = {
			type = lover
			limit = {
				NOR = {
					root = { is_consort_of = prev }
					is_in_list = potential_fathers
				}
			}
			add_to_list = potential_fathers
		}
		if = {
			limit = {
				scope:real_father = {
					NOR = {
						root = { is_consort_of = prev }
						is_in_list = potential_fathers
					}
				}
			}
			scope:real_father = {
				add_to_list = potential_fathers
			}
		}

		every_in_list = {
			list = potential_fathers
			random = { #Real father has a random chance of suspecting that they are
				chance = real_father_suspicion_base_value
				modifier = {
					add = 10
					has_trait = shrewd
				}
				modifier = {
					add = 10
					has_trait = intellect_good_1
				}
				modifier = {
					add = 20
					has_trait = intellect_good_2
				}
				modifier = {
					add = 30
					has_trait = intellect_good_3
				}
				modifier = {
					add = -30
					has_trait = dull
				}
				modifier = {
					add = -10
					has_trait = intellect_bad_1
				}
				modifier = {
					add = -20
					has_trait = intellect_bad_2
				}
				modifier = {
					add = -10
					has_trait = intellect_bad_3
				}
				modifier = {
					add = 35
					is_married = no
					is_concubine = no
				}
				modifier = {
					add = {
						value = intrigue
					}
				}
				#Very low chance if the potential_father is in fact, a woman and not stupid
				modifier = {
					add = -1500
					is_female = yes
					NOT = {
						has_trait_rank = {
							trait = intellect_bad
							rank > 2
						}
					}
				}
				if = {
					limit = {
						scope:mother = {
							exists = var:event_triggered
						}
					}
					trigger_event = {
						id = pregnancy.3001
						days = { 5 20 }
					}
				}
				
				if = {
					limit = {
						NOT = {
							scope:mother = {
								exists = var:event_triggered
							}
						}
					}
					scope:mother = {
						set_variable = {
							name = event_triggered 
							value = yes
							days = 365
						}

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

The first 120 of its 126 lines; the rest is in game/common/scripted_effects/00_bastard_effects.txt from line 370.

Where it is used

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

Events (1)

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