﻿
###TRIGGER LIST

# has_same_education_as_compare_character_trigger
# has_same_education_as_root_trigger
# has_same_lifestyle_as_compare_character_trigger
# has_same_lifestyle_as_root_trigger
# has_same_fame_as_compare_character_trigger
# has_same_fame_as_root_trigger
# has_a_personality_trait_in_common_with_root_trigger
# has_a_personality_trait_opposite_to_root_trigger
# has_a_personality_trait_in_common_with_compare_character_trigger
# has_a_personality_trait_opposite_to_compare_character_trigger
# has_same_education_trait_as_root_trigger

# has_diplomacy_lifestyle_trait_trigger = yes
# has_martial_lifestyle_trait_trigger = yes
# has_stewardship_lifestyle_trait_trigger = yes
# has_intrigue_lifestyle_trait_trigger = yes
# has_learning_lifestyle_trait_trigger = yes

#has_any_high_skill_rating = yes






#Checks whether scope character and compare_character has the same type of education.
has_same_education_as_compare_character_trigger = {
	OR = {
		AND = {
			OR = {
				has_trait = education_intrigue_1
				has_trait = education_intrigue_2
				has_trait = education_intrigue_3
				has_trait = education_intrigue_4
				has_trait = education_intrigue_5
			}
			scope:compare_character = {
				OR = {
					has_trait = education_intrigue_1
					has_trait = education_intrigue_2
					has_trait = education_intrigue_3
					has_trait = education_intrigue_4
					has_trait = education_intrigue_5
				}
			}
		}
		AND = {
			OR = {
				has_trait = education_diplomacy_1
				has_trait = education_diplomacy_2
				has_trait = education_diplomacy_3
				has_trait = education_diplomacy_4
				has_trait = education_diplomacy_5
			}
			scope:compare_character = {
				OR = {
					has_trait = education_diplomacy_1
					has_trait = education_diplomacy_2
					has_trait = education_diplomacy_3
					has_trait = education_diplomacy_4
					has_trait = education_diplomacy_5
				}
			}
		}
		AND = {
			OR = {
				has_trait = education_stewardship_1
				has_trait = education_stewardship_2
				has_trait = education_stewardship_3
				has_trait = education_stewardship_4
				has_trait = education_stewardship_5
			}
			scope:compare_character = {
				OR = {
					has_trait = education_stewardship_1
					has_trait = education_stewardship_2
					has_trait = education_stewardship_3
					has_trait = education_stewardship_4
					has_trait = education_stewardship_5
				}
			}
		}
		AND = {
			OR = {
				has_trait = education_martial_1
				has_trait = education_martial_2
				has_trait = education_martial_3
				has_trait = education_martial_4
				has_trait = education_martial_5
			}
			scope:compare_character = {
				OR = {
					has_trait = education_martial_1
					has_trait = education_martial_2
					has_trait = education_martial_3
					has_trait = education_martial_4
					has_trait = education_martial_5
				}
			}
		}
		AND = {
			OR = {
				has_trait = education_learning_1
				has_trait = education_learning_2
				has_trait = education_learning_3
				has_trait = education_learning_4
				has_trait = education_learning_5
			}
			scope:compare_character = {
				OR = {
					has_trait = education_learning_1
					has_trait = education_learning_2
					has_trait = education_learning_3
					has_trait = education_learning_4
					has_trait = education_learning_5
				}
			}
		}
	}
}


