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

Scripted effect

rakish_brothel_night_effect

rakish_brothel_night_effect = yes

game/common/scripted_effects/00_stress_effects.txt, line 195 (118 lines). No parameters.

rakish_brothel_night_effect is a scripted effect in Crusader Kings III, written at line 195 of its file. It takes no parameters: rakish_brothel_night_effect = yes. The game's script calls it in 12 places, among them … Intimate Desires (event pilgrimage.2101), Mental Break: Coming Home to Roost (event stress_threshold.1701) and Mental Break: Domain of Debauchery (event stress_threshold.3421). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_stress_effects.txt.

The comment above it in the file

Applies the effects of a one-night debauchery spree in a brothel.
(Does not use "had_sex_with_unknown_effect" since we want a higher risk of STDs)

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 (118 lines of game script)
rakish_brothel_night_effect = {
	# Warn the character about possible negative consequences.
	custom_tooltip = stress_threshold.1011.rakish.tt

	# Negative consequences of the night.
	random_list = {
		50 = {
			trigger = {
				is_attracted_to_men = yes
			}
			set_variable = {
				name = had_recent_sex
				value = flag:male
			}
			give_homosexual_secret_or_nothing_with_target_effect = { CHARACTER = dummy_male }
		}
		50 = {
			trigger = {
				is_attracted_to_women = yes
			}
			set_variable = {
				name = had_recent_sex
				value = flag:female
			}
		}
	}
	hidden_effect = {
		#Adultery suspicion
		random = {
			chance = 5
			random_spouse = {
				limit = { is_ai = no }
				alternative_limit = { always = yes }
				trigger_event = adultery.0001
			}
		}

		# Possible STD transmission
		random_list = {
			75 = {
				#Nothing
			}
			20 = {
				contract_disease_notify_effect = { DISEASE = lovers_pox }
			}
			5 = {
				contract_disease_notify_effect = { DISEASE = great_pox }
			}
		}

		#Possibility to start peasant story cycle
		random = {
			chance = 5
			if = {
				limit = {
					NOT = { has_character_flag = had_story_cycle_peasant_affair }
					is_ruler = yes
					is_ai = no
				}
				create_character = {
					location = root.capital_province
					template = beautiful_peasant_character
					gender_female_chance = root_attraction_based_female_chance
					faith = root.faith
					rite = root.rite
					culture = root.culture
					save_scope_as = beautiful_peasant
				}
				scope:beautiful_peasant = {
					set_sexuality = bisexual
				}
				if = {
					limit = {
						is_male = yes
						exists = scope:beautiful_peasant
						scope:beautiful_peasant = {
							is_female = yes
							age < define:NChildbirth|MAX_FEMALE_REPRODUCTION_AGE
						}
					}
					random = {
						chance = pregnancy_chance
						scope:beautiful_peasant = {
							add_character_flag = {
								flag = peasant_is_pregnant
								days = 560
							}
						}
					}
				}
				set_variable = {
					name = story_peasant_affair_target
					value = scope:beautiful_peasant
				}
				set_variable = { #To save how you met
					name = rakish_night
					value = 0
				}
				create_story = story_peasant_affair
			}
		}
	}

	# Attribute the stress relief to the indulged trait for fulfillment; callers without either trait keep the plain relief
	if = {
		limit = { has_trait = lustful }
		stress_and_fulfillment_impact = {
			lustful = major_stress_impact_loss
		}
	}
	else_if = {
		limit = { has_trait = rakish }
		stress_and_fulfillment_impact = {
			rakish = major_stress_impact_loss
		}
	}
	else = { add_stress = major_stress_impact_loss }
}

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

Where it is used

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

Events (12)

6 more

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