﻿namespace = lay_with_man

lay_with_man.20 = {
	title = failed_to_lay.10.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:recipient = {
						is_consort_of = scope:actor
					}
				}
				desc = failed_to_lay.20.desc
			}
			desc = failed_to_lay.10.desc
		}
	}
    type = character_event
	theme = romance_scheme
	override_background = garden

	left_portrait = {
		character = root
		animation = flirtation
	}

	right_portrait = {
		character = scope:recipient
		animation = admiration
	}

	option = { # Trigger Event
		name = failed_to_lay.10.b
			trigger_event = {
			id = lay_with_man.01
		}
	}
}

lay_with_man.01 = {
	title = lay_with_man.01.t
	desc = lay_with_man.01.desc
    type = character_event
	theme = lover_relation
	override_background = sitting_room

	left_portrait = {
		character = root
		animation = personality_rational
	}

	right_portrait = {
		character = scope:recipient
		animation = love
	}

	option = { # Rose
		name = lay_with_man.01.a
		custom_tooltip = lay_with_man.01.a.text
		remove_short_term_gold = 5
		random_list = {
			30 = {
				opinion_modifier = { #Compare Opinion modifier.
					who = scope:recipient
					opinion_target = scope:actor
					multiplier = 0.85
				}
				custom_tooltip = lay_with_partner_chance_tt_pos
				scope:actor = {
					add_character_flag = {
						flag = is_naked
					}
				}
				scope:recipient = {
					add_character_flag = {
						flag = is_naked
					}
				}
				trigger_event = {
					id = lay_with_man.02
					days = 1
				}
			}
			40 = {
				opinion_modifier = { #Compare Opinion modifier.
					who = scope:recipient
					opinion_target = scope:actor
					multiplier = 0.48
				}
				custom_tooltip = lay_with_partner_chance_tt_neu
				scope:actor = {
					add_character_flag = {
						flag = is_naked
					}
				}
				scope:recipient = {
					add_character_flag = {
						flag = is_naked
					}
				}
				trigger_event = {
					id = lay_with_man.03
					days = 1
				}
			}
			30 = {
				opinion_modifier = { #Compare Opinion modifier.
					who = scope:recipient
					opinion_target = scope:actor
					multiplier = -0.11
				}
				modifier = {
					factor = 0.3
					scope:actor = { has_relation_lover = scope:recipient }
				}
				modifier = {
					factor = 0.1
					scope:actor = { has_relation_soulmate = scope:recipient	}
				}
				custom_tooltip = lay_with_partner_chance_tt_neg
				scope:actor = {
					add_character_flag = {
						flag = is_naked
					}
				}
				trigger_event = {
					id = lay_with_man.04
					days = 1
				}
			}
		}
	}
	option = { # Rough
		name = lay_with_man.01.b
		add_piety = minor_piety_loss
		custom_tooltip = lay_with_man.01.b.text
		random_list = {
			20 = {
				opinion_modifier = { #Compare Opinion modifier.
					who = scope:recipient
					opinion_target = scope:actor
					multiplier = 0.05
				}
				custom_tooltip = lay_with_partner_chance_tt_pos
				scope:actor = {
					add_character_flag = {
						flag = is_naked
					}
				}
				scope:recipient = {
					add_character_flag = {
						flag = is_naked
					}
				}
				trigger_event = {
					id = lay_with_man.05
					days = 1
				}
			}
			40 = {
				opinion_modifier = { #Compare Opinion modifier.
					who = scope:recipient
					opinion_target = scope:actor
					multiplier = 0.02
				}
				custom_tooltip = lay_with_partner_chance_tt_neu
				scope:actor = {
					add_character_flag = {
						flag = is_naked
					}
				}
				scope:recipient = {
					add_character_flag = {
						flag = is_naked
					}
				}
				trigger_event = {
					id = lay_with_man.06
					days = 1
				}
			}
			40 = {
				opinion_modifier = { #Compare Opinion modifier.
					who = scope:recipient
					opinion_target = scope:actor
					multiplier = -0.52
				}
				modifier = {
					factor = 0.5
					scope:actor = { has_relation_lover = scope:recipient }
				}
				modifier = {
					factor = 0.25
					scope:actor = { has_relation_soulmate = scope:recipient	}
				}
				custom_tooltip = lay_with_partner_chance_tt_neg
				trigger_event = {
					id = lay_with_man.07
					days = 1
				}
			}
		}
	}
	option = { # Gift
		name = lay_with_man.01.c
		custom_tooltip = lay_with_man.01.c.text
		trigger = {
			scope:recipient = {
				NOT = {
					is_consort_of = scope:actor
				}
			}	
		}	  	
		remove_short_term_gold = 25
		random_list = {
			31 = {
				opinion_modifier = { #Compare Opinion modifier.
					who = scope:recipient
					opinion_target = scope:actor
					multiplier = 0.75
				}
				custom_tooltip = lay_with_partner_chance_tt_pos
				scope:actor = {
					add_character_flag = {
						flag = is_naked
					}
				}
				scope:recipient = {
					add_character_flag = {
						flag = is_naked
					}
				}
				trigger_event = {
					id = lay_with_man.08
					days = 1
				}
			}
			44 = {
				opinion_modifier = { #Compare Opinion modifier.
					who = scope:recipient
					opinion_target = scope:actor
					multiplier = 0.6
				}
				custom_tooltip = lay_with_partner_chance_tt_neu
				scope:actor = {
					add_character_flag = {
						flag = is_naked
					}
				}
				scope:recipient = {
					add_character_flag = {
						flag = is_naked
					}
				}
				trigger_event = {
					id = lay_with_man.09
					days = 1
				}
			}
			25 = {
				opinion_modifier = { #Compare Opinion modifier.
					who = scope:recipient
					opinion_target = scope:actor
					multiplier = -0.18
				}
				modifier = {
					factor = 0.3
					scope:actor = { has_relation_lover = scope:recipient }
				}
				modifier = {
					factor = 0.1
					scope:actor = { has_relation_soulmate = scope:recipient	}
				}
				custom_tooltip = lay_with_partner_chance_tt_neg
				trigger_event = {
					id = lay_with_man.10
					days = 1
				}
			}
		}
	}
	option = { # Ask
		name = lay_with_man.01.d
		custom_tooltip = lay_with_man.01.d.text
		trigger = {
			scope:recipient = {
					is_consort_of = scope:actor
				}
			  }
		random_list = {
			25 = {
				opinion_modifier = { #Compare Opinion modifier.
					who = scope:recipient
					opinion_target = scope:actor
					multiplier = 0.5
				}
				custom_tooltip = lay_with_partner_chance_tt_pos
				scope:actor = {
					add_character_flag = {
						flag = is_naked
					}
				}
				scope:recipient = {
					add_character_flag = {
						flag = is_naked
					}
				}
				trigger_event = {
					id = lay_with_man.11
					days = 1
				}
			}
			60 = {
				opinion_modifier = { #Compare Opinion modifier.
					who = scope:recipient
					opinion_target = scope:actor
					multiplier = 0.3
				}
				custom_tooltip = lay_with_partner_chance_tt_neu
				scope:actor = {
					add_character_flag = {
						flag = is_naked
					}
				}
				scope:recipient = {
					add_character_flag = {
						flag = is_naked
					}
				}
				trigger_event = {
					id = lay_with_man.12
					days = 1
				}
			}
			15 = {
				opinion_modifier = { #Compare Opinion modifier.
					who = scope:recipient
					opinion_target = scope:actor
					multiplier = -0.18
				}
				modifier = {
					factor = 0.15
					scope:actor = { has_relation_lover = scope:recipient }
				}
				modifier = {
					factor = 0
					scope:actor = { has_relation_soulmate = scope:recipient	}
				}
				custom_tooltip = lay_with_partner_chance_tt_neg
				trigger_event = {
					id = lay_with_man.13
					days = 1
				}
			}
		}
	}
	option = { # Cancel
		name = lay_with_man.01.e
		scope:recipient = {
			remove_opinion = {
				target = scope:actor
				modifier = laid_with_opinion
			}
			add_opinion = {
				target = scope:actor
				modifier = laid_with_led_on
			}
		}
	}
}

