﻿previous_partner_trigger = {
	OR = {
		$ACTOR$ = {
			OR = {
				any_memory = {
					has_memory_type = had_sex
					any_memory_participant = {
						this = $TARGET$
					}
				}	
				# any_memory = {
				# 	has_memory_type = had_sex_other
				# 	any_memory_participant = {
				# 		this = $TARGET$
				# 	}
				# }	
				any_memory = {
					has_memory_type = had_a_threesome_memory
					any_memory_participant = {
						this = $TARGET$
					}
				}	
			}
		}		
		$TARGET$ = {
			OR = {
				any_memory = {
					has_memory_type = had_sex
					any_memory_participant = {
						this = $ACTOR$
					}
				}	
				# any_memory = {
				# 	has_memory_type = had_sex_other
				# 	any_memory_participant = {
				# 		this = $ACTOR$
				# 	}
				# }	
				any_memory = {
					has_memory_type = had_a_threesome_memory
					any_memory_participant = {
						this = $ACTOR$
					}
				}	
			}
		}	
	}
}

is_likely_virgin = {
	AND = {
		is_married = no
		is_concubine = no
		is_female = yes
		num_of_relation_lover <= 0
		num_of_relation_soulmate <= 0
		age <= 30
		NOT = { has_trait = rakish }
		NOT = {
			any_child = {
				even_if_dead = yes
				count >= 1
			}
		}
		is_pregnant = no
		NOT = { has_trait = pregnant }
		OR = {
			age <= 18
			AND = {
				NOT = { has_trait = lustful }
				age <= 21
			}
			AND = {
				has_trait = chaste
				age <= 25
			}
			has_trait = celibate
		}
		NOR = {
			any_memory = {
				has_memory_type = had_sex
			}	
			# any_memory = {
			# 	has_memory_type = had_sex_other
			# }	
			any_memory = {
				has_memory_type = had_a_threesome_memory
			}	
			# any_memory = {
			# 	has_memory_type = consummation
			# }
		}
	}
}

is_willing_to_ask_trigger = {
	OR = {
		$ACTOR$ = {
			NOR = {
				has_trait = shy
				has_trait = chaste
			}
			OR = {
				has_trait = brave
				has_trait = ambitious
				has_trait = lustful
				has_trait = charming
				has_trait = curious
				AND = {
					diplomacy > average_skill_rating
					intrigue > average_skill_rating
				}
			}
		}
		$TARGET$ = {
			OR = {
				is_consort_of = $ACTOR$
				has_relation_lover = $ACTOR$
				has_relation_soulmate = $ACTOR$
			}
		}
		OR = {
			$ACTOR$ = {
				OR = {
					any_memory = {
						has_memory_type = had_sex
						any_memory_participant = {
							this = $TARGET$
						}
					}	
					# any_memory = {
					# 	has_memory_type = had_sex_other
					# 	any_memory_participant = {
					# 		this = $TARGET$
					# 	}
					# }	
					any_memory = {
						has_memory_type = had_a_threesome_memory
						any_memory_participant = {
							this = $TARGET$
						}
					}	
				}
			}		
			$TARGET$ = {
				OR = {
					any_memory = {
						has_memory_type = had_sex
						any_memory_participant = {
							this = $ACTOR$
						}
					}	
					# any_memory = {
					# 	has_memory_type = had_sex_other
					# 	any_memory_participant = {
					# 		this = $ACTOR$
					# 	}
					# }	
					any_memory = {
						has_memory_type = had_a_threesome_memory
						any_memory_participant = {
							this = $ACTOR$
						}
					}	
				}
			}	
		}
	}
}

classical_relations_culture_trigger = {
	OR = {
		#Latin/Roman Groups
		culture = culture:roman
		#Greek Groups
		culture = { has_cultural_pillar = heritage_ancient_greek }
		faith = faith:hellenic_pagan
		faith = faith:romanic_pagan_old
		#Norse Groups
		culture = culture:norse
		faith = faith:norse_pagan
		#Celtic Groups
		
		#Other Pagans
		faith = faith:finnish_pagan
		faith = faith:slavic_pagan
		faith = faith:baltic_pagan
	}
}