has_same_education_as_root_trigger = {
	OR = {
		AND = {
			OR = {
				has_trait = education_intrigue_1
				has_trait = education_intrigue_2
				has_trait = education_intrigue_3
				has_trait = education_intrigue_4
				has_trait = education_intrigue_5
			}
			root = {
				OR = {
					has_trait = education_intrigue_1
					has_trait = education_intrigue_2
					has_trait = education_intrigue_3
					has_trait = education_intrigue_4
					has_trait = education_intrigue_5
				}
			}
		}
		AND = {
			OR = {
				has_trait = education_diplomacy_1
				has_trait = education_diplomacy_2
				has_trait = education_diplomacy_3
				has_trait = education_diplomacy_4
				has_trait = education_diplomacy_5
			}
			root = {
				OR = {
					has_trait = education_diplomacy_1
					has_trait = education_diplomacy_2
					has_trait = education_diplomacy_3
					has_trait = education_diplomacy_4
					has_trait = education_diplomacy_5
				}
			}
		}
		AND = {
			OR = {
				has_trait = education_stewardship_1
				has_trait = education_stewardship_2
				has_trait = education_stewardship_3
				has_trait = education_stewardship_4
				has_trait = education_stewardship_5
			}
			root = {
				OR = {
					has_trait = education_stewardship_1
					has_trait = education_stewardship_2
					has_trait = education_stewardship_3
					has_trait = education_stewardship_4
					has_trait = education_stewardship_5
				}
			}
		}
		AND = {
			OR = {
				has_trait = education_martial_1
				has_trait = education_martial_2
				has_trait = education_martial_3
				has_trait = education_martial_4
				has_trait = education_martial_5
			}
			root = {
				OR = {
					has_trait = education_martial_1
					has_trait = education_martial_2
					has_trait = education_martial_3
					has_trait = education_martial_4
					has_trait = education_martial_5
				}
			}
		}
		AND = {
			OR = {
				has_trait = education_learning_1
				has_trait = education_learning_2
				has_trait = education_learning_3
				has_trait = education_learning_4
				has_trait = education_learning_5
			}
			root = {
				OR = {
					has_trait = education_learning_1
					has_trait = education_learning_2
					has_trait = education_learning_3
					has_trait = education_learning_4
					has_trait = education_learning_5
				}
			}
		}
	}
}

has_same_lifestyle_as_compare_character_trigger = {
	OR = {
		AND = {
			has_trait = diplomat
			scope:compare_character = { has_trait = diplomat }
		}
		AND = {
			has_trait = lifestyle_reveler
			scope:compare_character = { has_trait = lifestyle_reveler }
		}
		AND = {
			has_trait = lifestyle_blademaster
			scope:compare_character = { has_trait = lifestyle_blademaster }
		}
		AND = {
			has_trait = lifestyle_hunter
			scope:compare_character = { has_trait = lifestyle_hunter }
		}
		AND = {
			has_trait = strategist
			scope:compare_character = { has_trait = strategist }
		}
		AND = {
			has_trait = architect
			scope:compare_character = { has_trait = architect }
		}
		AND = {
			has_intrigue_lifestyle_trait_trigger = yes
			scope:compare_character = { has_intrigue_lifestyle_trait_trigger = yes }
		}
		AND = {
			has_trait = seducer
			scope:compare_character = { has_trait = seducer }
		}
		AND = {
			has_trait = celibate
			scope:compare_character = { has_trait = celibate }
		}
		AND = {
			has_learning_lifestyle_trait_trigger = yes
			scope:compare_character = { has_learning_lifestyle_trait_trigger = yes }
		}
		AND = {
			has_trait = family_first
			scope:compare_character = { has_trait = family_first }
		}
		AND = {
			has_trait = sadistic
			scope:compare_character = { has_trait = sadistic }
		}
		AND = {
			has_trait = lunatic
			scope:compare_character = { has_trait = lunatic }
		}
	}
}

has_same_lifestyle_as_root_trigger = {
	OR = {
		AND = {
			has_trait = diplomat
			root = { has_trait = diplomat }
		}
		AND = {
			has_trait = lifestyle_reveler
			root = { has_trait = lifestyle_reveler }
		}
		AND = {
			has_trait = lifestyle_blademaster
			root = { has_trait = lifestyle_blademaster }
		}
		AND = {
			has_trait = lifestyle_hunter
			root = { has_trait = lifestyle_hunter }
		}
		AND = {
			has_trait = strategist
			root = { has_trait = strategist }
		}
		AND = {
			has_trait = architect
			root = { has_trait = architect }
		}
		AND = {
			has_intrigue_lifestyle_trait_trigger = yes
			root = { has_intrigue_lifestyle_trait_trigger = yes }
		}
		AND = {
			has_trait = seducer
			root = { has_trait = seducer }
		}
		AND = {
			has_trait = celibate
			root = { has_trait = celibate }
		}
		AND = {
			has_learning_lifestyle_trait_trigger = yes
			root = { has_learning_lifestyle_trait_trigger = yes }
		}
		AND = {
			has_trait = family_first
			root = { has_trait = family_first }
		}
		AND = {
			has_trait = sadistic
			root = { has_trait = sadistic }
		}
		AND = {
			has_trait = lunatic
			root = { has_trait = lunatic }
		}
	}
}

