﻿familyromance_is_sibling_of_root_trigger = {
	any_sibling = { this = root }	
}


save_good_crush_character_trigger_check = {
	is_adult = no
	age >= root.age_dif_child_down
	age <= root.age_dif_child_up
	age > childhood_education_start_age
	this != root
	is_imprisoned = no
	
	# Family romance mod
	#is_close_family_of_root_trigger = no
	# Family romance mod
	
	NOR = {
		root = { has_relation_crush = prev }
		has_relation_victim = root
	}
	OR = {
		has_sexuality = heterosexual
		has_sexuality = bisexual
		has_sexuality = homosexual
	}
	is_attracted_to_gender_of = root
	root = { is_attracted_to_gender_of = prev }
	OR = {
		num_of_relation_crush <= 2
		has_trait = lustful
	}
	# Family romance mod	
	OR = {
		AND = {
			root = {
				is_ai = no
			}
			#familyromance_is_sibling_of_root_trigger = yes
			is_close_family_of_root_trigger = yes
		}
		is_close_family_of_root_trigger = no
	}
	# Family romance mod
}


childhood_1000_friend_sexuality_trigger = {	
	is_available_ai_child = yes	
	NOT = { root = { has_relation_crush = prev } }
	reverse_opinion = {
		target = root
		value >= low_positive_opinion
	}
	# Family romance mod
	#is_close_family_of_root_trigger = no
	OR = {
		AND = {
			root = {
				is_ai = no
			}
			#familyromance_is_sibling_of_root_trigger = yes
			is_close_family_of_root_trigger = yes
		}
		is_close_family_of_root_trigger = no
	}
	# Family romance mod	
	
	save_temporary_scope_as = child_check
	matching_gender_and_sexuality_trigger = {
		CHARACTER_1 = scope:child_check
		CHARACTER_2 = root
	}
}