﻿namespace = lay_with_partner

lay_with_partner.001 = {
	title = lay_with_partner_event_title
	desc = lay_with_partner.001.desc
    type = character_event
	theme = lover_relation

	left_portrait = {
		character = root
		triggered_animation = {
			animation = personality_rational
		}
	}

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

	option = { # Rose
		name = lay_with_partner.001.a
		scope:actor = {
			stress_impact = {
				base = { -10 0 }
				chaste = 5
			}
		}
		if = {
			limit = {
				NOT = {
					scope:actor = {
						has_trait = pregnant
					}
					scope:recipient = {
						has_trait = pregnant
					}
				}
				OR = {
					AND = {
						scope:actor = {
							is_female = yes
						}
						scope:recipient = {
							is_male = yes
						}
					}
					AND = {
						scope:actor = {
							is_male = yes
						}
						scope:recipient = {
							is_female = yes
						}
					}
				}
			}
			custom_tooltip = lay_with_partner.001.a.text
		}
		hidden_effect = {
			random_list = {
				33 = {
					opinion_modifier = { #Compare Opinion modifier.
						who = scope:recipient
						opinion_target = scope:actor
						multiplier = 1.0
					}
					scope:actor = {
						add_character_flag = {
							flag = is_naked
						}
					}
					scope:recipient = {
						add_character_flag = {
							flag = is_naked
						}
					}
					trigger_event = {
						id = lay_with_partner.002
						days = 1
					}
				}
				34 = {
					opinion_modifier = { #Compare Opinion modifier.
						who = scope:recipient
						opinion_target = scope:actor
						multiplier = 0.3
					}
					scope:actor = {
						add_character_flag = {
							flag = is_naked
						}
					}
					scope:recipient = {
						add_character_flag = {
							flag = is_naked
						}
					}
					trigger_event = {
						id = lay_with_partner.003
						days = 1
					}
				}
				33 = {
					opinion_modifier = { #Compare Opinion modifier.
						who = scope:recipient
						opinion_target = scope:actor
						multiplier = -0.5
					}
					scope:actor = {
						add_character_flag = {
							flag = is_naked
						}
					}
					trigger_event = {
						id = lay_with_partner.004
						days = 1
					}
				}
			}
		}
	}
	option = { # Rough
		name = lay_with_partner.001.b
		add_piety = { -10 -25 }
		hidden_effect = {
			random_list = {
				33 = {
					opinion_modifier = { #Compare Opinion modifier.
						who = scope:recipient
						opinion_target = scope:actor
						multiplier = 1.0
					}
					scope:actor = {
						add_character_flag = {
							flag = is_naked
						}
					}
					scope:recipient = {
						add_character_flag = {
							flag = is_naked
						}
					}
					trigger_event = {
						id = lay_with_partner.005
						days = 1
					}
				}
				33 = {
					opinion_modifier = { #Compare Opinion modifier.
						who = scope:recipient
						opinion_target = scope:actor
						multiplier = 0.6
					}
					scope:actor = {
						add_character_flag = {
							flag = is_naked
						}
					}
					scope:recipient = {
						add_character_flag = {
							flag = is_naked
						}
					}
					trigger_event = {
						id = lay_with_partner.006
						days = 1
					}
				}
				34 = {
					opinion_modifier = { #Compare Opinion modifier.
						who = scope:recipient
						opinion_target = scope:actor
						multiplier = -0.25
					}
					trigger_event = {
						id = lay_with_partner.007
						days = 1
					}
				}
			}
		}
	}
	option = { # Candles
		name = lay_with_partner.001.c
		remove_short_term_gold = { 10 30 }
		hidden_effect = {
			random_list = {
				34 = {
					opinion_modifier = { #Compare Opinion modifier.
						who = scope:recipient
						opinion_target = scope:actor
						multiplier = 1.0
					}
					scope:actor = {
						add_character_flag = {
							flag = is_naked
						}
					}
					scope:recipient = {
						add_character_flag = {
							flag = is_naked
						}
					}
					trigger_event = {
						id = lay_with_partner.008
						days = 1
					}
				}
				33 = {
					opinion_modifier = { #Compare Opinion modifier.
						who = scope:recipient
						opinion_target = scope:actor
						multiplier = 0.2
					}
					scope:actor = {
						add_character_flag = {
							flag = is_naked
						}
					}
					scope:recipient = {
						add_character_flag = {
							flag = is_naked
						}
					}
					trigger_event = {
						id = lay_with_partner.009
						days = 1
					}
				}
				33 = {
					opinion_modifier = { #Compare Opinion modifier.
						who = scope:recipient
						opinion_target = scope:actor
						multiplier = -0.55
					}
					trigger_event = {
						id = lay_with_partner.010
						days = 1
					}
				}
			}
		}
	}
	option = { # Ask
		trigger = {
			NOT = {
				scope:actor = {
					has_trait = pregnant
				}
				scope:recipient = {
					has_trait = pregnant
				}
			}
			OR = {
				AND = {
					scope:actor = {
						is_female = yes
					}
					scope:recipient = {
						is_male = yes
					}
				}
				AND = {
					scope:actor = {
						is_male = yes
					}
					scope:recipient = {
						is_female = yes
					}
				}
			}
		}
		name = lay_with_partner.001.d
		custom_tooltip = lay_with_partner.001.d.text
		hidden_effect = {
			random_list = {
				33 = {
					opinion_modifier = { #Compare Opinion modifier.
						who = scope:recipient
						opinion_target = scope:actor
						multiplier = 1
					}
					scope:actor = {
						add_character_flag = {
							flag = is_naked
						}
					}
					scope:recipient = {
						add_character_flag = {
							flag = is_naked
						}
					}
					trigger_event = {
						id = lay_with_partner.011
						days = 1
					}
				}
				33 = {
					opinion_modifier = { #Compare Opinion modifier.
						who = scope:recipient
						opinion_target = scope:actor
						multiplier = 0.5
					}
					scope:actor = {
						add_character_flag = {
							flag = is_naked
						}
					}
					scope:recipient = {
						add_character_flag = {
							flag = is_naked
						}
					}
					trigger_event = {
						id = lay_with_partner.012
						days = 1
					}
				}
				34 = {
					opinion_modifier = { #Compare Opinion modifier.
						who = scope:recipient
						opinion_target = scope:actor
						multiplier = -0.3
					}
					trigger_event = {
						id = lay_with_partner.013
						days = 1
					}
				}
			}
		}
	}
	option = { # Cancel
		name = lay_with_partner.001.e
	}
}

