﻿
# Other side is suitable for seducing
familyromance_0001_valid_relative = {
	is_available_healthy_adult = yes
	
	NOR = {
		has_trait = celibate
		has_trait = incapable
		has_trait = eunuch
		has_trait = blind
		has_trait = devoted
		has_sexuality = asexual
		has_relation_lover = root
		is_concubine_of = root
		is_spouse_of = root
		is_at_war_with = root		
	}	
	in_diplomatic_range = root
	is_visibly_fertile = yes
		
	OR = {
		AND = {
			is_female = yes
			is_attracted_to_men = yes
			#root = { is_attracted_to_women = yes }
			root = { is_male = yes }
		}
		AND = {
			is_male = yes
			is_attracted_to_women = yes
			#root = { is_attracted_to_men = yes }
			root = { is_female = yes }
		}
	}
	
	NOT = { has_character_flag = block_relative_seduce_attempts }
	
}

familyromance_coming_at_age_valid_relative = {
	is_adult = yes
	
	NOR = {
		has_trait = celibate
		has_trait = incapable
		has_trait = eunuch
		has_trait = blind
		has_trait = devoted
		has_sexuality = asexual		
		has_relation_lover = root
		is_concubine_of = root
		is_spouse_of = root
		is_at_war_with = root		
	}	
	in_diplomatic_range = root
	is_visibly_fertile = yes
	is_imprisoned = no
	
	OR = {
		AND = {
			is_female = yes
			is_attracted_to_men = yes
			#root = { is_attracted_to_women = yes }
			root = { is_male = yes }
		}
		AND = {
			is_male = yes
			is_attracted_to_women = yes
			#root = { is_attracted_to_men = yes }
			root = { is_female = yes }
		}
	}	
}


familyromance_feast_seduce_valid_relative = {
	is_adult = yes
	
	NOR = {
		has_trait = celibate
		has_trait = incapable
		has_trait = eunuch
		has_trait = blind
		has_trait = devoted
		has_sexuality = asexual
		has_relation_lover = root
		is_concubine_of = root
		is_spouse_of = root
		is_at_war_with = root
	}	
	in_diplomatic_range = root
	is_visibly_fertile = yes
	is_imprisoned = no
	
	OR = {
		AND = {
			is_female = yes
			is_attracted_to_men = yes
			#root = { is_attracted_to_women = yes }
			root = { is_male = yes }
		}
		AND = {
			is_male = yes
			is_attracted_to_women = yes
			#root = { is_attracted_to_men = yes }
			root = { is_female = yes }
		}
	}
	
	familyromance_character_not_rival = yes
	NOT = { has_character_flag = block_relative_seduce_attempts }
}

familyromance_character_not_rival = {	
	NOR = {
		has_relation_rival = root
		has_relation_nemesis = root
	}
}

familyromance_hunt_seduce_valid_relative = {
	familyromance_feast_seduce_valid_relative = yes
}


# Player character is suitable for seducing
familyromance_player_suitable_to_attraction = {
	root = {		
		is_available_quick = {
			adult = yes
			alive = yes
			travel = no
			in_army = no
			imprisoned = no
			incapable = no
		}

		NOR = {
			has_trait = celibate
			has_trait = incapable
			has_trait = eunuch
			has_trait = blind
			has_trait = devoted
			has_sexuality = asexual
		}
		is_visibly_fertile = yes			
		
		not = { exists = involved_activity }				
	}
}

familyromance_coming_at_age_player_suitable_to_attraction = {
	root = {		
		is_adult = yes
		NOR = {
			has_trait = celibate
			has_trait = incapable
			has_trait = eunuch
			has_trait = blind
			has_trait = devoted
			has_sexuality = asexual
		}
		is_visibly_fertile = yes
		is_imprisoned = no				
	}	
}

familyromance_feast_player_suitable_to_attraction = {
	familyromance_coming_at_age_player_suitable_to_attraction = yes
	
	NOT = { has_character_flag = had_recent_family_relation_seduce_feast }
}

familyromance_hunt_player_suitable_to_attraction = {
	familyromance_coming_at_age_player_suitable_to_attraction = yes
	
	#NOR = {
	#	has_trait = wounded_2
	#	has_trait = wounded_3
	#	has_trait = infirm
	#	has_trait = maimed
	#	has_trait = blind
	#}
	#has_contagious_deadly_disease_trigger = no

	NOT = { has_character_flag = had_recent_family_relation_seduce_hunt }
}

familyromance_warden_player_for_interaction = {	
	is_available_quick = {
		adult = yes
		alive = yes
		travel = no
		in_army = no
		imprisoned = no
		incapable = no
	}
}


familyromance_lustful_or_seduction = {
	OR = {
		has_trait = lustful
		has_trait = seducer
	}
}

familyromance_not_married_or_concubine = {
	NOR = {
		is_married = no
		is_concubine = no
	}
}


familyromance_has_unattractive_traits = {
	OR = {
		has_trait = beauty_bad_1
		has_trait = beauty_bad_2
		has_trait = beauty_bad_3
		has_trait = scaly
		has_trait = spindly
		has_trait = hunchbacked
		has_trait = clubfooted
		has_trait = disfigured
		has_trait = one_legged
		has_trait = weak		
	}
}

familyromance_has_attractive_traits = {
	OR = {
		has_trait = beauty_good_1
		has_trait = beauty_good_2
		has_trait = beauty_good_3
	}
}


familyromance_has_love_drinking_traits = {
	OR = {
		has_trait = lifestyle_reveler
		has_trait = drunkard
		has_trait = gregarious
	}
}


familyromance_has_cruelty_traits = {
	OR = {
		has_trait = wrathful
		has_trait = vengeful
		has_trait = deceitful
		has_trait = sadistic
		has_trait = callous
	}
}


familyromance_has_egotism_traits = {
	OR = {		
		has_trait = vengeful
		has_trait = arrogant
		has_trait = stubborn
		has_trait = ambitious
	}
}

familyromance_has_content_traits = {
	OR = {		
		has_trait = content
		has_trait = temperate
	}
}

familyromance_has_kind_traits = {
	OR = {		
		has_trait = gluttonous
		has_trait = compassionate
	}
}


# Based on could_marry_character_trigger , but without faith hostility & consanguinity checks
familyromance_could_marry_no_religion_trigger = {
	save_temporary_scope_as = can_marry_check
	can_marry_common_trigger = yes
	$CHARACTER$ = { can_marry_common_trigger = yes }
	#Opposite genders if you don't have accepted same-sex marriage game rule enabled and your faith supports it
	trigger_if = {
		limit = {
			$CHARACTER$ = { allowed_to_marry_same_sex_trigger = no }
		}
		sex_opposite_of = $CHARACTER$
	}
	#Have you recently divorced this character?
	NOT = {
		has_opinion_modifier = {
			modifier = divorced_me_opinion
			target = $CHARACTER$
		}
	}
	#---------------
	# ...
	#---------------
	
	# Cannot marry self
	NOT = {
		scope:can_marry_check = { is_spouse_of = $CHARACTER$ }
	}
	
}



familyromance_has_close_family_parents_who_eloped = {
	AND = {
		exists = global_var:lost_primary_title
		exists = global_var:lost_title_parent
	}
}