has_same_fame_as_compare_character_trigger = {
	OR = {
		AND = {
			has_trait = berserker
			scope:compare_character = { has_trait = berserker }
		}
		AND = {
			OR = {
				has_trait = bastard
				has_trait = legitimized_bastard
			}
			scope:compare_character = {
				has_trait = bastard
				has_trait = legitimized_bastard
			}
		}
		AND = {
			has_trait = kinslayer
			scope:compare_character = { has_trait = kinslayer }
		}
		AND = {
			has_trait = sodomite
			scope:compare_character = { has_trait = sodomite }
			OR = {
				AND = {
					is_female = yes
					scope:compare_character = { is_female = yes }
				}
				AND = {
					is_female = no
					scope:compare_character = { is_female = no }
				}
			}
		}
		AND = {
			has_trait = deviant
			scope:compare_character = { has_trait = deviant }
		}
		AND = {
			has_trait = viking
			scope:compare_character = { has_trait = viking }
		}
		AND = {
			has_trait = adventurer
			scope:compare_character = { has_trait = adventurer }
		}
		AND = {
			has_trait = lunatic
			scope:compare_character = { has_trait = lunatic }
		}
		AND = {
			has_trait = incestuous
			scope:compare_character = { has_trait = incestuous }
		}
	}
}

has_same_fame_as_root_trigger = {
	OR = {
		AND = {
			has_trait = berserker
			root = { has_trait = berserker }
		}
		AND = {
			OR = {
				has_trait = bastard
				has_trait = legitimized_bastard
			}
			root = {
				has_trait = bastard
				has_trait = legitimized_bastard
			}
		}
		AND = {
			has_trait = kinslayer
			root = { has_trait = kinslayer }
		}
		AND = {
			has_sexuality = homosexual
			root = { has_sexuality = homosexual }
			OR = {
				AND = {
					is_female = yes
					root = { is_female = yes }
				}
				AND = {
					is_female = no
					root = { is_female = no }
				}
			}
		}
		AND = {
			has_trait = deviant
			root = { has_trait = deviant }
		}
		AND = {
			has_trait = viking
			root = { has_trait = viking }
		}
		AND = {
			has_trait = adventurer
			root = { has_trait = adventurer }
		}
		AND = {
			has_trait = lunatic
			root = { has_trait = lunatic }
		}
	}
}