# Rose option positive
lay_with_partner.002 = {
	title = lay_with_partner_event_title
	desc = lay_with_partner.002.desc
    type = character_event
	theme = lover_relation

	left_portrait = {
		character = root
		triggered_animation = {
			animation = admiration
		}
	}

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

	option = {
		name = lay_with_partner.002.a
		custom_tooltip = lay_with_partner_result.tt
		hidden = {
			random_list = {
				10 = {
				}
				90 = {
					if = {
						limit = {
							scope:actor = {
								is_female = yes
							}
							scope:recipient = {
								is_male = yes
							}
						}
						scope:actor = {
							make_pregnant = { father = scope:recipient number_of_children = 1 }
						}
					}
					else_if = {
						limit = {
							scope:actor = {
								is_male = yes
							}
							scope:recipient = {
								is_female = yes
							}
						}
						scope:recipient = {
							make_pregnant = { father = scope:actor number_of_children = 1 }
						}
					}
				}
			}
		}
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
		scope:actor = {
			stress_impact = {
				base = { -25 -15 }
				chaste = 15
				lustful = -5
			}
		}
		scope:recipient = {
			add_opinion = {
				target = scope:actor
				modifier = laid_with_success_opinion
				opinion = 10
			}
		}
	}
}

# Rose option neutral
lay_with_partner.003 = {
	title = lay_with_partner_event_title
	desc = lay_with_partner.003.desc
    type = character_event
	theme = lover_relation

	left_portrait = {
		character = root
		triggered_animation = {
			animation = flirtation
		}
	}

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

	option = {
		name = lay_with_partner.003.a
		custom_tooltip = lay_with_partner_result.tt
		hidden = {
			random_list = {
				10 = {
				}
				90 = {
					if = {
						limit = {
							scope:actor = {
								is_female = yes
							}
							scope:recipient = {
								is_male = yes
							}
						}
						scope:actor = {
							make_pregnant = { father = scope:recipient number_of_children = 1 }
						}
					}
					else_if = {
						limit = {
							scope:actor = {
								is_male = yes
							}
							scope:recipient = {
								is_female = yes
							}
						}
						scope:recipient = {
							make_pregnant = { father = scope:actor number_of_children = 1 }
						}
					}
				}
			}
		}
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
		scope:actor = {
			stress_impact = {
				base = { -15 -10 }
				chaste = 20
				lustful = -5
			}
		}
		scope:recipient = {
			add_opinion = {
				target = scope:actor
				modifier = laid_with_success_opinion
				opinion = 5
			}
		}
	}
}