# Rose option positive
lay_with_man.02 = {
	title = lay_with_man.02.t
	desc = lay_with_man.02.desc
    type = character_event
	theme = love
	override_background = bedchamber

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:recipient
		animation = admiration
	}

	option = {
		name = lay_with_man.02.a
		#custom_tooltip = lay_with_partner_result_tt
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}

		scope:actor = {
			if = {
				limit = {
					is_close_family_of = scope:recipient
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		scope:recipient = {
			if = {
				limit = {
					is_close_family_of = scope:actor
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		had_sex_with_effect = {
			CHARACTER = scope:recipient
			PREGNANCY_CHANCE = pregnancy_chance
		}
		random_list = {
			5 = {
				scope:actor = {
					if = {
						limit = {
							is_pregnant = no
							fertility > 0
							NAND = {
								scope:actor = {	is_consort_of = scope:recipient	}
								scope:actor = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
								scope:recipient = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
							}
						}
						make_pregnant = { father = scope:recipient }
					}
				}
			}
			95 = {
			}
		}
	}

	immediate = {
		scope:actor = {
			stress_impact = {
				base = minor_stress_impact_loss
				chaste = minor_stress_impact_gain
				shy = miniscule_stress_impact_gain
			}
		}
		scope:recipient = {
			stress_impact = {
				base = minor_stress_impact_loss
				chaste = minor_stress_impact_gain
				shy = miniscule_stress_impact_gain
			}
			add_opinion = {
				target = scope:actor
				modifier = laid_with_success_opinion
				opinion = 20
			}
			remove_opinion = {
				target = scope:actor
				modifier = laid_with_opinion
			}
		}
	}

	after = {
		random_list = {
			30 = {
				if = {
					limit = {
						has_relation_lover = scope:recipient
						can_set_relation_soulmate_trigger = { CHARACTER = scope:recipient }
					}	
					set_relation_soulmate = { reason = soulmate_love_during_visit_at_court target = scope:recipient }
				}
				else = {
					set_relation_lover = { reason = lover_induled_in_forbidden_pleasures target = scope:recipient }
				}
			}
			70 = {
			}		
		}
		if = {
			limit = {
				has_relation_nemesis = scope:recipient
			}
			remove_relation_nemesis = scope:recipient
		}
		if = {
			limit = {
				has_relation_rival = scope:recipient
			}
			remove_relation_rival = scope:recipient
		}
	}
}

# Rose option neutral
lay_with_man.03 = {
	title = lay_with_man.03.t
	desc = lay_with_man.03.desc
    type = character_event
	theme = lover_relation
	override_background = bedchamber

	left_portrait = {
		character = root
		animation = flirtation

	}

	right_portrait = {
		character = scope:recipient
		animation = happiness
	}

	option = {
		name = lay_with_man.03.a
		#custom_tooltip = lay_with_partner_result_tt
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}

		scope:actor = {
			if = {
				limit = {
					is_close_family_of = scope:recipient
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		scope:recipient = {
			if = {
				limit = {
					is_close_family_of = scope:actor
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		had_sex_with_effect = {
			CHARACTER = scope:recipient
			PREGNANCY_CHANCE = pregnancy_chance
		}
		random_list = {
			1 = {
				scope:actor = {
					if = {
						limit = {
							is_pregnant = no
							fertility > 0
							NAND = {
								scope:actor = {	is_consort_of = scope:recipient	}
								scope:actor = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
								scope:recipient = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
							}
						}
						make_pregnant = { father = scope:recipient }
					}
				}
			}
			99 = {
			}
		}
	}

	immediate = {
		scope:actor = {
			stress_impact = {
				base = miniscule_stress_impact_loss
				chaste = minor_stress_impact_gain
				shy = miniscule_stress_impact_gain
			}
		}
		scope:recipient = {
			stress_impact = {
				base = miniscule_stress_impact_loss
				chaste = minor_stress_impact_gain
				shy = miniscule_stress_impact_gain
			}
			add_opinion = {
				target = scope:actor
				modifier = laid_with_midsuccess_opinion
				opinion = 15
			}
			remove_opinion = {
				target = scope:actor
				modifier = laid_with_opinion
			}
		}
	}
}

# Rose option negative
lay_with_man.04 = {
	title = lay_with_man.04.t
	desc = lay_with_man.04.desc
    type = character_event
	theme = lover_relation
	override_background = bedchamber

	left_portrait = {
		character = root
		animation = sadness
	}

	right_portrait = {
		character = scope:recipient
		animation = personality_cynical
	}

	option = {
		name = lay_with_man.04.a
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
	}

	immediate = {
		scope:actor = {
			stress_impact = {
				base = minor_stress_impact_gain
				chaste = medium_stress_impact_gain
				lustful = miniscule_stress_impact_loss
			}
		}
		scope:recipient = {
			stress_impact = {
				base = minor_stress_impact_gain
				chaste = medium_stress_impact_gain
				lustful = miniscule_stress_impact_loss
			}
			add_opinion = {
				target = scope:actor
				modifier = laid_with_unsuccess_opinion
				opinion = -20
			}
			remove_opinion = {
				target = scope:actor
				modifier = laid_with_opinion
			}
		}
	}
}

# Rough option positive
lay_with_man.05 = {
	title = lay_with_man.05.t
	desc = lay_with_man.05.desc
    type = character_event
	theme = hunting
	override_background = bedchamber

	left_portrait = {
		character = root
		animation = personality_bold
	}

	right_portrait = {
		character = scope:recipient
		animation = prisondungeon
	}

	option = {
		name = lay_with_man.05.a
		#custom_tooltip = lay_with_partner_result_tt
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}

		scope:actor = {
			if = {
				limit = {
					is_close_family_of = scope:recipient
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		scope:recipient = {
			if = {
				limit = {
					is_close_family_of = scope:actor
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		had_sex_with_effect = {
			CHARACTER = scope:recipient
			PREGNANCY_CHANCE = pregnancy_chance
		}
		random_list = {
			15 = {
				scope:actor = {
					if = {
						limit = {
							is_pregnant = no
							fertility > 0
							NAND = {
								scope:actor = {	is_consort_of = scope:recipient	}
								scope:actor = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
								scope:recipient = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
							}
						}
						make_pregnant = { father = scope:recipient }
					}
				}
			}
			85 = {
			}
		}
	}

	immediate = {
		scope:actor = {
			stress_impact = {
				base = minor_stress_impact_loss
				chaste = minor_stress_impact_gain
				lustful = minor_stress_impact_loss
				sadistic = minor_stress_impact_loss
				shy = miniscule_stress_impact_gain
			}
		}
		scope:recipient = {
			stress_impact = {
				base = minor_stress_impact_loss
				chaste = minor_stress_impact_gain
				lustful = minor_stress_impact_loss
				sadistic = minor_stress_impact_loss
				shy = miniscule_stress_impact_gain
			}
			add_opinion = {
				target = scope:actor
				modifier = laid_with_success_opinion
				opinion = 20
			}
			remove_opinion = {
				target = scope:actor
				modifier = laid_with_opinion
			}
		}
		if = {
			limit = {
				AND = {
					scope:actor = {
						OR = {
							has_trait = sadistic
							has_trait = wrathful
							has_trait = vengeful
							has_trait = callous
						}
					}	
					scope:recipient = {
						OR = {
							has_trait = sadistic
							has_trait = wrathful
							has_trait = vengeful
							has_trait = callous
						}
					}
				}
			}
		}
	}

	after = {
		random_list = {
			50 = {
				if = {
					limit = {
						has_relation_lover = scope:recipient
						can_set_relation_soulmate_trigger = { CHARACTER = scope:recipient }
						}	
					set_relation_soulmate = { reason = soulmate_love_during_visit_at_court target = scope:recipient }
				}
				else = {
					set_relation_lover = { reason = lover_induled_in_forbidden_pleasures target = scope:recipient }
				}
			}
			25 = {
				progress_towards_friend_effect = {
					REASON = friend_personal_physical_interest
					CHARACTER = scope:recipient
					OPINION = 10
				}
			}
			25 = {
			}
		}
		if = {
			limit = {
				has_relation_nemesis = scope:recipient
			}
			remove_relation_nemesis = scope:recipient
		}
		if = {
			limit = {
				has_relation_rival = scope:recipient
			}
			remove_relation_rival = scope:recipient
		}
	}
}

# Rough option neutral
lay_with_man.06 = {
	title = lay_with_man.06.t
	desc = lay_with_man.06.desc
    type = character_event
	theme = hunting
	override_background = bedchamber

	left_portrait = {
		character = root
		animation = personality_callous
	}

	right_portrait = {
		character = scope:recipient
		animation = beg
	}

	option = {
		name = lay_with_man.06.a
		#custom_tooltip = lay_with_partner_result_tt
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}

		scope:actor = {
			if = {
				limit = {
					is_close_family_of = scope:recipient
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		scope:recipient = {
			if = {
				limit = {
					is_close_family_of = scope:actor
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		had_sex_with_effect = {
			CHARACTER = scope:recipient
			PREGNANCY_CHANCE = pregnancy_chance
		}
		random_list = {
			10 = {
				scope:actor = {
					if = {
						limit = {
							is_pregnant = no
							fertility > 0
							NAND = {
								scope:actor = {	is_consort_of = scope:recipient	}
								scope:actor = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
								scope:recipient = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
							}
						}
						make_pregnant = { father = scope:recipient }
					}
				}
			}
			90 = {
			}
		}
	}

	immediate = {
		scope:actor = {
			stress_impact = {
				base = minor_stress_impact_loss
				chaste = medium_stress_impact_gain
				sadistic = medium_stress_impact_loss
				shy = miniscule_stress_impact_gain
			}
		}
		scope:recipient = {
			stress_impact = {
				base = minor_stress_impact_loss
				chaste = medium_stress_impact_gain
				sadistic = medium_stress_impact_loss
				shy = miniscule_stress_impact_gain
			}
			add_opinion = {
				target = scope:actor
				modifier = laid_with_midsuccess_opinion
				opinion = 5
			}
			remove_opinion = {
				target = scope:actor
				modifier = laid_with_opinion
			}
		}
	}
}

# Rough option negative
lay_with_man.07 = {
	title = lay_with_man.07.t
	desc = lay_with_man.07.desc
    type = character_event
	theme = unfriendly
	override_background = corridor_day

	left_portrait = {
		character = root
		animation = shame
	}

	right_portrait = {
		character = scope:recipient
		animation = disgust
	}

	option = {
		name = lay_with_man.07.a
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
	}

	immediate = {
		scope:actor = {
			stress_impact = {
				base = miniscule_stress_impact_gain
				chaste = medium_stress_impact_gain
				lustful = minor_stress_impact_loss
			}
		}
		scope:recipient = {
			stress_impact = {
				base = miniscule_stress_impact_gain
				chaste = medium_stress_impact_gain
				lustful = minor_stress_impact_loss
			}
			add_opinion = {
				target = scope:actor
				modifier = laid_with_unsuccess_opinion
				opinion = -20
			}
			remove_opinion = {
				target = scope:actor
				modifier = laid_with_opinion
			}
		}
		if = {
			limit = {
				scope:recipient = {
					OR = {
						has_trait = sadistic
						has_trait = lustful
					}
				}
			}
			random_list = {
				10 = {
					scope:recipient = {
						set_relation_rival = { reason = rival_spurned_aggressive_advances target = scope:actor }
					}
				}
				90 = {	
				}
			}
		}	
		else_if = {
			limit = {
				scope:recipient = {
					OR = {
						has_trait = wrathful
						has_trait = vengeful
						has_trait = callous
					}
				}
			}
			random_list = {
				35 = {
					scope:recipient = {
						set_relation_rival = { reason = rival_spurned_aggressive_advances target = scope:actor }
					}
				}
				35 = {
					scope:recipient = {
						progress_towards_rival_effect = {
							REASON = rival_spurned_aggressive_advances
							CHARACTER = scope:actor
							OPINION = default_rival_opinion
						}	
					}	
				}
				30 = {
				}
			}
		}
		else_if = {
			limit = {
				scope:recipient = {
					OR = {
						has_trait = chaste
					}
				}
			}
			random_list = {
				75 = {
					scope:recipient = {
						set_relation_rival = { reason = rival_spurned_aggressive_advances target = scope:actor }
					}
				}
				25 = {
					scope:recipient = {
						progress_towards_rival_effect = {
							REASON = rival_spurned_aggressive_advances
							CHARACTER = scope:actor
							OPINION = default_rival_opinion
						}	
					}	
				}
			}
		}
		else = {
			random_list = {
				20 = {
					scope:recipient = {
						set_relation_rival = { reason = rival_spurned_aggressive_advances target = scope:actor }
					}
				}
				40 = {
					scope:recipient = {
						progress_towards_rival_effect = {
							REASON = rival_spurned_aggressive_advances
							CHARACTER = scope:actor
							OPINION = default_rival_opinion
						}	
					}	
				}
				40 = {
				}
			}
		}
	}
}

# Gift option positive
lay_with_man.08 = {
	title = lay_with_man.08.t
	desc = lay_with_man.08.desc
    type = character_event
	theme = party
	override_background = bedchamber

	left_portrait = {
		character = root
		animation = personality_zealous
	}

	right_portrait = {
		character = scope:recipient
		animation = admiration
	}

	option = {
		name = lay_with_man.08.a
		#custom_tooltip = lay_with_partner_result_tt
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}

		
		scope:actor = {
			if = {
				limit = {
					is_close_family_of = scope:recipient
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		scope:recipient = {
			if = {
				limit = {
					is_close_family_of = scope:actor
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		had_sex_with_effect = {
			CHARACTER = scope:recipient
			PREGNANCY_CHANCE = pregnancy_chance
		}
		random_list = {
			25 = {
				scope:actor = {
					if = {
						limit = {
							is_pregnant = no
							fertility > 0
							NAND = {
								scope:actor = {	is_consort_of = scope:recipient	}
								scope:actor = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
								scope:recipient = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
							}
						}
						make_pregnant = { father = scope:recipient }
					}
				}
			}
			75 = {
			}
		}
	}	

	immediate = {
		scope:actor = {
			stress_impact = {
				base = minor_stress_impact_loss
				chaste = miniscule_stress_impact_gain
			}
		}
		scope:recipient = {
			stress_impact = {
				base = minor_stress_impact_loss
				chaste = miniscule_stress_impact_gain
			}
			add_opinion = {
				target = scope:actor
				modifier = laid_with_success_opinion
				opinion = 15
			}
			remove_opinion = {
				target = scope:actor
				modifier = laid_with_opinion
			}
		}
	}

	after = {
		random_list = {
			10 = {
				if = {
					limit = {
						has_relation_lover = scope:recipient
						can_set_relation_soulmate_trigger = { CHARACTER = scope:recipient }
					}	
					set_relation_soulmate = { reason = soulmate_love_during_visit_at_court target = scope:recipient }
				}
				else = {
					set_relation_lover = { reason = lover_induled_in_forbidden_pleasures target = scope:recipient }
				}
			}
			20 = {
				progress_towards_friend_effect = {
					REASON = friend_personal_physical_interest
					CHARACTER = scope:recipient
					OPINION = 15
				}
			}
			70 = {
			}		
		}
		if = {
			limit = {
				has_relation_nemesis = scope:recipient
			}
			remove_relation_nemesis = scope:recipient
		}
		if = {
			limit = {
				has_relation_rival = scope:recipient
			}
			remove_relation_rival = scope:recipient
		}
	}
}

# Gift option neutral
lay_with_man.09 = {
	title = lay_with_man.09.t
	desc = lay_with_man.09.desc
    type = character_event
	theme = party
	override_background = corridor_night

	left_portrait = {
		character = root
		animation = flirtation_left
	}

	right_portrait = {
		character = scope:recipient
		animation = flirtation
	}

	option = {
		name = lay_with_man.09.a
		#custom_tooltip = lay_with_partner_result_tt
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}

		scope:actor = {
			if = {
				limit = {
					is_close_family_of = scope:recipient
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		scope:recipient = {
			if = {
				limit = {
					is_close_family_of = scope:actor
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		had_sex_with_effect = {
			CHARACTER = scope:recipient
			PREGNANCY_CHANCE = pregnancy_chance
		}
		random_list = {
			20 = {
				scope:actor = {
					if = {
						limit = {
							is_pregnant = no
							fertility > 0
							NAND = {
								scope:actor = {	is_consort_of = scope:recipient	}
								scope:actor = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
								scope:recipient = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
							}
						}
						make_pregnant = { father = scope:recipient }
					}
				}
			}
			80 = {
			}
		}
	}	

	immediate = {
		scope:actor = {
			stress_impact = {
				chaste = minor_stress_impact_gain
			}
		}
		scope:recipient = {
			stress_impact = {
				chaste = minor_stress_impact_gain
			}
			add_opinion = {
				target = scope:actor
				modifier = laid_with_midsuccess_opinion
				opinion = 0
			}
			remove_opinion = {
				target = scope:actor
				modifier = laid_with_opinion
			}
		}
		add_prestige = miniscule_prestige_loss
	}
}

# Gift option negative
lay_with_man.10 = {
	title = lay_with_man.10.t
	desc = lay_with_man.10.desc
    type = character_event
	theme = party

	left_portrait = {
		character = root
		animation = shock
	}

	right_portrait = {
		character = scope:recipient
		animation = dismissal
	}

	option = {
		name = lay_with_man.10.a
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
	}

	immediate = {
		scope:actor = {
			stress_impact = {
				base = miniscule_stress_impact_gain
				chaste = minor_stress_impact_gain
			}
		}
		scope:recipient = {
			stress_impact = {
				base = miniscule_stress_impact_gain
				chaste = minor_stress_impact_gain
			}
			add_opinion = {
				target = scope:actor
				modifier = laid_with_unsuccess_opinion
				opinion = -10
			}
			remove_opinion = {
				target = scope:actor
				modifier = laid_with_opinion
			}
		}
		add_prestige = miniscule_prestige_loss
	}
}

# Ask option positive
lay_with_man.11 = {
	title = lay_with_man.11.t
	desc = lay_with_man.11.desc
    type = character_event
	theme = love
	override_background = bedchamber

	left_portrait = {
		character = root
		animation = admiration
	}

	right_portrait = {
		character = scope:recipient
		animation = happiness
	}

	option = {
		name = lay_with_man.11.a
		#custom_tooltip = lay_with_partner_result_tt
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}

		scope:actor = {
			if = {
				limit = {
					is_close_family_of = scope:recipient
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		scope:recipient = {
			if = {
				limit = {
					is_close_family_of = scope:actor
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		had_sex_with_effect = {
			CHARACTER = scope:recipient
			PREGNANCY_CHANCE = pregnancy_chance
		}
		random_list = {
			35 = {
				scope:actor = {
					if = {
						limit = {
							is_pregnant = no
							fertility > 0
							NAND = {
								scope:actor = {	is_consort_of = scope:recipient	}
								scope:actor = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
								scope:recipient = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
							}
						}
						make_pregnant = { father = scope:recipient }
					}
				}
			}
			65 = {
			}
		}
	}

	immediate = {
		scope:actor = {
			stress_impact = {
				base = minor_stress_impact_loss
				chaste = miniscule_stress_impact_gain
			}
		}
		scope:recipient = {
			stress_impact = {
				base = minor_stress_impact_loss
				chaste = miniscule_stress_impact_gain
			}
			add_opinion = {
				target = scope:actor
				modifier = laid_with_success_opinion
				opinion = 5
			}
			remove_opinion = {
				target = scope:actor
				modifier = laid_with_opinion
			}
		}
		add_prestige = miniscule_prestige_loss
		add_piety = miniscule_piety_gain
	}
}

# Ask option neutral
lay_with_man.12 = {
	title = lay_with_man.12.t
	desc = lay_with_man.12.desc
    type = character_event
	theme = lover_relation
	override_background = bedchamber

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:recipient
		animation = boredom
	}

	option = {
		name = lay_with_man.12.a
		#custom_tooltip = lay_with_partner_result_tt
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
		
		show_as_tooltip = {
			had_sex_with_effect = {
				CHARACTER = scope:recipient
				PREGNANCY_CHANCE = pregnancy_chance
			}
		}	

		scope:actor = {
			if = {
				limit = {
					is_close_family_of = scope:recipient
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		scope:recipient = {
			if = {
				limit = {
					is_close_family_of = scope:actor
				}
				give_incest_secret_or_nothing_effect = yes
			}
		}

		had_sex_with_effect = {
			CHARACTER = scope:recipient
			PREGNANCY_CHANCE = pregnancy_chance
		}
		random_list = {
			30 = {
				scope:actor = {
					if = {
						limit = {
							is_pregnant = no
							fertility > 0
							NAND = {
								scope:actor = {	is_consort_of = scope:recipient	}
								scope:actor = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
								scope:recipient = {
									OR = {
										has_character_modifier = difficult_conception_modifier
										has_character_modifier = difficult_conception_modifier_known										
									}
								}
							}
						}
						make_pregnant = { father = scope:recipient }
					}
				}
			}
			70 = {
			}
		}
	}	

	immediate = {
		scope:actor = {
			stress_impact = {
				base = miniscule_stress_impact_loss
				chaste = miniscule_stress_impact_gain
			}
		}
		scope:recipient = {
			stress_impact = {
				base = miniscule_stress_impact_loss
				chaste = miniscule_stress_impact_gain
			}
			add_opinion = {
				target = scope:actor
				modifier = laid_with_midsuccess_opinion
				opinion = 0
			}
			remove_opinion = {
				target = scope:actor
				modifier = laid_with_opinion
			}
		}
		add_prestige = miniscule_prestige_loss
	}
}

# Ask option negative
lay_with_man.13 = {
	title = lay_with_man.13.t
	desc = lay_with_man.13.desc
    type = character_event
	theme = lover_relation
	override_background = bedchamber

	left_portrait = {
		character = root
		animation = stress
	}

	right_portrait = {
		character = scope:recipient
		animation = angry
	}

	option = {
		name = lay_with_man.13.a
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
	}

	immediate = {
		scope:actor = {
			stress_impact = {
				base = miniscule_stress_impact_gain
				chaste = minor_stress_impact_gain
				lustful = miniscule_stress_impact_gain
			}
		}
		scope:recipient = {
			stress_impact = {
				base = miniscule_stress_impact_gain
				chaste = minor_stress_impact_gain
				lustful = miniscule_stress_impact_gain
			}
			add_opinion = {
				target = scope:actor
				modifier = laid_with_unsuccess_opinion
				opinion = -5
			}
			remove_opinion = {
				target = scope:actor
				modifier = laid_with_opinion
			}
		}
		add_prestige = minor_prestige_loss
		add_piety = miniscule_piety_loss
	}
}