has_a_personality_trait_in_common_with_root_trigger = {
	OR = {
		AND = {
			has_trait = chaste
			root = { has_trait = chaste }
		}
		AND = {
			has_trait = lustful
			root = { has_trait = lustful }
		}
		AND = {
			has_trait = temperate
			root = { has_trait = temperate }
		}
		AND = {
			has_trait = gluttonous
			root = { has_trait = gluttonous }
		}
		AND = {
			has_trait = generous
			root = { has_trait = generous }
		}
		AND = {
			has_trait = greedy
			root = { has_trait = greedy }
		}
		AND = {
			has_trait = diligent
			root = { has_trait = diligent }
		}
		AND = {
			has_trait = lazy
			root = { has_trait = lazy }
		}
		AND = {
			has_trait = wrathful
			root = { has_trait = wrathful }
		}
		AND = {
			has_trait = calm
			root = { has_trait = calm }
		}
		AND = {
			has_trait = impatient
			root = { has_trait = impatient }
		}
		AND = {
			has_trait = patient
			root = { has_trait = patient }
		}
		AND = {
			has_trait = stubborn
			root = { has_trait = stubborn }
		}
		AND = {
			has_trait = fickle
			root = { has_trait = fickle }
		}
		AND = {
			has_trait = humble
			root = { has_trait = humble }
		}
		AND = {
			has_trait = arrogant
			root = { has_trait = arrogant }
		}
		AND = {
			has_trait = deceitful
			root = { has_trait = deceitful }
		}
		AND = {
			has_trait = honest
			root = { has_trait = honest }
		}
		AND = {
			has_trait = craven
			root = { has_trait = craven }
		}
		AND = {
			has_trait = brave
			root = { has_trait = brave }
		}
		AND = {
			has_trait = shy
			root = { has_trait = shy }
		}
		AND = {
			has_trait = gregarious
			root = { has_trait = gregarious }
		}
		AND = {
			has_trait = ambitious
			root = { has_trait = ambitious }
		}
		AND = {
			has_trait = content
			root = { has_trait = content }
		}
		AND = {
			has_trait = arbitrary
			root = { has_trait = arbitrary }
		}
		AND = {
			has_trait = just
			root = { has_trait = just }
		}
		AND = {
			has_trait = cynical
			root = { has_trait = cynical }
		}
		AND = {
			has_trait = zealous
			root = { has_trait = zealous }
		}
		AND = {
			has_trait = paranoid
			root = { has_trait = paranoid }
		}
		AND = {
			has_trait = trusting
			root = { has_trait = trusting }
		}
		AND = {
			has_trait = compassionate
			root = { has_trait = compassionate }
		}
		AND = {
			has_trait = callous
			root = { has_trait = callous }
		}
		AND = {
			has_trait = sadistic
			root = { has_trait = sadistic }
		}
		AND = {
			has_trait = vengeful
			root = { has_trait = vengeful }
		}
		AND = {
			has_trait = forgiving
			root = { has_trait = forgiving }
		}
		AND = {
			has_trait = eccentric
			root = { has_trait = eccentric }
		}
	}
}