# Rose option negative
lay_with_partner.004 = {
	title = lay_with_partner_event_title
	desc = lay_with_partner.004.desc
    type = character_event
	theme = lover_relation

	left_portrait = {
		character = root
		triggered_animation = {
			animation = shame
		}
	}

	right_portrait = {
		character = scope:recipient
		triggered_animation = {
			animation = disapproval
		}
	}

	option = {
		name = lay_with_partner.004.a
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			add_opinion = {
				target = scope:actor
				modifier = laid_with_fail_opinion
				opinion = -10
			}
		}
	}
}

# Rough option positive
lay_with_partner.005 = {
	title = lay_with_partner_event_title
	desc = lay_with_partner.005.desc
    type = character_event
	theme = lover_relation

	left_portrait = {
		character = root
		triggered_animation = {
			animation = personality_bold
		}
	}

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

	option = {
		name = lay_with_partner.005.a
		custom_tooltip = lay_with_partner_result.tt
		hidden = {
			random_list = {
				95 = {
					if = {
						limit = {
							scope:actor = {
								is_female = yes
							}
							scope:recipient = {
								is_male = yes
							}
						}
						scope:actor = {
							make_pregnant = { father = scope:recipient number_of_children = 1 }
						}
					}
					else_if = {
						limit = {
							scope:actor = {
								is_male = yes
							}
							scope:recipient = {
								is_female = yes
							}
						}
						scope:recipient = {
							make_pregnant = { father = scope:actor number_of_children = 1 }
						}
					}
				}
				5 = {
				}
			}
		}
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
		scope:actor = {
			stress_impact = {
				base = { -20 -5 }
				chaste = 25
				lustful = -8
			}
		}
		scope:recipient = {
			add_opinion = {
				target = scope:actor
				modifier = laid_with_success_opinion
				opinion = 15
			}
		}
		add_piety = { -10 -30 }
	}
}

# Rough option neutral
lay_with_partner.006 = {
	title = lay_with_partner_event_title
	desc = lay_with_partner.006.desc
    type = character_event
	theme = lover_relation

	left_portrait = {
		character = root
		triggered_animation = {
			animation = personality_compassionate
		}
	}

	right_portrait = {
		character = scope:recipient
		triggered_animation = {
			animation = worry
		}
	}

	option = {
		name = lay_with_partner.006.a
		custom_tooltip = lay_with_partner_result.tt
		hidden = {
			random_list = {
				95 = {
					if = {
						limit = {
							scope:actor = {
								is_female = yes
							}
							scope:recipient = {
								is_male = yes
							}
						}
						scope:actor = {
							make_pregnant = { father = scope:recipient number_of_children = 1 }
						}
					}
					else_if = {
						limit = {
							scope:actor = {
								is_male = yes
							}
							scope:recipient = {
								is_female = yes
							}
						}
						scope:recipient = {
							make_pregnant = { father = scope:actor number_of_children = 1 }
						}
					}
				}
				5 = {
				}
			}
		}
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
		scope:actor = {
			stress_impact = {
				base = { -15 -1 }
				chaste = 20
				lustful = -5
			}
		}
		scope:recipient = {
			add_opinion = {
				target = scope:actor
				modifier = laid_with_success_opinion
				opinion = 10
			}
		}
	}
}

# Rough option negative
lay_with_partner.007 = {
	title = lay_with_partner_event_title
	desc = lay_with_partner.007.desc
    type = character_event
	theme = lover_relation

	left_portrait = {
		character = root
		triggered_animation = {
			animation = personality_forgiving
		}
	}

	right_portrait = {
		character = scope:recipient
		triggered_animation = {
			animation = worry
		}
	}

	option = {
		name = lay_with_partner.007.a
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
		scope:actor = {
			stress_impact = {
				base = { 5 10 }
				chaste = -10
				lustful = 5
			}
		}
		scope:recipient = {
			add_opinion = {
				target = scope:actor
				modifier = laid_with_fail_opinion
				opinion = -10
			}
		}
	}
}

# Gift option positive
lay_with_partner.008 = {
	title = lay_with_partner_event_title
	desc = lay_with_partner.008.desc
    type = character_event
	theme = lover_relation

	left_portrait = {
		character = root
		triggered_animation = {
			animation = personality_zealous
		}
	}

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

	option = {
		name = lay_with_partner.008.a
		custom_tooltip = lay_with_partner_result.tt
		hidden = {
			random_list = {
				95 = {
					if = {
						limit = {
							scope:actor = {
								is_female = yes
							}
							scope:recipient = {
								is_male = yes
							}
						}
						scope:actor = {
							make_pregnant = { father = scope:recipient number_of_children = 1 }
						}
					}
					else_if = {
						limit = {
							scope:actor = {
								is_male = yes
							}
							scope:recipient = {
								is_female = yes
							}
						}
						scope:recipient = {
							make_pregnant = { father = scope:actor number_of_children = 1 }
						}
					}
				}
				5 = {
				}
			}
		}
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
		scope:actor = {
			stress_impact = {
				base = { -20 -10 }
				chaste = 5
				lustful = -10
			}
		}
		scope:recipient = {
			add_opinion = {
				target = scope:actor
				modifier = laid_with_success_opinion
				opinion = 25
			}
		}
		add_piety = { 0 15 }
	}
}

# Gift option neutral
lay_with_partner.009 = {
	title = lay_with_partner_event_title
	desc = lay_with_partner.009.desc
    type = character_event
	theme = lover_relation

	left_portrait = {
		character = root
		triggered_animation = {
			animation = admiration
		}
	}

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

	option = {
		name = lay_with_partner.009.a
		custom_tooltip = lay_with_partner_result.tt
		hidden = {
			random_list = {
				95 = {
					if = {
						limit = {
							scope:actor = {
								is_female = yes
							}
							scope:recipient = {
								is_male = yes
							}
						}
						scope:actor = {
							make_pregnant = { father = scope:recipient number_of_children = 1 }
						}
					}
					else_if = {
						limit = {
							scope:actor = {
								is_male = yes
							}
							scope:recipient = {
								is_female = yes
							}
						}
						scope:recipient = {
							make_pregnant = { father = scope:actor number_of_children = 1 }
						}
					}
				}
				5 = {
				}
			}
		}
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
		scope:actor = {
			stress_impact = {
				base = { -10 -5 }
				chaste = 5
				lustful = -5
			}
		}
		scope:recipient = {
			add_opinion = {
				target = scope:actor
				modifier = laid_with_success_opinion
				opinion = 10
			}
		}
	}
}