has_a_personality_trait_opposite_to_root_trigger = {
	OR = {
		AND = {
			has_trait = chaste
			root = { has_trait = lustful }
		}
		AND = {
			has_trait = lustful
			root = { has_trait = chaste }
		}
		AND = {
			has_trait = temperate
			root = { has_trait = gluttonous }
		}
		AND = {
			has_trait = gluttonous
			root = { has_trait = temperate }
		}
		AND = {
			has_trait = generous
			root = { has_trait = greedy }
		}
		AND = {
			has_trait = greedy
			root = { has_trait = generous }
		}
		AND = {
			has_trait = diligent
			root = { has_trait = lazy }
		}
		AND = {
			has_trait = lazy
			root = { has_trait = diligent }
		}
		AND = {
			has_trait = wrathful
			root = { has_trait = calm }
		}
		AND = {
			has_trait = calm
			root = { has_trait = wrathful }
		}
		AND = {
			has_trait = impatient
			root = { has_trait = patient }
		}
		AND = {
			has_trait = patient
			root = { has_trait = impatient }
		}
		AND = {
			has_trait = stubborn
			root = { 
				OR = {
					has_trait = fickle
					has_trait = eccentric
				}
			}
		}
		AND = {
			OR = {
				has_trait = fickle
				has_trait = eccentric
			}
			root = { has_trait = stubborn }
		}
		AND = {
			has_trait = humble
			root = { has_trait = arrogant }
		}
		AND = {
			has_trait = arrogant
			root = { has_trait = humble }
		}
		AND = {
			has_trait = deceitful
			root = { has_trait = honest }
		}
		AND = {
			has_trait = honest
			root = { has_trait = deceitful }
		}
		AND = {
			has_trait = craven
			root = { has_trait = brave }
		}
		AND = {
			has_trait = brave
			root = { has_trait = craven }
		}
		AND = {
			has_trait = shy
			root = { has_trait = gregarious }
		}
		AND = {
			has_trait = gregarious
			root = { has_trait = shy }
		}
		AND = {
			has_trait = ambitious
			root = { has_trait = content }
		}
		AND = {
			has_trait = content
			root = { has_trait = ambitious }
		}
		AND = {
			has_trait = arbitrary
			root = { has_trait = just }
		}
		AND = {
			has_trait = just
			root = { has_trait = arbitrary }
		}
		AND = {
			has_trait = cynical
			root = { has_trait = zealous }
		}
		AND = {
			has_trait = zealous
			root = { has_trait = cynical }
		}
		AND = {
			has_trait = paranoid
			root = { has_trait = trusting }
		}
		AND = {
			has_trait = trusting
			root = { has_trait = paranoid }
		}
		AND = {
			has_trait = compassionate
			root = {
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		AND = {
			has_trait = callous
			root = { has_trait = compassionate }
		}
		AND = {
			has_trait = sadistic
			root = { has_trait = compassionate }
		}
		AND = {
			has_trait = vengeful
			root = { has_trait = forgiving }
		}
		AND = {
			has_trait = forgiving
			root = { has_trait = vengeful }
		}
	}
}

has_a_personality_trait_in_common_with_compare_character_trigger = {
	OR = {
		AND = {
			has_trait = chaste
			scope:compare_character = { has_trait = chaste }
		}
		AND = {
			has_trait = lustful
			scope:compare_character = { has_trait = lustful }
		}
		AND = {
			has_trait = temperate
			scope:compare_character = { has_trait = temperate }
		}
		AND = {
			has_trait = gluttonous
			scope:compare_character = { has_trait = gluttonous }
		}
		AND = {
			has_trait = generous
			scope:compare_character = { has_trait = generous }
		}
		AND = {
			has_trait = greedy
			scope:compare_character = { has_trait = greedy }
		}
		AND = {
			has_trait = diligent
			scope:compare_character = { has_trait = diligent }
		}
		AND = {
			has_trait = lazy
			scope:compare_character = { has_trait = lazy }
		}
		AND = {
			has_trait = wrathful
			scope:compare_character = { has_trait = wrathful }
		}
		AND = {
			has_trait = calm
			scope:compare_character = { has_trait = calm }
		}
		AND = {
			has_trait = impatient
			scope:compare_character = { has_trait = impatient }
		}
		AND = {
			has_trait = patient
			scope:compare_character = { has_trait = patient }
		}
		AND = {
			has_trait = stubborn
			scope:compare_character = { has_trait = stubborn }
		}
		AND = {
			has_trait = fickle
			scope:compare_character = { has_trait = fickle }
		}
		AND = {
			has_trait = humble
			scope:compare_character = { has_trait = humble }
		}
		AND = {
			has_trait = arrogant
			scope:compare_character = { has_trait = arrogant }
		}
		AND = {
			has_trait = deceitful
			scope:compare_character = { has_trait = deceitful }
		}
		AND = {
			has_trait = honest
			scope:compare_character = { has_trait = honest }
		}
		AND = {
			has_trait = craven
			scope:compare_character = { has_trait = craven }
		}
		AND = {
			has_trait = brave
			scope:compare_character = { has_trait = brave }
		}
		AND = {
			has_trait = shy
			scope:compare_character = { has_trait = shy }
		}
		AND = {
			has_trait = gregarious
			scope:compare_character = { has_trait = gregarious }
		}
		AND = {
			has_trait = ambitious
			scope:compare_character = { has_trait = ambitious }
		}
		AND = {
			has_trait = content
			scope:compare_character = { has_trait = content }
		}
		AND = {
			has_trait = arbitrary
			scope:compare_character = { has_trait = arbitrary }
		}
		AND = {
			has_trait = just
			scope:compare_character = { has_trait = just }
		}
		AND = {
			has_trait = cynical
			scope:compare_character = { has_trait = cynical }
		}
		AND = {
			has_trait = zealous
			scope:compare_character = { has_trait = zealous }
		}
		AND = {
			has_trait = paranoid
			scope:compare_character = { has_trait = paranoid }
		}
		AND = {
			has_trait = trusting
			scope:compare_character = { has_trait = trusting }
		}
		AND = {
			has_trait = compassionate
			scope:compare_character = { has_trait = compassionate }
		}
		AND = {
			has_trait = callous
			scope:compare_character = { has_trait = callous }
		}
		AND = {
			has_trait = sadistic
			scope:compare_character = { has_trait = sadistic }
		}
		AND = {
			has_trait = vengeful
			scope:compare_character = { has_trait = vengeful }
		}
		AND = {
			has_trait = forgiving
			scope:compare_character = { has_trait = forgiving }
		}
	}
}

has_a_personality_trait_opposite_to_compare_character_trigger = {
	OR = {
		AND = {
			has_trait = chaste
			scope:compare_character = { has_trait = lustful }
		}
		AND = {
			has_trait = lustful
			scope:compare_character = { has_trait = chaste }
		}
		AND = {
			has_trait = temperate
			scope:compare_character = { has_trait = gluttonous }
		}
		AND = {
			has_trait = gluttonous
			scope:compare_character = { has_trait = temperate }
		}
		AND = {
			has_trait = generous
			scope:compare_character = { has_trait = greedy }
		}
		AND = {
			has_trait = greedy
			scope:compare_character = { has_trait = generous }
		}
		AND = {
			has_trait = diligent
			scope:compare_character = { has_trait = lazy }
		}
		AND = {
			has_trait = lazy
			scope:compare_character = { has_trait = diligent }
		}
		AND = {
			has_trait = wrathful
			scope:compare_character = { has_trait = calm }
		}
		AND = {
			has_trait = calm
			scope:compare_character = { has_trait = wrathful }
		}
		AND = {
			has_trait = impatient
			scope:compare_character = { has_trait = patient }
		}
		AND = {
			has_trait = patient
			scope:compare_character = { has_trait = impatient }
		}
		AND = {
			has_trait = stubborn
			scope:compare_character = { has_trait = fickle }
		}
		AND = {
			has_trait = fickle
			scope:compare_character = { has_trait = stubborn }
		}
		AND = {
			has_trait = humble
			scope:compare_character = { has_trait = arrogant }
		}
		AND = {
			has_trait = arrogant
			scope:compare_character = { has_trait = humble }
		}
		AND = {
			has_trait = deceitful
			scope:compare_character = { has_trait = honest }
		}
		AND = {
			has_trait = honest
			scope:compare_character = { has_trait = deceitful }
		}
		AND = {
			has_trait = craven
			scope:compare_character = { has_trait = brave }
		}
		AND = {
			has_trait = brave
			scope:compare_character = { has_trait = craven }
		}
		AND = {
			has_trait = shy
			scope:compare_character = { has_trait = gregarious }
		}
		AND = {
			has_trait = gregarious
			scope:compare_character = { has_trait = shy }
		}
		AND = {
			has_trait = ambitious
			scope:compare_character = { has_trait = content }
		}
		AND = {
			has_trait = content
			scope:compare_character = { has_trait = ambitious }
		}
		AND = {
			has_trait = arbitrary
			scope:compare_character = { has_trait = just }
		}
		AND = {
			has_trait = just
			scope:compare_character = { has_trait = arbitrary }
		}
		AND = {
			has_trait = cynical
			scope:compare_character = { has_trait = zealous }
		}
		AND = {
			has_trait = zealous
			scope:compare_character = { has_trait = cynical }
		}
		AND = {
			has_trait = paranoid
			scope:compare_character = { has_trait = trusting }
		}
		AND = {
			has_trait = trusting
			scope:compare_character = { has_trait = paranoid }
		}
		AND = {
			has_trait = compassionate
			scope:compare_character = {
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		AND = {
			has_trait = callous
			scope:compare_character = { has_trait = compassionate }
		}
		AND = {
			has_trait = sadistic
			scope:compare_character = { has_trait = compassionate }
		}
		AND = {
			has_trait = vengeful
			scope:compare_character = { has_trait = forgiving }
		}
		AND = {
			has_trait = forgiving
			scope:compare_character = { has_trait = vengeful }
		}
	}
}

has_same_education_trait_as_root_trigger = {
	OR = {
		AND = {
			has_trait = education_diplomacy
			root = { has_trait = education_diplomacy }
		}
		AND = {
			has_trait = education_martial
			root = { has_trait = education_martial }
		}
		AND = {
			has_trait = education_stewardship
			root = { has_trait = education_stewardship }
		}
		AND = {
			has_trait = education_intrigue
			root = { has_trait = education_intrigue }
		}
		AND = {
			has_trait = education_learning
			root = { has_trait = education_learning }
		}
	}
}

has_same_education_trait_as_character_trigger = {
	OR = {
		AND = {
			has_trait = education_diplomacy
			$CHARACTER$ = { has_trait = education_diplomacy }
		}
		AND = {
			has_trait = education_martial
			$CHARACTER$ = { has_trait = education_martial }
		}
		AND = {
			has_trait = education_stewardship
			$CHARACTER$ = { has_trait = education_stewardship }
		}
		AND = {
			has_trait = education_intrigue
			$CHARACTER$ = { has_trait = education_intrigue }
		}
		AND = {
			has_trait = education_learning
			$CHARACTER$ = { has_trait = education_learning }
		}
	}
}


has_diplomacy_lifestyle_trait_trigger = {
	OR = {
		has_trait = diplomat
		has_trait = august
		has_trait = family_first
	}
}

has_martial_lifestyle_trait_trigger = {
	OR = {
		has_trait = strategist
		has_trait = overseer
		has_trait = gallant
	}
}

has_stewardship_lifestyle_trait_trigger = {
	OR = {
		has_trait = architect
		has_trait = administrator
		has_trait = avaricious
	}
}

has_intrigue_lifestyle_trait_trigger = {
	OR = {
		has_trait = schemer
		has_trait = seducer
		has_trait = torturer
	}
}

has_learning_lifestyle_trait_trigger = {
	OR = {
		has_trait = scholar
		has_trait = whole_of_body
		has_trait = theologian
	}
}

has_special_content_trait = {
	OR = {
		is_cannibal_trigger = yes
		is_witch_trigger = yes
		is_deviant_trigger = yes
		is_incestuous_trigger = yes
		has_trait = lifestyle_reveler
		has_trait = lifestyle_blademaster
		has_trait = lifestyle_hunter
		has_trait = lifestyle_mystic
		has_trait = lifestyle_herbalist
		has_trait = drunkard
		has_trait = lunatic
		has_trait = depressed
		has_trait = possessed
	}
}

has_lifestyle_trait = {
	OR = {
		has_trait = lifestyle_reveler
		has_trait = lifestyle_blademaster
		has_trait = lifestyle_hunter
		has_trait = lifestyle_mystic
		has_trait = lifestyle_herbalist
		has_trait = lifestyle_physician
	}
}

has_ward_guardian_education_match_compare_character_trigger = {
	OR = {
		AND = {
			has_focus = education_diplomacy
			scope:compare_character = {
				OR = {
					has_trait = education_diplomacy_1
					has_trait = education_diplomacy_2
					has_trait = education_diplomacy_3
					has_trait = education_diplomacy_4
				}
			}
		}
		AND = {
			has_focus = education_martial
			scope:compare_character = {
				OR = {
					has_trait = education_martial_1
					has_trait = education_martial_2
					has_trait = education_martial_3
					has_trait = education_martial_4
				}
			}
		}
		AND = {
			has_focus = education_stewardship
			scope:compare_character = {
				OR = {
					has_trait = education_stewardship_1
					has_trait = education_stewardship_2
					has_trait = education_stewardship_3
					has_trait = education_stewardship_4
				}
			}
		}
		AND = {
			has_focus = education_intrigue
			scope:compare_character = {
				OR = {
					has_trait = education_intrigue_1
					has_trait = education_intrigue_2
					has_trait = education_intrigue_3
					has_trait = education_intrigue_4
				}
			}
		}
		AND = {
			has_focus = education_learning
			scope:compare_character = {
				OR = {
					has_trait = education_learning_1
					has_trait = education_learning_2
					has_trait = education_learning_3
					has_trait = education_learning_4
				}
			}
		}
	}
}

has_any_high_skill_rating = {
	OR = {
		diplomacy >= high_skill_rating
		intrigue >= high_skill_rating
		prowess >= high_skill_rating
		learning >= high_skill_rating
		martial >= high_skill_rating
		stewardship >= high_skill_rating
	}
}