# Gift option negative
lay_with_partner.010 = {
	title = lay_with_partner_event_title
	desc = lay_with_partner.010.desc
    type = character_event
	theme = lover_relation

	left_portrait = {
		character = root
		triggered_animation = {
			animation = sadness
		}
	}

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

	option = {
		name = lay_with_partner.010.a
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
		scope:actor = {
			stress_impact = {
				base = { 5 10 }
				chaste = -10
				lustful = 5
			}
		}
		scope:recipient = {
			add_opinion = {
				target = scope:actor
				modifier = laid_with_fail_opinion
				opinion = -10
			}
		}
		add_prestige = { -10 -30 }
	}
}

# Ask option positive
lay_with_partner.011 = {
	title = lay_with_partner_event_title
	desc = lay_with_partner.011.desc
    type = character_event
	theme = lover_relation

	left_portrait = {
		character = root
		triggered_animation = {
			animation = ecstasy
		}
	}

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

	option = {
		name = lay_with_partner.011.a
		custom_tooltip = lay_with_partner_result.tt
		hidden = {
			if = {
				limit = {
					scope:actor = {
						is_female = yes
					}
					scope:recipient = {
						is_male = yes
					}
				}
				scope:actor = {
					make_pregnant = { father = scope:recipient number_of_children = 1 }
				}
			}
			else_if = {
				limit = {
					scope:actor = {
						is_male = yes
					}
					scope:recipient = {
						is_female = yes
					}
				}
				scope:recipient = {
					make_pregnant = { father = scope:actor number_of_children = 1 }
				}
			}
		}
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
		scope:actor = {
			stress_impact = {
				base = { -5 0 }
				chaste = 5
				lustful = -5
			}
		}
		scope:recipient = {
			add_opinion = {
				target = scope:actor
				modifier = laid_with_success_opinion
				opinion = 15
			}
		}
	}
}

# Ask option neutral
lay_with_partner.012 = {
	title = lay_with_partner_event_title
	desc = lay_with_partner.012.desc
    type = character_event
	theme = lover_relation

	left_portrait = {
		character = root
		triggered_animation = {
			animation = happiness
		}
	}

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

	option = {
		name = lay_with_partner.012.a
		custom_tooltip = lay_with_partner_result.tt
		hidden = {
			if = {
				limit = {
					scope:actor = {
						is_female = yes
					}
					scope:recipient = {
						is_male = yes
					}
				}
				scope:actor = {
					make_pregnant = { father = scope:recipient number_of_children = 1 }
				}
			}
			else_if = {
				limit = {
					scope:actor = {
						is_male = yes
					}
					scope:recipient = {
						is_female = yes
					}
				}
				scope:recipient = {
					make_pregnant = { father = scope:actor number_of_children = 1 }
				}
			}
		}
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			add_opinion = {
				target = scope:actor
				modifier = laid_with_success_opinion
				opinion = 5
			}
		}
	}
}

# Ask option negative
lay_with_partner.013 = {
	title = lay_with_partner_event_title
	desc = lay_with_partner.013.desc
    type = character_event
	theme = lover_relation

	left_portrait = {
		character = root
		triggered_animation = {
			animation = sadness
		}
	}

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

	option = {
		name = lay_with_partner.013.a
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			add_opinion = {
				target = scope:actor
				modifier = laid_with_fail_opinion
				opinion = -10
			}
		}
	}
}

# failure
lay_with_partner.014 = {
	title = lay_with_partner_event_title
	desc = lay_with_partner.014.desc
    type = character_event
	theme = lover_relation

	left_portrait = {
		character = root
		triggered_animation = {
			animation = sadness
		}
	}

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

	option = {
		name = lay_with_partner.014.a
		scope:actor = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			remove_character_flag = is_naked
		}
		scope:recipient = {
			add_opinion = {
				target = scope:actor
				modifier = laid_with_fail_opinion
				opinion = -10
			}
		}
	}
}