# elector_self_feudal_vote
# elector_self_tribal_vote
# elector_heir_vote

# elector_candidate_age_vote
# elector_candidate_age_children_vote
# elector_candidate_age_elective_gavelkind_vote
# elector_candidate_age_tanistry_vote
# elector_candidate_age_imperial_elective_vote

# elector_candidate_gender_vote
# elector_candidate_culture_vote
# elector_candidate_culture_bias_strong_vote
# elector_candidate_religion_vote
# elector_candidate_religion_bias_weak_vote
# elector_candidate_religion_bias_strong_vote

# elector_candidate_barbarism_vote
# elector_candidate_tribalism_vote
# elector_candidate_warrior_vote
# elector_candidate_culturism_vote
# elector_candidate_nepotism_vote
# elector_candidate_nepotism_vote_tanistry
# elector_candidate_prestige_vote
# elector_candidate_piety_vote
# elector_candidate_education_lifestyle_vote

# elector_candidate_claims_vote
# elector_candidate_claims_bias_strong_vote
# elector_candidate_claims_bias_weak_vote

# elector_candidate_traits_vote
# elector_candidate_traits_disfigured_vote
# elector_candidate_traits_disfigured_bias_strong_vote
# elector_candidate_traits_excommunication_vote
# elector_candidate_traits_excommunication_bias_strong_vote
# elector_candidate_traits_feudal_vote
# elector_candidate_traits_tribal_vote
# elector_candidate_traits_pagan_branch_vote
# elector_candidate_traits_pagan_branch_bias_weak_vote

# elector_ruler_traits_vote
# elector_candidate_opinion_vote
# elector_ruler_opinion_vote

# elector_candidate_roman_attributes_martial_vote
# elector_candidate_roman_attributes_diplomacy_vote
# elector_candidate_roman_attributes_intrigue_vote

# elector_candidate_stewardship_vote
# elector_candidate_opinion_eldership_vote

elector_self_feudal_vote = {
	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_myself

		character = FROM

		NOR = {
			trait = humble
			trait = content
			trait = craven
			trait = slothful
			trait = stressed
			trait = depressed
			trait = ambitious
		}

		FROMFROM = {
			holder_scope = {
				NOT = { is_parent_of = ROOT }
			}
		}
	}

	additive_modifier = {
		value = -25
		localisation_key = tooltip_feudal_elector_vote_not_myself

		character = FROM
		NOT = { trait = ambitious }

		OR = {
			trait = humble
			trait = content
			trait = craven
			trait = slothful
			trait = stressed
			trait = depressed
		}
	}

	additive_modifier = {
		value = 40
		localisation_key = tooltip_feudal_elector_vote_myself_heir

		character = FROM

		NOR = {
			trait = humble
			trait = content
			trait = craven
			trait = slothful
			trait = stressed
			trait = depressed
			trait = ambitious
		}

		FROMFROM = {
			holder_scope = {
				is_parent_of = ROOT
			}
		}
	}

	additive_modifier = {
		value = 40
		localisation_key = tooltip_feudal_elector_vote_myself_ambitious

		character = FROM
		trait = ambitious
		is_adult = yes
	}
}

elector_self_tribal_vote = {
	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_myself

		character = FROM

		NOR = {
			trait = humble
			trait = content
			trait = craven
			trait = slothful
			trait = stressed
			trait = depressed
			trait = ambitious
		}

		FROMFROM = {
			holder_scope = {
				NOT = { is_parent_of = ROOT }
			}
		}
	}

	additive_modifier = {
		value = -15 # Feudal: -25
		localisation_key = tooltip_feudal_elector_vote_not_myself

		character = FROM
		NOT = { trait = ambitious }

		OR = {
			trait = humble
			trait = content
			trait = craven
			trait = slothful
			trait = stressed
			trait = depressed
		}
	}

	additive_modifier = {
		value = 40
		localisation_key = tooltip_feudal_elector_vote_myself_heir

		character = FROM

		NOR = {
			trait = humble
			trait = content
			trait = craven
			trait = slothful
			trait = stressed
			trait = depressed
			trait = ambitious
		}

		FROMFROM = {
			holder_scope = {
				is_parent_of = ROOT
			}
		}
	}

	additive_modifier = {
		value = 40
		localisation_key = tooltip_feudal_elector_vote_myself_ambitious

		character = FROM
		trait = ambitious
		# is_adult = yes # only required in feudal variant above
	}
}

elector_heir_vote = {
	additive_modifier = { # Current ruler will always try to elect his player heir
		value = 50
		localisation_key = tooltip_feudal_elector_vote_player_heir

		has_landed_title = FROMFROM

		player_heir = {
			character = FROM

			NOR = {
				is_rival = ROOT # Unless rival
				character = ROOT
			}
		}
	}
}

elector_candidate_age_vote = {
	# Eldership ruler doesn't care about age of one's children
	additive_modifier = { # Still too young for older rulers
		value = -10
		localisation_key = tooltip_feudal_elector_vote_youngster

		age >= 30

		FROM = {
			is_adult = yes
			age < 25
			NOT = { character = ROOT }
		}

		FROMFROM = {
			NOT = { has_law = succ_eldership }
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_youngster

		age >= 40

		FROM = {
			age >= 25
			age < 35
			NOT = { character = ROOT }
		}

		FROMFROM = {
			NOT = { has_law = succ_eldership }
		}
	}

	additive_modifier = { # Or too old for younger rulers
		value = -10
		localisation_key = tooltip_feudal_elector_vote_oldtimer

		age < 40

		FROM = {
			age >= 40
			age < 50
			NOT = { character = ROOT }
		}

		FROMFROM = {
			NOT = { has_law = succ_eldership }
		}
	}

	additive_modifier = { # Or simply too old overall
		value = -15
		localisation_key = tooltip_feudal_elector_vote_decrepit

		FROM = {
			age >= 50
			NOT = { character = ROOT }
		}

		FROMFROM = {
			NOT = { has_law = succ_eldership }
		}
	}
}

# Used in Feudal Elective and Princely Elective. Imperial Elective uses slightly different logic for children.
elector_candidate_age_children_vote = {
	# Ageism
	additive_modifier = {
		value = -30
		localisation_key = tooltip_feudal_elector_vote_baby

		FROM = {
			age < 5
			NOT = { character = ROOT }
		}
	}
	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_child

		FROM = {
			age >= 5
			age < 10
			NOT = { character = ROOT }
		}
	}
	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_child

		FROM = {
			age >= 10
			is_adult = no
			NOT = { character = ROOT }
		}
	}
}

elector_candidate_age_elective_gavelkind_vote = {
	# Ageism
	additive_modifier = {
		value = -50 # Feudal: -30
		localisation_key = tooltip_feudal_elector_vote_baby

		FROM = {
			age < 5
			NOT = { character = ROOT }
		}
	}

	additive_modifier = {
		value = -40 # Feudal: -15
		localisation_key = tooltip_feudal_elector_vote_child

		FROM = {
			age >= 5
			age < 10
			NOT = { character = ROOT }
		}
	}

	additive_modifier = {
		value = -30 # Feudal: -10
		localisation_key = tooltip_feudal_elector_vote_child

		FROM = {
			age >= 10
			is_adult = no
			NOT = { character = ROOT }
		}
	}

#	additive_modifier = { # Still too young for older rulers
#		value = -20 # Feudal: -10
#		localisation_key = tooltip_feudal_elector_vote_youngster
#
#		age >= 30
#
#		FROM = {
#			is_adult = yes
#			age < 25
#		}
#	}
#
#	additive_modifier = {
#		value = -15 # Feudal: -10
#		localisation_key = tooltip_feudal_elector_vote_youngster
#
#		age >= 40
#
#		FROM = {
#			age >= 25
#			age < 35
#		}
#	}

	additive_modifier = { # Old just right
		value = 15
		localisation_key = tooltip_feudal_elector_vote_prime_age

		FROM = {
			age >= 20
			age < 40
			NOT = { character = ROOT }
		}
	}

	additive_modifier = { # Too old to rule
		value = -15
		localisation_key = tooltip_feudal_elector_vote_decrepit

		FROM = {
			age >= 40
			age < 50
			NOT = { character = ROOT }
		}
	}

	additive_modifier = { # Or simply too old overall
		value = -35 # Feudal: -15
		localisation_key = tooltip_feudal_elector_vote_decrepit

		FROM = {
			age >= 50
			NOT = { character = ROOT }
		}
	}
}

elector_candidate_age_tanistry_vote = {
	additive_modifier = {
		value = -50 # Feudal: -30
		localisation_key = tooltip_feudal_elector_vote_baby

		FROM = {
			age < 5
			NOT = { character = ROOT }
		}
	}

	additive_modifier = {
		value = -40 # Feudal: -15
		localisation_key = tooltip_feudal_elector_vote_child

		FROM = {
			age >= 5
			age < 10
			NOT = { character = ROOT }
		}
	}

	additive_modifier = {
		value = -30 # Feudal: -10
		localisation_key = tooltip_feudal_elector_vote_child

		FROM = {
			age >= 10
			is_adult = no
			NOT = { character = ROOT }
		}
	}

	additive_modifier = { # Still too young for older rulers
		value = -20 # Feudal: -10
		localisation_key = tooltip_feudal_elector_vote_youngster

		age >= 30

		FROM = {
			is_adult = yes
			age < 25
		}
	}

	additive_modifier = {
		value = -15 # Feudal: -10
		localisation_key = tooltip_feudal_elector_vote_youngster

		age >= 40

		FROM = {
			age >= 25
			age < 35
		}
	}

	additive_modifier = { # Or too old for younger rulers
		value = -5 # Feudal: -10
		localisation_key = tooltip_feudal_elector_vote_oldtimer

		age < 40

		FROM = {
			age >= 40
			age < 50
		}
	}

	additive_modifier = { # Or simply too old overall
		value = -5 # Feudal: -15
		localisation_key = tooltip_feudal_elector_vote_decrepit

		FROM = {
			age >= 50
			NOT = { character = ROOT }
		}
	}
}

elector_candidate_age_imperial_elective_vote = {
	additive_modifier = {
		value = -1000 # Feudal: -30
		localisation_key = tooltip_feudal_elector_vote_rome_child

		FROM = {
			NOT = { character = ROOT }
			age < 6
		}
	}

	additive_modifier = {
		value = -200 # Feudal: -15
		localisation_key = tooltip_feudal_elector_vote_rome_child

		FROM = {
			NOT = { character = ROOT }
			age >= 6
			is_adult = no
		}
	}
}

# Under Eldership only the ruler uses this voting logic
elector_candidate_gender_vote = {
	# Sexism
	additive_modifier = { # Gender weights
		value = -30
		localisation_key = tooltip_feudal_elector_vote_agnatic_woman

		FROM = {
			is_female = yes
		}

		FROMFROM = {
			has_law = cognatic_succession

			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}

		NOR = {
			has_religion_feature = religion_matriarchal
			has_religion_feature = religion_equal
			has_religion_feature = religion_feature_bon
			has_gender_equal_game_rule_trigger = yes
		}
	}

	additive_modifier = { # Gender weights
		value = -30
		localisation_key = tooltip_feudal_elector_vote_enatic_man

		FROM = {
			is_female = no
		}

		FROMFROM = {
			has_law = enatic_cognatic_succession
		}

		NOR = {
			has_religion_feature = religion_patriarchal
			has_religion_feature = religion_equal
			has_religion_feature = religion_feature_bon
			has_gender_equal_game_rule_trigger = yes
		}
	}

	additive_modifier = { # Gender weights
		value = -50
		localisation_key = tooltip_feudal_elector_vote_sow

		FROM = {
			is_female = yes
		}

		FROMFROM = {
			holder_scope = {
				has_law = status_of_women_0
			}

			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}

		NOR = {
			has_religion_feature = religion_matriarchal
			has_religion_feature = religion_equal
			has_religion_feature = religion_feature_bon
			has_gender_equal_game_rule_trigger = yes
		}
	}

	additive_modifier = { # Gender weights
		value = -40
		localisation_key = tooltip_feudal_elector_vote_sow

		FROM = {
			is_female = yes
		}

		FROMFROM = {
			holder_scope = {
				has_law = status_of_women_1
			}

			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}

		NOR = {
			has_religion_feature = religion_matriarchal
			has_religion_feature = religion_equal
			has_religion_feature = religion_feature_bon
			has_gender_equal_game_rule_trigger = yes
		}
	}

	additive_modifier = { # Gender weights
		value = -20
		localisation_key = tooltip_feudal_elector_vote_sow

		FROM = {
			is_female = yes
		}

		FROMFROM = {
			holder_scope = {
				has_law = status_of_women_2
			}

			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}

		NOR = {
			has_religion_feature = religion_matriarchal
			has_religion_feature = religion_equal
			has_religion_feature = religion_feature_bon
			has_gender_equal_game_rule_trigger = yes
		}
	}

	additive_modifier = { # Gender weights
		value = -10
		localisation_key = tooltip_feudal_elector_vote_sow

		FROM = {
			is_female = yes
		}

		FROMFROM = {
			holder_scope = {
				has_law = status_of_women_3
			}

			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}

		NOR = {
			has_religion_feature = religion_matriarchal
			has_religion_feature = religion_equal
			has_religion_feature = religion_feature_bon
			has_gender_equal_game_rule_trigger = yes
		}
	}

	additive_modifier = { # Gender weights
		value = -75
		localisation_key = tooltip_feudal_elector_vote_patriarchal

		FROM = {
			is_female = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}

		has_religion_feature = religion_patriarchal
		has_gender_equal_game_rule_trigger = no
	}

	additive_modifier = { # Gender weights
		value = -75
		localisation_key = tooltip_feudal_elector_vote_matriarchal

		FROM = {
			is_female = no
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}

		has_religion_feature = religion_matriarchal
		has_gender_equal_game_rule_trigger = no
	}
}

# Used in Feudal Elective, Imperial Elective and Princely Elective
elector_candidate_culture_vote = {
	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_fellow_culture

		NOT = { character = FROM }
		culture = FROM
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_stranger

		FROMFROM = {
			holder_scope = {
				culture = ROOT # Only a concern if Elector and current ruler share culture
			}
		}

		NOT = { culture = FROM }
	}

	additive_modifier = {
		value = -30
		localisation_key = tooltip_feudal_elector_vote_foreigner

		FROMFROM = {
			holder_scope = {
				culture = ROOT # Only a concern if Elector and current ruler share culture
			}
		}

		NOT = { culture_group = FROM }
	}

	additive_modifier = { # Candidate is a stranger's pet
		value = -10
		localisation_key = tooltip_feudal_elector_vote_strangers_pet

		FROM = {
			character = ROOT_FROMFROMFROM
			culture = ROOT
		}

		FROMFROM = {
			holder_scope = {
				NOT = { culture = ROOT_FROM }
			}
		}
	}

	additive_modifier = { # Candidate is a foreigner's pet
		value = -15
		localisation_key = tooltip_feudal_elector_vote_foreigners_pet

		FROM = {
			character = ROOT_FROMFROMFROM
			culture = ROOT
		}

		FROMFROM = {
			holder_scope = {
				NOT = { culture_group = ROOT_FROM }
			}
		}
	}

	additive_modifier = { # If candidate is elected, he will rule from a capital outside this de jure
		value = -15
		localisation_key = tooltip_feudal_elector_vote_political_concerns

		capital_scope = {
			de_jure_liege_or_above = FROMFROM
		}

		FROM = {
			is_ruler = yes
			vassal_of = FROMFROM

			capital_scope = {
				NOT = { de_jure_liege_or_above = ROOT_FROMFROM }
			}
		}
	}

	additive_modifier = { # Candidate is a foreign ruler
		value = -30
		localisation_key = tooltip_feudal_elector_vote_encroaching_foreigner

		capital_scope = {
			de_jure_liege_or_above = FROMFROM
		}

		FROM = {
			is_ruler = yes
			NOT = { is_vassal_or_below_of = ROOT_FROMFROM }
		}
	}

	additive_modifier = { # Candidate is a foreign non-dejure ruler
		value = -500
		localisation_key = tooltip_feudal_elector_vote_encroaching_foreigner

		capital_scope = {
			NOT = { de_jure_liege = FROMFROM }
		}

		FROM = {
			is_ruler = yes
			NOT = { is_vassal_or_below_of = ROOT_FROMFROM }
		}
	}
}

# Used in Elective Gavelkind, Tanistry and Eldership
elector_candidate_culture_bias_strong_vote = {
	additive_modifier = {
		value = 15 # Feudal: 10
		localisation_key = tooltip_feudal_elector_vote_fellow_culture

		NOT = { character = FROM }
		culture = FROM

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -25 # Feudal: -15
		localisation_key = tooltip_feudal_elector_vote_stranger

		NOT = { culture = FROM }

		FROMFROM = {
			holder_scope = {
				culture = ROOT # Only a concern if Elector and current ruler share culture
			}

			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -40 # Feudal: -30
		localisation_key = tooltip_feudal_elector_vote_foreigner

		NOT = { culture_group = FROM }

		FROMFROM = {
			holder_scope = {
				culture = ROOT # Only a concern if Elector and current ruler share culture
			}

			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Candidate is a stranger's pet
		value = -15 # Feudal: -10
		localisation_key = tooltip_feudal_elector_vote_strangers_pet

		FROM = {
			character = ROOT_FROMFROMFROM
			culture = ROOT
		}

		FROMFROM = {
			holder_scope = {
				culture = ROOT # Only a concern if Elector and current ruler share culture
				NOT = { culture = ROOT_FROM }
			}

			NOT = { has_law = succ_eldership }
		}
	}

	additive_modifier = { # Candidate is a foreigner's pet
		value = -25 # Feudal: -15
		localisation_key = tooltip_feudal_elector_vote_foreigners_pet

		FROM = {
			character = ROOT_FROMFROMFROM
			culture = ROOT
		}

		FROMFROM = {
			holder_scope = {
				culture = ROOT # Only a concern if Elector and current ruler share culture
				NOT = { culture_group = ROOT_FROM }
			}

			NOT = { has_law = succ_eldership }
		}
	}

	additive_modifier = { # If candidate is elected, he will rule from a capital outside this de jure
		value = -30 # Feudal: -15
		localisation_key = tooltip_feudal_elector_vote_political_concerns

		capital_scope = {
			de_jure_liege_or_above = FROMFROM
		}

		FROM = {
			is_ruler = yes
			vassal_of = FROMFROM

			capital_scope = {
				NOT = { de_jure_liege_or_above = ROOT_FROMFROM }
			}

			NOT = { has_law = succ_eldership }
		}
	}

	additive_modifier = { # Candidate is a foreign ruler
		value = -50 # Feudal: -30
		localisation_key = tooltip_feudal_elector_vote_encroaching_foreigner

		capital_scope = {
			de_jure_liege_or_above = FROMFROM
		}

		FROM = {
			is_ruler = yes
			NOT = { is_vassal_or_below_of = ROOT_FROMFROM }
		}

		FROMFROM = {
			NOT = { has_law = succ_eldership }
		}
	}
}

# Used in Feudal Elective and Imperial Elective. Princely Elective uses harsher weights.
elector_candidate_religion_vote = {
	# Faithism
	additive_modifier = { # Infidel
		value = -25
		localisation_key = tooltip_feudal_elector_vote_infidel

		FROM = {
			religion_group = ROOT

			NOR = {
				religion = ROOT
				is_heresy_of = ROOT
			}
		}

		NOR = {
			has_religion_feature = religion_cosmopolitan
			has_religion_feature = religion_dogmatic
			religion_group = indian_group
		}
	}

	additive_modifier = { # Heathen
		value = -50
		localisation_key = tooltip_feudal_elector_vote_heathen

		NOR = {
			religion_group = ROOT
			has_religion_feature = religion_cosmopolitan
			has_religion_feature = religion_dogmatic
			religion_group = indian_group
		}

		trigger_if = {
			limit = { trait = sympathy_christendom }
			FROM = { NOT = { religion_group = christian } }
		}

		trigger_if = {
			limit = { trait = sympathy_islam }
			FROM = { NOT = { religion_group = muslim } }
		}

		trigger_if = {
			limit = { trait = sympathy_pagans }
			FROM = { NOT = { religion_group = pagan_group } }
		}

		trigger_if = {
			limit = { trait = sympathy_zoroastrianism }
			FROM = { NOT = { religion_group = zoroastrian_group } }
		}

		trigger_if = {
			limit = { trait = sympathy_judaism }
			FROM = { NOT = { religion_group = jewish_group } }
		}

		trigger_if = {
			limit = { trait = sympathy_indian }
			FROM = { NOT = { religion_group = indian_group } }
		}
	}

	additive_modifier = { # Heretic
		value = -50
		localisation_key = tooltip_feudal_elector_vote_heretic

		is_parent_religion = FROM

		NOR = {
			has_religion_feature = religion_cosmopolitan
			has_religion_feature = religion_dogmatic
			religion_group = indian_group
		}
	}

	additive_modifier = { # Dogmatics will hardly ever pick an infidel
		value = -100
		localisation_key = tooltip_feudal_elector_vote_heathen_dogmatic

		has_religion_feature = religion_dogmatic
		NOT = { religion = FROM }
	}
}

# Used in Elective Gavelkind, Tanistry and Eldership
elector_candidate_religion_bias_weak_vote = {
	additive_modifier = { # Infidel
		value = -10 # Feudal: -25
		localisation_key = tooltip_feudal_elector_vote_infidel

		FROM = {
			religion_group = ROOT

			NOR = {
				religion = ROOT
				is_heresy_of = ROOT
			}
		}

		NOR = {
			has_religion_feature = religion_cosmopolitan
			has_religion_feature = religion_dogmatic
			religion_group = indian_group
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Heathen
		value = -25 # Feudal: -50
		localisation_key = tooltip_feudal_elector_vote_heathen

		NOR = {
			religion_group = FROM
			has_religion_feature = religion_cosmopolitan
			has_religion_feature = religion_dogmatic
			religion_group = indian_group
		}

		trigger_if = {
			limit = { trait = sympathy_christendom }
			FROM = { NOT = { religion_group = christian } }
		}

		trigger_if = {
			limit = { trait = sympathy_islam }
			FROM = { NOT = { religion_group = muslim } }
		}

		trigger_if = {
			limit = { trait = sympathy_pagans }
			FROM = { NOT = { religion_group = pagan_group } }
		}

		trigger_if = {
			limit = { trait = sympathy_zoroastrianism }
			FROM = { NOT = { religion_group = zoroastrian_group } }
		}

		trigger_if = {
			limit = { trait = sympathy_judaism }
			FROM = { NOT = { religion_group = jewish_group } }
		}

		trigger_if = {
			limit = { trait = sympathy_indian }
			FROM = { NOT = { religion_group = indian_group } }
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Heretic
		value = -30 # Feudal: -50
		localisation_key = tooltip_feudal_elector_vote_heretic

		is_parent_religion = FROM

		NOR = {
			has_religion_feature = religion_cosmopolitan
			has_religion_feature = religion_dogmatic
			religion_group = indian_group
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Dogmatics will hardly ever pick an infidel
		value = -50 # Feudal: -100
		localisation_key = tooltip_feudal_elector_vote_heathen_dogmatic

		has_religion_feature = religion_dogmatic
		NOT = { religion = FROM }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}
}

# Used in Princely Elective
elector_candidate_religion_bias_strong_vote = {
	additive_modifier = { # Infidel
		value = -75 # Feudal: -25
		localisation_key = tooltip_feudal_elector_vote_infidel

		FROM = {
			religion_group = ROOT

			NOR = {
				religion = ROOT
				is_heresy_of = ROOT
			}
		}

		NOR = {
			has_religion_feature = religion_cosmopolitan
			has_religion_feature = religion_dogmatic
			religion_group = indian_group
		}
	}

	additive_modifier = { # Heathen
		value = -150 # Feudal: -50
		localisation_key = tooltip_feudal_elector_vote_heathen

		FROM = {
			NOT = { religion_group = ROOT }
		}

		NOR = {
			has_religion_feature = religion_cosmopolitan
			has_religion_feature = religion_dogmatic
			religion_group = indian_group
		}

		trigger_if = {
			limit = { trait = sympathy_christendom }
			FROM = { NOT = { religion_group = christian } }
		}
		trigger_else_if = {
			limit = { trait = sympathy_islam }
			FROM = { NOT = { religion_group = muslim } }
		}
		trigger_else_if = {
			limit = { trait = sympathy_pagans }
			FROM = { NOT = { religion_group = pagan_group } }
		}
		trigger_else_if = {
			limit = { trait = sympathy_zoroastrianism }
			FROM = { NOT = { religion_group = zoroastrian_group } }
		}
		trigger_else_if = {
			limit = { trait = sympathy_judaism }
			FROM = { NOT = { religion_group = jewish_group } }
		}
		trigger_else_if = {
			limit = { trait = sympathy_indian }
			FROM = { NOT = { religion_group = indian_group } }
		}
	}

	additive_modifier = { # Heretic
		value = -100 # Feudal: -50
		localisation_key = tooltip_feudal_elector_vote_heretic

		FROM = { is_heresy_of = ROOT }

		NOR = {
			has_religion_feature = religion_cosmopolitan
			has_religion_feature = religion_dogmatic
			religion_group = indian_group
		}
	}

	additive_modifier = { # Dogmatics will hardly ever pick an infidel
		value = -250 # Feudal: -100
		localisation_key = tooltip_feudal_elector_vote_heathen_dogmatic

		has_religion_feature = religion_dogmatic

		NOT = { religion = FROM }
	}
}

# Used in Feudal Elective, Imperial Elective and Princely Elective
elector_candidate_barbarism_vote = {
	# Barbarism
	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_uncivilized

		OR = {
			is_feudal = yes
			is_patrician = yes
		}

		FROM = {
			is_feudal = no
			is_patrician = no
		}
	}
}

# Used in Elective Gavelkind, Tanistry and Eldership
elector_candidate_tribalism_vote = {
	additive_modifier = {
		value = -30
		localisation_key = tooltip_feudal_elector_vote_tribalism

		is_tribal = yes

		FROM = {
			trigger_if = {
				limit = { is_ruler = yes }
				is_tribal = no
			}
			trigger_else = {
				liege = { is_tribal = no }
			}
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_settled

		is_nomadic = yes
		FROM = { is_nomadic = no }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}
}

# Used in Elective Gavelkind
elector_candidate_warrior_vote = {
	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_martial_score_negative

		FROM = { martial < 5 }
		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_martial_score

		FROM = {
			martial >= 10
			martial < 15
		}

		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_martial_score

		FROM = {
			martial >= 15
			martial < 20
		}

		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_martial_score

		FROM = { martial >= 20 }
		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_combat_rating_score_negative

		FROM = { combat_rating < 25 }
		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_combat_rating_score

		FROM = {
			combat_rating >= 25
			combat_rating < 50
		}

		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_combat_rating_score

		FROM = {
			combat_rating >= 50
			combat_rating < 80
		}

		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_combat_rating_score

		FROM = { combat_rating >= 80 }
		this_is_warrior_culture_trigger = yes
	}
}

elector_candidate_culturism_vote = {
	# Culturism
	additive_modifier = { # Candidate is a foreign non-de jure ruler
		value = -500
		localisation_key = tooltip_feudal_elector_vote_encroaching_foreigner

		capital_scope = {
			de_jure_liege_or_above = FROMFROM
		}

		FROM = {
			is_ruler = yes

			NOR = {
				is_vassal_or_below_of = ROOT_FROMFROM
				de_jure_liege_or_above = ROOT_FROMFROM
			}
		}

		FROMFROM = {
			NOT = { has_law = succ_eldership }
		}
	}
}

elector_candidate_nepotism_vote = {
	# Nepotism
	additive_modifier = { # All characters are relatives, although some might not be of the same dynasty as the Elector
		value = 10
		localisation_key = tooltip_feudal_elector_vote_dynasty

		FROM = {
			dynasty = ROOT

			NOR = {
				character = ROOT
				is_close_relative = ROOT
			}
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 20
		localisation_key = tooltip_feudal_elector_vote_relative

		FROM = {
			is_close_relative = ROOT

			NOR = {
				character = ROOT
				is_child_of = ROOT
			}
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 30
		localisation_key = tooltip_feudal_elector_vote_parent

		FROM = {
			is_child_of = ROOT
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
			trigger_else = {
				NOT = { holder = ROOT }
			}
		}
	}

	additive_modifier = { # Current Ruler should tend to often pick one of his own children as potential heirs
		value = 60
		localisation_key = tooltip_feudal_elector_vote_parent

		has_landed_title = FROMFROM
		is_parent_of = FROM
	}
}

elector_candidate_nepotism_vote_tanistry = {
	additive_modifier = { # Vassals will tend to pick heirs that are not the current ruler's children when under Tanistry
		value = -50
		localisation_key = tooltip_feudal_elector_vote_anti_tanist

		NOT = { character = FROM }

		FROMFROM = {
			holder_scope = {
				NOT = { character = ROOT }
				is_parent_of = FROM
			}
		}
	}

	additive_modifier = { # Vassals will tend to pick heirs that are not the current ruler's close relaitves when under Tanistry
		value = -30
		localisation_key = tooltip_feudal_elector_vote_anti_tanist

		NOT = { character = FROM }

		FROMFROM = {
			holder_scope = {
				is_close_relative = FROM

				NOR = {
					character = ROOT
					is_parent_of = FROM
				}
			}
		}
	}
}

elector_candidate_prestige_vote = {
	# Prestige
	additive_modifier = {
		value = -20
		localisation_key = tooltip_feudal_elector_vote_prestige_negative

		FROM = {
			NOT = { character = ROOT }
			prestige < -1000
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_prestige_negative

		FROM = {
			NOT = { character = ROOT }
			prestige >= -1000
			prestige < -500
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_prestige_negative

		FROM = {
			NOT = { character = ROOT }
			prestige >= -500
			prestige < -250
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_prestige_negative

		FROM = {
			NOT = { character = ROOT }
			prestige >= -250
			prestige < 0
		}
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_prestige_positive

		FROM = {
			NOT = { character = ROOT }
			prestige >= 250
			prestige < 500
		}
	}

	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_prestige_positive

		FROM = {
			NOT = { character = ROOT }
			prestige >= 500
			prestige < 1000
		}
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_prestige_positive

		FROM = {
			NOT = { character = ROOT }
			prestige >= 1000
		}
	}
}

elector_candidate_piety_vote = {
	# Piety
	additive_modifier = {
		value = -20
		localisation_key = tooltip_feudal_elector_vote_piety_negative

		FROM = {
			NOT = { character = ROOT }
			piety < -500
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_piety_negative

		FROM = {
			NOT = { character = ROOT }
			piety >= -500
			piety < -250
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_piety_negative

		FROM = {
			NOT = { character = ROOT }
			piety >= -250
			piety < -100
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_piety_negative

		FROM = {
			NOT = { character = ROOT }
			piety >= -100
			piety < 0
		}
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_piety_positive

		FROM = {
			NOT = { character = ROOT }
			piety >= 100
			piety < 250
		}
	}

	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_piety_positive

		FROM = {
			NOT = { character = ROOT }
			piety >= 250
			piety < 500
		}
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_piety_positive

		FROM = {
			NOT = { character = ROOT }
			piety >= 500
			piety < 1000
		}
	}

	# Additional piety checks for Princely Elective
	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_piety_positive

		FROM = {
			NOT = { character = ROOT }
			piety >= 1000
			piety < 1500
		}

		FROMFROM = {
			has_law = succ_hre_elective
		}
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_piety_positive

		FROM = {
			NOT = { character = ROOT }
			piety >= 1500
			piety < 2000
		}

		FROMFROM = {
			has_law = succ_hre_elective
		}
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_piety_positive

		FROM = {
			NOT = { character = ROOT }
			piety >= 2000
		}

		FROMFROM = {
			has_law = succ_hre_elective
		}
	}
}

elector_candidate_education_lifestyle_vote = {
	# Educational preferences
	# Eldership rulers prefer children with similar interests
	# Electors in other succession types vote based on culture
	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_martial_education

		FROM = {
			martial >= 10

			OR = {
				has_education_martial_trigger = yes
				has_lifestyle_martial_trigger = yes
			}
		}

		trigger_if = {
			limit = {
				FROMFROM = { has_law = succ_eldership }
			}

			# Ruler prefers children with similar interests
			has_landed_title = FROMFROM

			OR = {
				has_education_martial_trigger = yes
				has_lifestyle_martial_trigger = yes
			}
		}
		trigger_else = {
			# Warrior culture prefers warriors
			this_is_warrior_culture_trigger = yes
		}
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_diplomatic_education

		FROM = {
			trigger_if = {
				limit = {
					OR = {
						has_education_diplomacy_trigger = yes
						has_lifestyle_diplomacy_trigger = yes
					}
				}

				diplomacy >= 10
			}
			trigger_else = {
				OR = {
					has_education_stewardship_trigger = yes
					has_lifestyle_stewardship_trigger = yes
				}
				stewardship >= 10
			}
		}

		trigger_if = {
			limit = {
				FROMFROM = { has_law = succ_eldership }
			}

			# Ruler prefers children with similar interests
			has_landed_title = FROMFROM

			OR = {
				has_education_diplomacy_trigger = yes
				has_lifestyle_diplomacy_trigger = yes
				has_education_stewardship_trigger = yes
				has_lifestyle_stewardship_trigger = yes
			}
		}
		trigger_else = {
			# Diplomatic culture prefers stewards and diplomats
			this_is_diplomatic_culture_trigger = yes
		}
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_spiritual_education

		FROM = {
			learning >= 10

			OR = {
				has_education_learning_trigger = yes
				has_lifestyle_learning_trigger = yes
			}
		}

		trigger_if = {
			limit = {
				FROMFROM = { has_law = succ_eldership }
			}

			# Ruler prefers children with similar interests
			has_landed_title = FROMFROM

			OR = {
				has_education_learning_trigger = yes
				has_lifestyle_learning_trigger = yes
			}
		}
		trigger_else = {
			# Spiritual culture prefers scholars
			this_is_spiritual_culture_trigger = yes
		}
	}
}

elector_candidate_claims_vote = {
	# Claims
	additive_modifier = {
		value = 30
		localisation_key = tooltip_feudal_elector_vote_strong_claimant

		FROM = { has_claim = FROMFROM }
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_weak_claimant

		FROM = { has_weak_claim = FROMFROM }
	}
}

elector_candidate_claims_bias_strong_vote = {
	additive_modifier = {
		value = 60 # Feudal: 30
		localisation_key = tooltip_feudal_elector_vote_strong_claimant

		FROM = { has_claim = FROMFROM }
	}

	additive_modifier = {
		value = 30 # Feudal: 15
		localisation_key = tooltip_feudal_elector_vote_weak_claimant

		FROM = { has_weak_claim = FROMFROM }
	}
}

elector_candidate_claims_bias_weak_vote = {
	additive_modifier = {
		value = 15 # Feudal: 30
		localisation_key = tooltip_feudal_elector_vote_strong_claimant

		FROM = { has_claim = FROMFROM }
	}

	additive_modifier = {
		value = 5 # Feudal: 15
		localisation_key = tooltip_feudal_elector_vote_weak_claimant

		FROM = { has_weak_claim = FROMFROM }
	}
}

elector_candidate_traits_vote = {
	# All the Traits
	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_playful

		FROM = {
			trait = playful
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_rowdy

		FROM = {
			trait = rowdy
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_haughty

		FROM = {
			trait = haughty
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_diplomatic_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_conscientious

		FROM = {
			trait = conscientious
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_diplomatic_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_curious

		FROM = {
			trait = curious
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_spiritual_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_idolizer

		FROM = {
			trait = idolizer
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_spiritual_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -25
		localisation_key = tooltip_feudal_elector_vote_depressed

		FROM = {
			trait = depressed
			NOT = { character = ROOT } # Do not judge yourself
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_drunkard

		FROM = {
			trait = drunkard
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOT = { religion_group = muslim }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_drunkard_muslim

		FROM = {
			trait = drunkard
			NOT = { character = ROOT } # Do not judge yourself
		}

		religion_group = muslim

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Would mean the end of Elections
		value = -35
		localisation_key = tooltip_feudal_elector_vote_immortal

		FROM = {
			trait = immortal
			NOT = { character = ROOT } # Do not judge yourself
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -35
		localisation_key = tooltip_feudal_elector_vote_incapable

		FROM = {
			is_incapable = yes
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -50
		localisation_key = tooltip_feudal_elector_vote_incapable_warrior

		FROM = {
			is_incapable = yes
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_infirm

		FROM = {
			trait = infirm
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_diplomatic_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -30
		localisation_key = tooltip_feudal_elector_vote_infirm_diplomat

		FROM = {
			trait = infirm
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_diplomatic_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -30
		localisation_key = tooltip_feudal_elector_vote_lunatic

		FROM = {
			trait = lunatic
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			trait = zealous
			is_tribal = yes
			is_nomadic = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_maimed

		FROM = {
			trait = maimed
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_maimed_warrior

		FROM = {
			trait = maimed
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -35
		localisation_key = tooltip_feudal_elector_vote_possessed

		FROM = {
			trait = possessed
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			trait = zealous
			is_tribal = yes
			is_nomadic = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -60
		localisation_key = tooltip_feudal_elector_vote_possessed_vs_zealous

		FROM = {
			trait = possessed
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			is_tribal = yes
			is_nomadic = yes
		}

		trait = zealous

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_physician

		FROM = {
			trait = physician
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_spiritual_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_scarred

		FROM = {
			trait = scarred
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_scarred_mid

		FROM = {
			trait = scarred_mid
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_scarred_high

		FROM = {
			trait = scarred_high
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_stressed

		FROM = {
			trait = stressed
			NOT = { character = ROOT } # Do not judge yourself
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	# Judge yourself on illness. You should probably not candidate yourself if you are dying.
	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_wounded

		FROM = { trait = wounded }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_aztec_disease

		FROM = { trait = aztec_disease }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}
	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_camp_fever

		FROM = { trait = camp_fever }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -25
		localisation_key = tooltip_feudal_elector_vote_cancer

		FROM = { trait = cancer }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -25
		localisation_key = tooltip_feudal_elector_vote_consumption

		FROM = { trait = consumption }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -35
		localisation_key = tooltip_feudal_elector_vote_dancing_plague

		FROM = { trait = dancing_plague }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_dysentery

		FROM = { trait = dysentery }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_flu

		FROM = { trait = flu }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_food_poisoning

		FROM = { trait = food_poisoning }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_gout

		FROM = { trait = gout }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_great_pox

		FROM = { trait = great_pox }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_slow_fever

		FROM = { trait = slow_fever }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_ill

		FROM = { trait = ill }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -50
		localisation_key = tooltip_feudal_elector_vote_leper

		FROM = { trait = leper }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_measles

		FROM = { trait = measles }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -25
		localisation_key = tooltip_feudal_elector_vote_pneumonic

		FROM = { trait = pneumonic }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -25
		localisation_key = tooltip_feudal_elector_vote_rabies

		FROM = { trait = rabies }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_scurvy

		FROM = { trait = scurvy }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -45
		localisation_key = tooltip_feudal_elector_vote_sickly

		FROM = { trait = sickly }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_smallpox

		FROM = { trait = smallpox }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -35
		localisation_key = tooltip_feudal_elector_vote_bubonic_plague

		FROM = { trait = bubonic_plague }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_mangled

		FROM = { trait = mangled }
		this_is_warrior_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_mangled_warrior

		FROM = { trait = mangled }
		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_one_eyed

		FROM = { trait = one_eyed }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_one_handed

		FROM = { trait = one_handed }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_one_legged

		FROM = { trait = one_legged }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_severely_injured

		FROM = { trait = severely_injured }
		this_is_warrior_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_bastard

		is_feudal = yes

		FROM = {
			trait = bastard
			NOT = { character = ROOT } # Do not judge yourself
		}

		FROMFROM = {
			NOT = { has_law = succ_eldership }
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_child_of_consort

		is_feudal = yes

		FROM = {
			NOT = { character = ROOT } # Do not judge yourself

			OR = {
				trait = legit_bastard
				trait = child_of_consort_male
				trait = child_of_consort
			}
		}

		FROMFROM = {
			NOT = { has_law = succ_eldership }
		}
	}

	additive_modifier = { # Attraction bonus
		value = 10
		localisation_key = tooltip_feudal_elector_vote_attractive

		is_adult = yes

		FROM = {
			is_attractive_trigger = yes
			is_adult = yes
		}

		trigger_if = {
			limit = { prefers_men_trigger = yes }

			FROM = {
				is_female = no
			}
		}
		trigger_else = {
			FROM = {
				is_female = yes
			}
		}

		trigger_if = {
			limit = {
				is_married = yes
				NOT = { is_married = FROM }
			}

			NOT = { trait = chaste }
		}

		trigger_if = {
			limit = { is_close_relative = FROM }

			OR = {
				religion = zoroastrian
				religion = messalian
				has_religion_feature = religion_holy_family
				has_religion_feature = religion_feature_zun
			}
		}

		NOR = {
			trait = celibate
			character = FROM # Do not judge yourself
		}

		FROMFROM = {
			NOT = { has_law = succ_eldership }
		}
	}

	additive_modifier = { # Ugliness malus
		value = -10
		localisation_key = tooltip_feudal_elector_vote_ugly

		FROM = {
			is_unattractive_trigger = yes
			is_adult = yes
		}

		is_adult = yes

		trigger_if = {
			limit = { prefers_men_trigger = yes }

			FROM = {
				is_female = no
			}
		}
		trigger_else = {
			FROM = {
				is_female = yes
			}
		}

		trigger_if = {
			limit = {
				is_married = yes
				NOT = { is_married = FROM }
			}

			NOT = { trait = chaste }
		}

		trigger_if = {
			limit = { is_close_relative = FROM }

			OR = {
				religion = zoroastrian
				religion = messalian
				has_religion_feature = religion_holy_family
				has_religion_feature = religion_feature_zun
			}
		}

		NOR = {
			trait = celibate
			character = FROM # Do not judge yourself
		}

		FROMFROM = {
			NOT = { has_law = succ_eldership }
		}
	}

	additive_modifier = {
		value = 20
		localisation_key = tooltip_feudal_elector_vote_genius_diplomat

		FROM = {
			trait = genius
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			this_is_diplomatic_culture_trigger = yes
			this_is_spiritual_culture_trigger = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_genius

		FROM = {
			trait = genius
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			this_is_diplomatic_culture_trigger = yes
			this_is_spiritual_culture_trigger = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_quick_diplomat

		FROM = {
			trait = quick
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			this_is_diplomatic_culture_trigger = yes
			this_is_spiritual_culture_trigger = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_quick

		FROM = {
			trait = quick
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			this_is_diplomatic_culture_trigger = yes
			this_is_spiritual_culture_trigger = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_strong

		FROM = {
			trait = strong
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_strong_warrior

		FROM = {
			trait = strong
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_imbecile

		FROM = {
			trait = imbecile
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_diplomatic_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -20
		localisation_key = tooltip_feudal_elector_vote_imbecile_diplomat

		FROM = {
			trait = imbecile
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_diplomatic_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_slow

		FROM = {
			trait = slow
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_diplomatic_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_slow_diplomat

		FROM = {
			trait = slow
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_diplomatic_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_weak

		FROM = {
			trait = weak
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_weak_warrior

		FROM = {
			trait = weak
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_brawny

		FROM = {
			trait = brawny
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_brawny_warrior

		FROM = {
			trait = brawny
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_dull_diplomat

		FROM = {
			trait = dull
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			this_is_diplomatic_culture_trigger = yes
			this_is_spiritual_culture_trigger = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_dull

		FROM = {
			trait = dull
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			this_is_diplomatic_culture_trigger = yes
			this_is_spiritual_culture_trigger = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_frail

		FROM = {
			trait = frail
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_frail_warrior

		FROM = {
			trait = frail
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	# The Seven Sins/Virtues
	additive_modifier = { # Praised for being Chaste
		value = 15
		localisation_key = tooltip_feudal_elector_vote_chaste_positive

		FROM = {
			trait = chaste
			NOT = { character = ROOT } # Do not judge yourself
		}

		religion_group = christian
		NOT = { trait = lustful }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Chaste
		value = -15
		localisation_key = tooltip_feudal_elector_vote_chaste_negative

		FROM = {
			trait = chaste
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			trait = lustful
			religion_group = pagan_group
		}

		NOT = { trait = chaste }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Temperate
		value = 15
		localisation_key = tooltip_feudal_elector_vote_temperate_positive

		FROM = {
			trait = temperate
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			trait = gluttonous
			religion_group = pagan_group
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Temperate
		value = -15
		localisation_key = tooltip_feudal_elector_vote_temperate_negative

		FROM = {
			trait = temperate
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOT = { trait = temperate }

		OR = {
			trait = gluttonous
			religion_group = pagan_group
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Charitable
		value = 15
		localisation_key = tooltip_feudal_elector_vote_charitable_positive

		FROM = {
			trait = charitable
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			religion_group = christian
			religion_group = muslim
		}

		NOT = { trait = greedy }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Charitable
		value = -15
		localisation_key = tooltip_feudal_elector_vote_charitable_negative

		trait = greedy

		FROM = {
			trait = charitable
			NOT = { character = ROOT } # Do not judge yourself
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Diligent
		value = 15
		localisation_key = tooltip_feudal_elector_vote_diligent_positive

		NOT = { trait = slothful }

		FROM = {
			trait = diligent
			NOT = { character = ROOT } # Do not judge yourself
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Diligent
		value = -15
		localisation_key = tooltip_feudal_elector_vote_diligent_negative

		trait = slothful

		FROM = {
			trait = diligent
			NOT = { character = ROOT } # Do not judge yourself
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Patient
		value = 15
		localisation_key = tooltip_feudal_elector_vote_patient_positive

		FROM = {
			trait = patient
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			trait = wroth
			this_is_warrior_culture_trigger = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Patient
		value = -15
		localisation_key = tooltip_feudal_elector_vote_patient_negative

		FROM = {
			trait = patient
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			trait = wroth
			this_is_warrior_culture_trigger = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Kind
		value = 25
		localisation_key = tooltip_feudal_elector_vote_kind_positive

		FROM = {
			is_benevolent_trigger = yes
			NOT = { character = ROOT } # Do not judge yourself
		}

		is_benevolent_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Kind
		value = -25
		localisation_key = tooltip_feudal_elector_vote_kind_negative

		FROM = {
			is_benevolent_trigger = yes
			NOT = { character = ROOT } # Do not judge yourself
		}

		is_evil_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Humble
		value = 15
		localisation_key = tooltip_feudal_elector_vote_humble_positive

		FROM = {
			trait = humble
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			trait = proud
			trait = envious
			religion_group = pagan_group
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Humble
		value = -15
		localisation_key = tooltip_feudal_elector_vote_humble_negative

		FROM = {
			trait = humble
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			trait = proud
			trait = envious
			religion_group = pagan_group
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Lustful
		value = 15
		localisation_key = tooltip_feudal_elector_vote_lustful_positive

		FROM = {
			trait = lustful
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			trait = lustful
			trait = hedonist
			religion_group = pagan_group
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Lustful - Male
		value = -15
		localisation_key = tooltip_feudal_elector_vote_lustful_negative

		FROM = {
			trait = lustful
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			religion_group = christian
			religion_group = muslim
			religion_group = jewish_group
		}

		OR = {
			trait = arbitrary # No need for consistency

			NOR = {
				trait = lustful
				trait = hedonist
			}
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Gluttonous
		value = 15
		localisation_key = tooltip_feudal_elector_vote_gluttonous_positive

		FROM = {
			trait = gluttonous
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			trait = gluttonous
			trait = hedonist
			religion_group = pagan_group
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Gluttonous
		value = -15
		localisation_key = tooltip_feudal_elector_vote_gluttonous_negative

		FROM = {
			trait = gluttonous
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			religion_group = christian
			religion_group = muslim
			religion_group = jewish_group
		}

		OR = {
			trait = arbitrary # No need for consistency

			NOR = {
				trait = gluttonous
				trait = hedonist
			}
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Greedy
		value = 15
		localisation_key = tooltip_feudal_elector_vote_greedy_positive

		FROM = {
			trait = greedy
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			trait = greedy
			religion_group = pagan_group
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Greedy
		value = -15
		localisation_key = tooltip_feudal_elector_vote_greedy_negative

		FROM = {
			trait = greedy
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			religion_group = christian
			religion_group = muslim
			religion_group = indian_group
		}

		OR = {
			trait = arbitrary # No need for consistency
			NOT = { trait = greedy }
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Slothful
		value = 15
		localisation_key = tooltip_feudal_elector_vote_slothful_positive

		FROM = {
			trait = slothful
			NOT = { character = ROOT } # Do not judge yourself
		}

		trait = slothful

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Slothful
		value = -15
		localisation_key = tooltip_feudal_elector_vote_slothful_negative

		FROM = {
			trait = slothful
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			trait = arbitrary # No need for consistency
			NOT = { trait = slothful }
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Wroth
		value = 15
		localisation_key = tooltip_feudal_elector_vote_wroth_positive

		FROM = {
			trait = wroth
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Wroth
		value = -15
		localisation_key = tooltip_feudal_elector_vote_wroth_negative

		FROM = {
			trait = wroth
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Evil
		value = -25
		localisation_key = tooltip_feudal_elector_vote_evil_negative

		FROM = {
			is_evil_trigger = yes
			NOT = { character = ROOT } # Do not judge yourself
		}

		trigger_if = {
			limit = { is_evil_trigger = yes }
			trait = arbitrary # No need for consistency
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Proud
		value = 15
		localisation_key = tooltip_feudal_elector_vote_proud_positive

		FROM = {
			trait = proud
			NOT = { character = ROOT } # Do not judge yourself
		}

		religion_group = pagan_group
		NOT = { trait = humble }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Proud
		value = -15
		localisation_key = tooltip_feudal_elector_vote_proud_negative

		FROM = {
			trait = proud
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			religion_group = christian
			religion_group = muslim
			religion_group = indian_group
			religion_group = jewish_group
		}

		OR = {
			trait = arbitrary # No need for consistency
			trait = humble

			AND = {
				is_theocracy = yes
				NOT = { trait = proud }
			}
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Ambitious
		value = 5
		localisation_key = tooltip_feudal_elector_vote_ambitious_positive

		FROM = {
			trait = ambitious
			NOT = { character = ROOT } # Do not judge yourself
		}

		religion_group = pagan_group

		NOT = { trait = content }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Ambitious
		value = -5
		localisation_key = tooltip_feudal_elector_vote_ambitious_negative

		FROM = {
			trait = ambitious
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOT = { religion_group = pagan_group }

		OR = {
			trait = arbitrary # No need for consistency
			NOT = { trait = ambitious }
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Arbitrary
		value = -10
		localisation_key = tooltip_feudal_elector_vote_arbitrary_negative

		FROM = {
			trait = arbitrary
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			trait = just
			trait = arbitrary # Arbitraception
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Brave
		value = 5
		localisation_key = tooltip_feudal_elector_vote_brave_positive

		FROM = {
			trait = brave
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no

		NOR = {
			trait = envious
			trait = arbitrary # No need for consistency
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Brave
		value = 10
		localisation_key = tooltip_feudal_elector_vote_brave_positive_warrior

		FROM = {
			trait = brave
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		NOR = {
			trait = envious
			trait = arbitrary # No need for consistency
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Brave
		value = -5
		localisation_key = tooltip_feudal_elector_vote_brave_negative

		FROM = {
			trait = brave
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no

		OR = {
			trait = envious
			trait = arbitrary # No need for consistency
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Content
		value = 10
		localisation_key = tooltip_feudal_elector_vote_content_positive

		FROM = {
			trait = content
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			religion = buddhist
			religion = jain
			religion = bon_pagan
			religion = taoist
			pacifist = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Content
		value = -5
		localisation_key = tooltip_feudal_elector_vote_content_negative

		FROM = {
			trait = content
			NOT = { character = ROOT } # Do not judge yourself
		}

		religion_group = pagan_group
		NOT = { trait = content }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Craven
		value = -10
		localisation_key = tooltip_feudal_elector_vote_craven_negative

		FROM = {
			trait = craven
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Craven
		value = -25
		localisation_key = tooltip_feudal_elector_vote_craven_negative_warrior

		FROM = {
			trait = craven
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Cynical
		value = 10
		localisation_key = tooltip_feudal_elector_vote_cynical_positive

		FROM = {
			trait = cynical
			NOT = { character = ROOT } # Do not judge yourself
		}

		religion = FROM

		OR = {
			has_religion_feature = religion_cosmopolitan
			religion = hellenic_pagan
			trait = cynical
		}

		NOT = { trait = zealous }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Cynical
		value = -20
		localisation_key = tooltip_feudal_elector_vote_cynical_negative

		FROM = {
			trait = cynical
			NOT = { character = ROOT } # Do not judge yourself
		}

		religion = FROM

		NOR = {
			has_religion_feature = religion_dogmatic
			has_religion_feature = religion_cosmopolitan
			religion = hellenic_pagan
			trait = cynical
		}

		trigger_if = {
			limit = { religion_group = pagan_group }
			is_reformed_religion = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Cynical
		value = -50
		localisation_key = tooltip_feudal_elector_vote_cynical_negative_dogmatic

		FROM = {
			trait = cynical
			NOT = { character = ROOT } # Do not judge yourself
		}

		has_religion_feature = religion_dogmatic
		religion = FROM

		OR = {
			trait = arbitrary # No need for consistency
			NOT = { trait = cynical }
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Deceitful
		value = -10
		localisation_key = tooltip_feudal_elector_vote_deceitful_negative

		FROM = {
			trait = deceitful
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			trait = arbitrary # No need for consistency
			trait = honest
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Erudite
		value = 10
		localisation_key = tooltip_feudal_elector_vote_erudite_positive

		FROM = {
			trait = erudite
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			this_is_diplomatic_culture_trigger = yes
			this_is_spiritual_culture_trigger = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Just
		value = 15
		localisation_key = tooltip_feudal_elector_vote_just_positive

		FROM = {
			trait = just
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			trait = deceitful
			trait = arbitrary
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Paranoid
		value = -5
		localisation_key = tooltip_feudal_elector_vote_paranoid_negative

		FROM = {
			trait = paranoid
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			trait = deceitful
			trait = arbitrary
			trait = paranoid
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Paranoid by Paranoid
		value = -15
		localisation_key = tooltip_feudal_elector_vote_paranoid_negative_paranoid

		FROM = {
			trait = paranoid
			NOT = { character = ROOT } # Do not judge yourself
		}

		trait = paranoid

		NOR = {
			trait = deceitful
			trait = arbitrary
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Shy
		value = -10
		localisation_key = tooltip_feudal_elector_vote_shy_negative

		FROM = {
			trait = shy
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			this_is_diplomatic_culture_trigger = yes
			this_is_warrior_culture_trigger = yes
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Stubborn
		value = 5
		localisation_key = tooltip_feudal_elector_vote_stubborn_positive

		FROM = {
			trait = stubborn
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Stubborn
		value = -10
		localisation_key = tooltip_feudal_elector_vote_stubborn_negative

		FROM = {
			trait = stubborn
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_spiritual_culture_trigger = yes
	}

	additive_modifier = { # Praised for being Trusting
		value = 25
		localisation_key = tooltip_feudal_elector_vote_trusting_positive

		FROM = {
			trait = trusting
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			trait = deceitful
			trait = master_schemer
			trait = ambitious
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Zealous
		value = 10
		localisation_key = tooltip_feudal_elector_vote_zealous_positive

		FROM = {
			trait = zealous
			NOT = { character = ROOT } # Do not judge yourself
		}

		religion = FROM

		NOR = {
			has_religion_feature = religion_cosmopolitan
			pacifist = yes
			trait = cynical
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Zealous
		value = -20
		localisation_key = tooltip_feudal_elector_vote_zealous_negative

		FROM = {
			trait = zealous
			NOT = { character = ROOT } # Do not judge yourself
		}

		religion = FROM

		OR = {
			has_religion_feature = religion_cosmopolitan
			pacifist = yes
			trait = cynical
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Pilgrim
		value = 10
		localisation_key = tooltip_feudal_elector_vote_pilgrim_positive

		FROM = {
			OR = {
				trait = pilgrim
				trait = indian_pilgrim
				trait = hajjaj
			}
			NOT = { character = ROOT } # Do not judge yourself
		}

		religion = FROM
		trait = zealous

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Shieldmaiden
		value = 10
		localisation_key = tooltip_feudal_elector_vote_shieldmaiden_positive

		FROM = {
			trait = shieldmaiden
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes
		NOT = { has_religion_feature = religion_patriarchal }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Shieldmaiden
		value = -10
		localisation_key = tooltip_feudal_elector_vote_shieldmaiden_negative

		FROM = {
			trait = shieldmaiden
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no
		NOT = { has_religion_feature = religion_patriarchal }

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Shieldmaiden
		value = -40
		localisation_key = tooltip_feudal_elector_vote_shieldmaiden_negative_patriarchal

		FROM = {
			trait = shieldmaiden
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no
		has_religion_feature = religion_patriarchal

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being a saoshyant_descendant
		value = 10
		localisation_key = tooltip_feudal_elector_vote_saoshyant_descendant_positive

		FROM = {
			trait = saoshyant_descendant
			NOT = { character = ROOT } # Do not judge yourself
		}

		religion_group = zoroastrian_group

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Adventurer
		value = 10
		localisation_key = tooltip_feudal_elector_vote_adventurer_positive

		FROM = {
			trait = adventurer
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Adventurer
		value = -10
		localisation_key = tooltip_feudal_elector_vote_adventurer_negative

		FROM = {
			trait = adventurer
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Berserker
		value = -20
		localisation_key = tooltip_feudal_elector_vote_berserker_negative

		FROM = {
			trait = berserker
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	# Kinslayer - From stranger's perspective
	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_kinslayer_1_stranger

		FROM = {
			trait = dynastic_kinslayer

			NOR = {
				dynasty = ROOT
				character = ROOT # Do not judge yourself
			}
		}

		OR = {
			NOR = {
				trait = dynastic_kinslayer
				trait = familial_kinslayer
				trait = kinslayer
			}
			trait = arbitrary # No need for consistency
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_kinslayer_2_stranger

		FROM = {
			trait = familial_kinslayer

			NOR = {
				dynasty = ROOT
				character = ROOT # Do not judge yourself
			}
		}

		trigger_if = {
			limit = {
				OR = {
					trait = dynastic_kinslayer
					trait = familial_kinslayer
					trait = kinslayer
				}
			}
			trait = arbitrary # No need for consistency
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -20
		localisation_key = tooltip_feudal_elector_vote_kinslayer_3_stranger

		FROM = {
			trait = kinslayer

			NOR = {
				dynasty = ROOT
				character = ROOT # Do not judge yourself
			}
		}

		trigger_if = {
			limit = {
				OR = {
					trait = dynastic_kinslayer
					trait = familial_kinslayer
					trait = kinslayer
				}
			}
			trait = arbitrary # No need for consistency
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	# Kinslayer - From a far relative's perspective
	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_kinslayer_1_dynast

		FROM = {
			trait = dynastic_kinslayer
			dynasty = ROOT

			NOR = {
				is_close_relative = ROOT
				character = ROOT # Do not judge yourself
			}
		}

		trigger_if = {
			limit = {
				OR = {
					trait = dynastic_kinslayer
					trait = familial_kinslayer
					trait = kinslayer
				}
			}
			trait = arbitrary # No need for consistency
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -20
		localisation_key = tooltip_feudal_elector_vote_kinslayer_2_dynast

		FROM = {
			trait = familial_kinslayer
			dynasty = ROOT

			NOR = {
				is_close_relative = ROOT
				character = ROOT # Do not judge yourself
			}
		}

		trigger_if = {
			limit = {
				OR = {
					trait = dynastic_kinslayer
					trait = familial_kinslayer
					trait = kinslayer
				}
			}
			trait = arbitrary # No need for consistency
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -25
		localisation_key = tooltip_feudal_elector_vote_kinslayer_3_dynast

		FROM = {
			trait = kinslayer
			dynasty = ROOT

			NOR = {
				is_close_relative = ROOT
				character = ROOT # Do not judge yourself
			}
		}

		trigger_if = {
			limit = {
				OR = {
					trait = dynastic_kinslayer
					trait = familial_kinslayer
					trait = kinslayer
				}
			}
			trait = arbitrary # No need for consistency
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	# Kinslayer - From a close relative's perspective
	additive_modifier = {
		value = -20
		localisation_key = tooltip_feudal_elector_vote_kinslayer_1_dynast

		FROM = {
			trait = dynastic_kinslayer
			is_close_relative = ROOT
			NOT = { character = ROOT } # Do not judge yourself
		}

		trigger_if = {
			limit = {
				OR = {
					trait = dynastic_kinslayer
					trait = familial_kinslayer
					trait = kinslayer
				}
			}
			trait = arbitrary # No need for consistency
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -25
		localisation_key = tooltip_feudal_elector_vote_kinslayer_2_dynast

		FROM = {
			trait = familial_kinslayer
			dynasty = ROOT
			is_close_relative = ROOT
			NOT = { character = ROOT } # Do not judge yourself
		}

		trigger_if = {
			limit = {
				OR = {
					trait = dynastic_kinslayer
					trait = familial_kinslayer
					trait = kinslayer
				}
			}
			trait = arbitrary # No need for consistency
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = {
		value = -30
		localisation_key = tooltip_feudal_elector_vote_kinslayer_3_dynast

		FROM = {
			trait = kinslayer
			dynasty = ROOT
			is_close_relative = ROOT
			NOT = { character = ROOT } # Do not judge yourself
		}

		trigger_if = {
			limit = {
				OR = {
					trait = dynastic_kinslayer
					trait = familial_kinslayer
					trait = kinslayer
				}
			}
			trait = arbitrary # No need for consistency
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for loving the heathens
		value = -25
		localisation_key = tooltip_feudal_elector_vote_sympathy_heathens

		FROM = {
			religion = ROOT

			OR = {
				trait = sympathy_christendom
				trait = sympathy_islam
				trait = sympathy_judaism
				trait = sympathy_zoroastrianism
				trait = sympathy_pagans
				trait = sympathy_indian
			}

			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			has_religion_feature = religion_cosmopolitan
			religion_group = indian_group
			religion = bon_pagan
		}

		OR = {
			pacifist = yes

			trigger_if = {
				limit = {
					NOT = { has_dlc = "Holy Fury" }
				}

				religion = bon_pagan_reformed
			}
		}

		OR = {
			trait = zealous
			has_religion_feature = religion_dogmatic
		}

		OR = {
			trait = zealous
			trait = arbitrary # No need for consistency
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being Giant
		value = 10
		localisation_key = tooltip_feudal_elector_vote_giant_positive

		FROM = {
			trait = giant
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Giant
		value = -10
		localisation_key = tooltip_feudal_elector_vote_giant_negative

		FROM = {
			trait = giant
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Shunned for being Lefthanded
		value = -10
		localisation_key = tooltip_feudal_elector_vote_lefthanded_negative

		FROM = {
			trait = lefthanded
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			religion_group = christian
			religion_group = muslim
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being baptized by Bishop
		value = 5
		localisation_key = tooltip_feudal_elector_vote_baptized_by_bishop

		FROM = {
			trait = baptized_by_bishop
			NOT = { character = ROOT } # Do not judge yourself
		}

		religion_group = christian

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being baptized by Pope
		value = 10
		localisation_key = tooltip_feudal_elector_vote_baptized_by_pope

		FROM = {
			trait = baptized_by_pope
			religion = ROOT

			OR = {
				religion = catholic
				religion = fraticelli
			}

			NOT = { character = ROOT } # Do not judge yourself
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}

	additive_modifier = { # Praised for being baptized by Patriarch
		value = 10
		localisation_key = tooltip_feudal_elector_vote_baptized_by_patriarch

		FROM = {
			trait = baptized_by_patriarch
			religion = orthodox
			religion = ROOT
			NOT = { character = ROOT } # Do not judge yourself
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}
}

# Used in Feudal Elective and Princely Elective. Imperial Elective uses harsher weights.
elector_candidate_traits_disfigured_vote = {
	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_born_in_the_purple

		culture_group = byzantine

		FROM = {
			trait = born_in_the_purple
			NOT = { character = ROOT } # Do not judge yourself
		}

		FROMFROM = {
			NOT = { has_law = succ_eldership }
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_disfigured

		FROM = { trait = disfigured }

		NOT = {
			culture_group = byzantine
			this_is_warrior_culture_trigger = no
		}
	}

	additive_modifier = {
		value = -50
		localisation_key = tooltip_feudal_elector_vote_disfigured_byzantine

		culture_group = byzantine
		FROM = { trait = disfigured }
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_disfigured_warrior

		FROM = { trait = disfigured }
		this_is_warrior_culture_trigger = yes
		NOT = { culture_group = byzantine }
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_clubfooted

		FROM = {
			trait = clubfooted
			NOT = { character = ROOT } # Do not judge yourself
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_dwarf

		FROM = {
			trait = dwarf
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no
	}

	additive_modifier = {
		value = -30
		localisation_key = tooltip_feudal_elector_vote_dwarf_warrior

		FROM = {
			trait = dwarf
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_harelip

		FROM = {
			trait = harelip
			NOT = { character = ROOT } # Do not judge yourself
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_hunchback

		FROM = {
			trait = hunchback
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no
	}

	additive_modifier = {
		value = -30
		localisation_key = tooltip_feudal_elector_vote_hunchback_warrior

		FROM = {
			trait = hunchback
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_inbred

		FROM = {
			trait = inbred
			NOT = { character = ROOT } # Do not judge yourself
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_lisp

		FROM = {
			trait = lisp
			NOT = { character = ROOT } # Do not judge yourself
		}
	}

	additive_modifier = {
		value = -5
		localisation_key = tooltip_feudal_elector_vote_stutter

		FROM = {
			trait = stutter
			NOT = { character = ROOT } # Do not judge yourself
		}
	}

	additive_modifier = { # Shunned for being blind
		value = -10
		localisation_key = tooltip_feudal_elector_vote_blinded_negative

		FROM = {
			trait = blinded
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			this_is_warrior_culture_trigger = yes
			culture_group = byzantine
		}
	}

	additive_modifier = { # Shunned for being blind
		value = -20
		localisation_key = tooltip_feudal_elector_vote_blinded_negative_warrior

		FROM = {
			trait = blinded
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes
		NOT = { culture_group = byzantine }
	}

	additive_modifier = { # Shunned for being blind
		value = -75
		localisation_key = tooltip_feudal_elector_vote_blinded_negative_byzantine

		FROM = {
			trait = blinded
			NOT = { character = ROOT } # Do not judge yourself
		}

		culture_group = byzantine
	}

	additive_modifier = { # Shunned for being eunuch
		value = -25
		localisation_key = tooltip_feudal_elector_vote_eunuch_negative

		FROM = {
			trait = eunuch
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			this_is_warrior_culture_trigger = yes
			culture_group = byzantine
			religion_group = muslim
		}
	}

	additive_modifier = { # Shunned for being eunuch
		value = -50
		localisation_key = tooltip_feudal_elector_vote_eunuch_negative_warrior

		FROM = {
			trait = eunuch
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		NOR = {
			culture_group = byzantine
			religion_group = muslim
		}
	}

	additive_modifier = { # Shunned for being eunuch
		value = -100
		localisation_key = tooltip_feudal_elector_vote_eunuch_negative_byzantine

		FROM = {
			trait = eunuch
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			culture_group = byzantine
			religion_group = muslim
		}
	}
}

elector_candidate_traits_disfigured_bias_strong_vote = {
	additive_modifier = {
		value = 25 # Feudal: 10
		localisation_key = tooltip_feudal_elector_vote_born_in_the_purple

		FROMFROM = { title = e_byzantium }

		culture_group = byzantine

		FROM = {
			trait = born_in_the_purple

			NOR = {
				has_minor_title = title_despot # Override
				character = FROM # Do not judge yourself
			}
		}
	}

	additive_modifier = {
		value = 25
		localisation_key = tooltip_feudal_elector_vote_despot

		culture_group = byzantine

		FROM = {
			has_minor_title = title_despot
			NOT = { character = ROOT } # Do not judge yourself
		}
	}

	additive_modifier = {
		value = -75 # Feudal: -15
		localisation_key = tooltip_feudal_elector_vote_disfigured

		FROM = { trait = disfigured }

		NOT = {
			culture_group = byzantine
			this_is_warrior_culture_trigger = no
		}
	}

	additive_modifier = {
		value = -100 # Feudal: -50
		localisation_key = tooltip_feudal_elector_vote_disfigured_byzantine

		culture_group = byzantine
		FROM = { trait = disfigured }
	}

	additive_modifier = {
		value = -50 # Feudal: -5
		localisation_key = tooltip_feudal_elector_vote_disfigured_warrior

		FROM = { trait = disfigured }

		this_is_warrior_culture_trigger = yes
		NOT = { culture_group = byzantine }
	}

	additive_modifier = {
		value = -15 # Feudal: -5
		localisation_key = tooltip_feudal_elector_vote_clubfooted

		FROM = {
			trait = clubfooted
			NOT = { character = ROOT } # Do not judge yourself
		}
	}

	additive_modifier = {
		value = -35 # Feudal: -15
		localisation_key = tooltip_feudal_elector_vote_dwarf

		FROM = {
			trait = dwarf
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no
	}

	additive_modifier = {
		value = -50 # Feudal: -30
		localisation_key = tooltip_feudal_elector_vote_dwarf_warrior

		FROM = {
			trait = dwarf
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = {
		value = -25 # Feudal: -5
		localisation_key = tooltip_feudal_elector_vote_harelip

		FROM = {
			trait = harelip
			NOT = { character = ROOT } # Do not judge yourself
		}
	}

	additive_modifier = {
		value = -45 # Feudal: -15
		localisation_key = tooltip_feudal_elector_vote_hunchback

		FROM = {
			trait = hunchback
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = no
	}

	additive_modifier = {
		value = -60 # Feudal: -30
		localisation_key = tooltip_feudal_elector_vote_hunchback_warrior

		FROM = {
			trait = hunchback
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = {
		value = -75 # Feudal: -15
		localisation_key = tooltip_feudal_elector_vote_inbred

		FROM = {
			trait = inbred
			NOT = { character = ROOT } # Do not judge yourself
		}
	}

	additive_modifier = {
		value = -25 # Feudal: -5
		localisation_key = tooltip_feudal_elector_vote_lisp

		FROM = {
			trait = lisp
			NOT = { character = ROOT } # Do not judge yourself
		}
	}

	additive_modifier = {
		value = -15 # Feudal: -5
		localisation_key = tooltip_feudal_elector_vote_stutter

		FROM = {
			trait = stutter
			NOT = { character = ROOT } # Do not judge yourself
		}
	}

	additive_modifier = { # Shunned for being blind
		value = -50 # Feudal: -10
		localisation_key = tooltip_feudal_elector_vote_blinded_negative

		FROM = {
			trait = blinded
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			this_is_warrior_culture_trigger = yes
			culture_group = byzantine
		}
	}

	additive_modifier = { # Shunned for being blind
		value = -80 # Feudal: -20
		localisation_key = tooltip_feudal_elector_vote_blinded_negative_warrior

		FROM = {
			trait = blinded
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes
		NOT = { culture_group = byzantine }
	}

	additive_modifier = { # Shunned for being blind
		value = -150 # Feudal: -75
		localisation_key = tooltip_feudal_elector_vote_blinded_negative_byzantine

		FROM = {
			trait = blinded
			NOT = { character = ROOT } # Do not judge yourself
		}

		culture_group = byzantine
	}

	additive_modifier = { # Shunned for being eunuch
		value = -50 # Feudal: -25
		localisation_key = tooltip_feudal_elector_vote_eunuch_negative

		FROM = {
			trait = eunuch
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			this_is_warrior_culture_trigger = yes
			culture_group = byzantine
			religion_group = muslim
		}
	}

	additive_modifier = { # Shunned for being eunuch
		value = -75 # Feudal: -50
		localisation_key = tooltip_feudal_elector_vote_eunuch_negative_warrior

		FROM = {
			trait = eunuch
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes

		NOR = {
			culture_group = byzantine
			religion_group = muslim
		}
	}

	additive_modifier = { # Shunned for being eunuch
		value = -150 # Feudal: -100
		localisation_key = tooltip_feudal_elector_vote_eunuch_negative_byzantine

		FROM = {
			trait = eunuch
			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			culture_group = byzantine
			religion_group = muslim
		}
	}
}

# Used in Feudal Elective and Imperial Elective. Princely Elective uses harsher weights.
elector_candidate_traits_excommunication_vote = {
	additive_modifier = { # Shunned for being excommunicated
		value = -25
		localisation_key = tooltip_feudal_elector_vote_excommunicated_negative

		FROM = {
			excommunicated_for = ROOT
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			trait = zealous
			trait = cynical
		}

		trigger_if = {
			limit = { trait = excommunicated }
			trait = arbitrary # No need for consistency
		}
	}

	additive_modifier = { # Shunned for being excommunicated
		value = -75
		localisation_key = tooltip_feudal_elector_vote_excommunicated_negative_zealous

		FROM = {
			excommunicated_for = ROOT
			NOT = { character = ROOT } # Do not judge yourself
		}

		trait = zealous

		trigger_if = {
			limit = { trait = excommunicated }
			trait = arbitrary # No need for consistency
		}
	}
}

elector_candidate_traits_excommunication_bias_strong_vote = {
	additive_modifier = { # Shunned for being excommunicated
		value = -50 # Feudal: -25
		localisation_key = tooltip_feudal_elector_vote_excommunicated_negative

		FROM = {
			excommunicated_for = ROOT
			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			trait = zealous
			trait = cynical
		}

		trigger_if = {
			limit = { trait = excommunicated }
			trait = arbitrary # No need for consistency
		}
	}

	additive_modifier = { # Shunned for being excommunicated
		value = -150 # Feudal: -75
		localisation_key = tooltip_feudal_elector_vote_excommunicated_negative_zealous

		FROM = {
			excommunicated_for = ROOT
			NOT = { character = ROOT } # Do not judge yourself
		}

		trait = zealous

		trigger_if = {
			limit = { trait = excommunicated }
			trait = arbitrary # No need for consistency
		}
	}
}

# Not used in Elective Gavelkind and Tanistry - use different weights instead
elector_candidate_traits_feudal_vote = {
	additive_modifier = { # Praised for being Seaking/Sea_queen
		value = 15
		localisation_key = tooltip_feudal_elector_vote_sea_king_positive

		FROM = {
			OR = {
				trait = sea_king
				trait = sea_queen
			}

			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			this_is_warrior_culture_trigger = yes
			has_religion_feature = religion_seafaring
		}
	}

	additive_modifier = { # Shunned for being Seaking/Sea_queen
		value = -15
		localisation_key = tooltip_feudal_elector_vote_sea_king_negative

		FROM = {
			OR = {
				trait = sea_king
				trait = sea_queen
			}

			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			this_is_warrior_culture_trigger = yes
			has_religion_feature = religion_seafaring
		}
	}

	additive_modifier = { # Praised for being Berserker
		value = 5
		localisation_key = tooltip_feudal_elector_vote_berserker_positive

		FROM = {
			trait = berserker
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = { # Shunned for being out of shape
		value = -10
		localisation_key = tooltip_feudal_elector_vote_shape_negative

		FROM = {
			OR = {
				trait = fat
				trait = malnourished
			}

			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = { # Shunned for being unproved courtier in the shadow of the ruler
		value = -10
		localisation_key = tooltip_feudal_elector_vote_spoiled_courtier

		FROM = {
			character = ROOT_FROMFROMFROM

			OR = {
				trait = decadent
				trait = slothful
				trait = hedonist
				trait = fat
				trait = shy
			}

			NOR = {
				character = ROOT # Do not judge yourself
				is_ruler = yes
				has_job_title = job_marshal
				has_job_title = job_chancellor
				has_job_title = job_treasurer
				has_job_title = job_spiritual
				has_job_title = job_spymaster
			}
		}
	}
}

elector_candidate_traits_tribal_vote = {
	additive_modifier = { # Praised for being Seaking/Sea_queen - Boosted for Elective Gavelkind
		value = 25 # Feudal: 15
		localisation_key = tooltip_feudal_elector_vote_sea_king_positive

		FROM = {
			OR = {
				trait = sea_king
				trait = sea_queen
			}

			NOT = { character = ROOT } # Do not judge yourself
		}

		OR = {
			this_is_warrior_culture_trigger = yes
			has_religion_feature = religion_seafaring
		}
	}

	additive_modifier = { # Shunned for being Seaking/Sea_queen - Reduced for Elective Gavelkind
		value = -5 # Feudal: -15
		localisation_key = tooltip_feudal_elector_vote_sea_king_negative

		FROM = {
			OR = {
				trait = sea_king
				trait = sea_queen
			}

			NOT = { character = ROOT } # Do not judge yourself
		}

		NOR = {
			this_is_warrior_culture_trigger = yes
			has_religion_feature = religion_seafaring
		}
	}

	additive_modifier = { # Praised for being Berserker - Boosted for Elective Gavelkind
		value = 10 # Feudal: 5
		localisation_key = tooltip_feudal_elector_vote_berserker_positive

		FROM = {
			trait = berserker
			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = { # Shunned for being out of shape - Boosted for Elective Gavelkind
		value = -15 # Feudal: -10
		localisation_key = tooltip_feudal_elector_vote_shape_negative

		FROM = {
			OR = {
				trait = fat
				trait = malnourished
			}

			NOT = { character = ROOT } # Do not judge yourself
		}

		this_is_warrior_culture_trigger = yes
	}

	additive_modifier = { # Shunned for being unproved courtier in the shadow of the ruler - Boosted for Elective Gavelkind
		value = -20 # Feudal: -10
		localisation_key = tooltip_feudal_elector_vote_spoiled_courtier

		FROM = {
			character = ROOT_FROMFROMFROM

			OR = {
				trait = decadent
				trait = slothful
				trait = hedonist
				trait = fat
				trait = shy
			}

			NOR = {
				character = ROOT # Do not judge yourself
				is_ruler = yes
				has_job_title = job_marshal
				has_job_title = job_chancellor
				has_job_title = job_treasurer
				has_job_title = job_spiritual
				has_job_title = job_spymaster
			}
		}
	}
}

elector_candidate_traits_pagan_branch_vote = {
	additive_modifier = { # Shunned for being of opposite pagan branch
		value = -25
		localisation_key = tooltip_feudal_elector_vote_pagan_branch_negative

		has_religion_feature = religion_no_leader

		FROM = {
			religion = ROOT # Will care only if of same religion
			NOT = { character = ROOT } # Do not judge yourself
		}

		trigger_if = {
			limit = { trait = pagan_branch_1 }

			FROM = {
				OR = {
					trait = pagan_branch_2
					trait = pagan_branch_3
					trait = pagan_branch_4
				}
			}
		}
		trigger_else_if = {
			limit = { trait = pagan_branch_2 }

			FROM = {
				OR = {
					trait = pagan_branch_1
					trait = pagan_branch_3
					trait = pagan_branch_4
				}
			}
		}
		trigger_else_if = {
			limit = { trait = pagan_branch_3 }

			FROM = {
				OR = {
					trait = pagan_branch_2
					trait = pagan_branch_1
					trait = pagan_branch_4
				}
			}
		}
		trigger_else_if = {
			limit = { trait = pagan_branch_4 }

			FROM = {
				OR = {
					trait = pagan_branch_2
					trait = pagan_branch_3
					trait = pagan_branch_1
				}
			}
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}
}

elector_candidate_traits_pagan_branch_bias_weak_vote = {
	additive_modifier = { # Shunned for being of opposite pagan branch
		value = -15 # Default: -25
		localisation_key = tooltip_feudal_elector_vote_pagan_branch_negative

		has_religion_feature = religion_no_leader

		FROM = {
			religion = ROOT # Will care only if of same religion
			NOT = { character = ROOT } # Do not judge yourself
		}

		trigger_if = {
			limit = { trait = pagan_branch_1 }

			FROM = {
				OR = {
					trait = pagan_branch_2
					trait = pagan_branch_3
					trait = pagan_branch_4
				}
			}
		}
		trigger_else_if = {
			limit = { trait = pagan_branch_2 }

			FROM = {
				OR = {
					trait = pagan_branch_1
					trait = pagan_branch_3
					trait = pagan_branch_4
				}
			}
		}
		trigger_else_if = {
			limit = { trait = pagan_branch_3 }

			FROM = {
				OR = {
					trait = pagan_branch_2
					trait = pagan_branch_1
					trait = pagan_branch_4
				}
			}
		}
		trigger_else_if = {
			limit = { trait = pagan_branch_4 }

			FROM = {
				OR = {
					trait = pagan_branch_2
					trait = pagan_branch_3
					trait = pagan_branch_1
				}
			}
		}

		FROMFROM = {
			trigger_if = {
				limit = { has_law = succ_eldership }
				holder = ROOT
			}
		}
	}
}

elector_ruler_traits_vote = {
	###   Ruler's traits   ###
	# Ruler is lunatic, vote against his pick
	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_anti_vote_ruler_lunatic

		FROMFROM = {
			holder_scope = {
				trait = lunatic
			}
		}

		FROM = {
			character = ROOT_FROMFROMFROM
			NOT = { character = ROOT } # But not if it's me
		}

		NOR = {
			trait = lunatic # Don't care
			trait = possessed # Don't care
			trait = arbitrary # Don't care
			trait = zealous # Might be the gods speaking
		}
	}

	# Ruler is possessed, vote against his pick
	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_anti_vote_ruler_possessed

		FROMFROM = {
			holder_scope = {
				trait = possessed
			}
		}

		FROM = {
			character = ROOT_FROMFROMFROM
			NOT = { character = ROOT } # But not if it's me
		}

		trait = zealous

		NOR = {
			trait = lunatic # Don't care
			trait = possessed # Don't care
			trait = arbitrary # Don't care
		}
	}

	# Ruler is just, trust his pick
	additive_modifier = {
		value = 25
		localisation_key = tooltip_feudal_elector_pro_vote_ruler_just

		FROMFROM = {
			holder_scope = {
				trait = just
			}
		}

		FROM = {
			character = ROOT_FROMFROMFROM
			NOT = { character = ROOT } # But not if it's me
		}

		NOR = {
			trait = lunatic # Don't care
			trait = possessed # Don't care
			trait = arbitrary # Don't like it
		}
	}

	# Ruler is a Tyrant (Opinion), vote against his pick
	additive_modifier = {
		value = -25
		localisation_key = tooltip_feudal_elector_anti_vote_ruler_tyrant

		FROMFROM = {
			holder_scope = {
				ROOT = {
					has_opinion_modifier = {
						modifier = opinion_tyrant
						who = PREV
					}
				}
			}
		}

		FROM = {
			character = ROOT_FROMFROMFROM
			NOT = { character = ROOT } # But not if it's me
		}

		NOR = {
			trait = lunatic # Don't care
			trait = possessed # Don't care
			trait = arbitrary # Don't care
		}
	}
}

elector_candidate_opinion_vote = {
	### Raw Opinion bonus towards Candidate ###
	additive_modifier = {
		value = -150
		localisation_key = tooltip_feudal_elector_vote_opinion_negative

		is_rival = FROM
		NOT = { character = FROM } # But not if it's me
	}

	additive_modifier = {
		value = -100
		localisation_key = tooltip_feudal_elector_vote_opinion_negative

		NOR = {
			character = FROM # But not if it's me
			is_rival = FROM # Special case, above
		}

		opinion = {
			who = FROM
			value < -75
		}
	}

	additive_modifier = {
		value = -50
		localisation_key = tooltip_feudal_elector_vote_opinion_negative

		NOR = {
			character = FROM # But not if it's me
			is_rival = FROM # Special case, above
		}

		opinion = {
			who = FROM
			value < -50
		}

		opinion = {
			who = FROM
			value >= -75
		}
	}

	additive_modifier = {
		value = -30
		localisation_key = tooltip_feudal_elector_vote_opinion_negative

		NOR = {
			character = FROM # But not if it's me
			is_rival = FROM # Special case, above
		}

		opinion = {
			who = FROM
			value < -25
		}

		opinion = {
			who = FROM
			value >= -50
		}
	}

	additive_modifier = {
		value = -15
		localisation_key = tooltip_feudal_elector_vote_opinion_negative

		NOR = {
			character = FROM # But not if it's me
			is_rival = FROM # Special case, above
		}

		opinion = {
			who = FROM
			value < 0
		}

		opinion = {
			who = FROM
			value >= -25
		}
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_opinion_positive

		NOR = {
			character = FROM # But not if it's me
			is_rival = FROM # Special case, above
		}

		opinion = {
			who = FROM
			value < -25
		}

		opinion = {
			who = FROM
			value >= 0
		}
	}

	additive_modifier = {
		value = 30
		localisation_key = tooltip_feudal_elector_vote_opinion_positive

		NOR = {
			character = FROM # But not if it's me
			is_rival = FROM # Special case, above
		}

		opinion = {
			who = FROM
			value < 50
		}

		opinion = {
			who = FROM
			value >= 25
		}
	}

	additive_modifier = {
		value = 50
		localisation_key = tooltip_feudal_elector_vote_opinion_positive

		NOR = {
			character = FROM # But not if it's me
			is_rival = FROM # Special case, above
		}

		opinion = {
			who = FROM
			value < 75
		}

		opinion = {
			who = FROM
			value >= 50
		}
	}

	additive_modifier = {
		value = 70
		localisation_key = tooltip_feudal_elector_vote_opinion_positive

		NOR = {
			character = FROM # But not if it's me
			is_rival = FROM # Special case, above
		}

		opinion = {
			who = FROM
			value >= 75
		}
	}
}

elector_ruler_opinion_vote = {
	### Raw Opinion bonus towards Ruler ###
	additive_modifier = { # Vassal hates ruler, therefore votes against the ruler's candidate (FROMFROMFROM)
		value = -30
		localisation_key = tooltip_feudal_elector_anti_vote_ruler_opinion_negative

		FROM = {
			character = ROOT_FROMFROMFROM
			NOT = { character = ROOT } # But not if it's me
		}

		FROMFROM = {
			holder_scope = {
				NOT = { character = ROOT } # Of course you trust your own opinion of your candidate...

				reverse_opinion = {
					who = ROOT
					value < -75
				}
			}
		}
	}

	additive_modifier = { # Vassal hates ruler, therefore votes against the ruler's candidate (FROMFROMFROM)
		value = -20
		localisation_key = tooltip_feudal_elector_anti_vote_ruler_opinion_negative

		FROM = {
			character = ROOT_FROMFROMFROM
			NOT = { character = ROOT } # But not if it's me
		}

		FROMFROM = {
			holder_scope = {
				NOT = { character = ROOT } # Of course you trust your own opinion of your candidate...

				reverse_opinion = {
					who = ROOT
					value < -50
				}

				reverse_opinion = {
					who = ROOT
					value >= -75
				}
			}
		}
	}

	additive_modifier = { # Vassal hates ruler, therefore votes against the ruler's candidate (FROMFROMFROM)
		value = -10
		localisation_key = tooltip_feudal_elector_anti_vote_ruler_opinion_negative

		FROM = {
			character = ROOT_FROMFROMFROM
			NOT = { character = ROOT } # But not if it's me
		}

		FROMFROM = {
			holder_scope = {
				NOT = { character = ROOT } # Of course you trust your own opinion of your candidate...

				reverse_opinion = {
					who = ROOT
					value < -25
				}

				reverse_opinion = {
					who = ROOT
					value >= -50
				}
			}
		}
	}

	additive_modifier = { # Vassal hates ruler, therefore votes against the ruler's candidate (FROMFROMFROM)
		value = -5
		localisation_key = tooltip_feudal_elector_anti_vote_ruler_opinion_negative

		FROM = {
			character = ROOT_FROMFROMFROM
			NOT = { character = ROOT } # But not if it's me
		}

		FROMFROM = {
			holder_scope = {
				NOT = { character = ROOT } # Of course you trust your own opinion of your candidate...

				reverse_opinion = {
					who = ROOT
					value < 0
				}

				reverse_opinion = {
					who = ROOT
					value >= -25
				}
			}
		}
	}

	additive_modifier = { # Vassal loves ruler, therefore votes for the ruler's candidate (FROMFROMFROM)
		value = 10
		localisation_key = tooltip_feudal_elector_pro_vote_ruler_opinion_positive

		FROM = {
			character = ROOT_FROMFROMFROM
			NOT = { character = ROOT } # But not if it's me
		}

		FROMFROM = {
			holder_scope = {
				NOT = { character = ROOT } # Of course you trust your own opinion of your candidate...

				reverse_opinion = {
					who = ROOT
					value < 25
				}

				reverse_opinion = {
					who = ROOT
					value >= 0
				}
			}

			# HRE must be coronated
			trigger_if = {
				limit = { has_law = succ_hre_elective }

				holder_scope = {
					OR = {
						trait = crowned_by_pope
						trait = crowned_by_bishop
						trait = crowned_by_priest
					}
				}
			}
		}
	}

	additive_modifier = { # Vassal loves ruler, therefore votes for the ruler's candidate (FROMFROMFROM)
		value = 20
		localisation_key = tooltip_feudal_elector_pro_vote_ruler_opinion_positive

		FROM = {
			character = ROOT_FROMFROMFROM
			NOT = { character = ROOT } # But not if it's me
		}

		FROMFROM = {
			holder_scope = {
				NOT = { character = ROOT } # Of course you trust your own opinion of your candidate...

				reverse_opinion = {
					who = ROOT
					value < 50
				}

				reverse_opinion = {
					who = ROOT
					value >= 25
				}
			}

			# HRE must be coronated
			trigger_if = {
				limit = { has_law = succ_hre_elective }

				holder_scope = {
					OR = {
						trait = crowned_by_pope
						trait = crowned_by_bishop
						trait = crowned_by_priest
					}
				}
			}
		}
	}

	additive_modifier = { # Vassal loves ruler, therefore votes for the ruler's candidate (FROMFROMFROM)
		value = 40
		localisation_key = tooltip_feudal_elector_pro_vote_ruler_opinion_positive

		FROM = {
			character = ROOT_FROMFROMFROM
			NOT = { character = ROOT } # But not if it's me
		}

		FROMFROM = {
			holder_scope = {
				NOT = { character = ROOT } # Of course you trust your own opinion of your candidate...

				reverse_opinion = {
					who = ROOT
					value < 75
				}

				reverse_opinion = {
					who = ROOT
					value >= 50
				}
			}

			# HRE must be coronated
			trigger_if = {
				limit = { has_law = succ_hre_elective }

				holder_scope = {
					OR = {
						trait = crowned_by_pope
						trait = crowned_by_bishop
						trait = crowned_by_priest
					}
				}
			}
		}
	}

	additive_modifier = { # Vassal loves ruler, therefore votes for the ruler's candidate (FROMFROMFROM)
		value = 60
		localisation_key = tooltip_feudal_elector_pro_vote_ruler_opinion_positive

		FROM = {
			character = ROOT_FROMFROMFROM
			NOT = { character = ROOT } # But not if it's me
		}

		FROMFROM = {
			holder_scope = {
				NOT = { character = ROOT } # Of course you trust your own opinion of your candidate...

				reverse_opinion = {
					who = ROOT
					value >= 75
				}
			}

			# HRE must be coronated
			trigger_if = {
				limit = { has_law = succ_hre_elective }

				holder_scope = {
					OR = {
						trait = crowned_by_pope
						trait = crowned_by_bishop
						trait = crowned_by_priest
					}
				}
			}
		}
	}
}

# Additional scoring criteria for Imperial Elective
elector_candidate_roman_attributes_martial_vote = {
	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_commander_martial

		FROM = {
			OR = {
				has_minor_title = title_commander
				has_job_title = job_marshal
			}

			martial >= 10
			martial < 12
		}
	}

	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_commander_martial

		FROM = {
			OR = {
				has_minor_title = title_commander
				has_job_title = job_marshal
			}

			martial >= 12
			martial < 16
		}
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_commander_martial

		FROM = {
			OR = {
				has_minor_title = title_commander
				has_job_title = job_marshal
			}

			martial >= 16
			martial < 18
		}
	}

	additive_modifier = {
		value = 20
		localisation_key = tooltip_feudal_elector_vote_commander_martial

		FROM = {
			OR = {
				has_minor_title = title_commander
				has_job_title = job_marshal
			}

			martial >= 18
			martial < 20
		}
	}

	additive_modifier = {
		value = 25
		localisation_key = tooltip_feudal_elector_vote_commander_martial

		FROM = {
			OR = {
				has_minor_title = title_commander
				has_job_title = job_marshal
			}

			martial >= 20
			martial < 25
		}
	}

	additive_modifier = {
		value = 30
		localisation_key = tooltip_feudal_elector_vote_commander_martial

		FROM = {
			OR = {
				has_minor_title = title_commander
				has_job_title = job_marshal
			}

			martial >= 30
		}
	}
}

elector_candidate_roman_attributes_diplomacy_vote = {
	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_councilor_diplomacy

		culture = roman

		FROM = {
			ere_elective_politician_titles_trigger = yes

			diplomacy >= 10
			diplomacy < 12
		}
	}

	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_councilor_diplomacy

		culture = roman

		FROM = {
			ere_elective_politician_titles_trigger = yes

			diplomacy >= 12
			diplomacy < 16
		}
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_councilor_diplomacy

		culture = roman

		FROM = {
			ere_elective_politician_titles_trigger = yes

			diplomacy >= 16
			diplomacy < 18
		}
	}
	additive_modifier = {
		value = 20
		localisation_key = tooltip_feudal_elector_vote_councilor_diplomacy

		culture = roman

		FROM = {
			ere_elective_politician_titles_trigger = yes

			diplomacy >= 18
			diplomacy < 20
		}
	}

	additive_modifier = {
		value = 25
		localisation_key = tooltip_feudal_elector_vote_councilor_diplomacy

		culture = roman

		FROM = {
			ere_elective_politician_titles_trigger = yes

			diplomacy >= 20
			diplomacy < 25
		}
	}

	additive_modifier = {
		value = 30
		localisation_key = tooltip_feudal_elector_vote_councilor_diplomacy

		culture = roman

		FROM = {
			ere_elective_politician_titles_trigger = yes

			diplomacy >= 30
		}
	}
}

elector_candidate_roman_attributes_intrigue_vote = {
	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_councilor_intrigue

		culture = greek

		FROM = {
			ere_elective_politician_titles_trigger = yes

			intrigue >= 10
			intrigue < 12
		}
	}

	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_councilor_intrigue

		culture = greek

		FROM = {
			ere_elective_politician_titles_trigger = yes

			intrigue >= 12
			intrigue < 16
		}
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_councilor_intrigue

		culture = greek

		FROM = {
			ere_elective_politician_titles_trigger = yes

			intrigue >= 16
			intrigue < 18
		}
	}

	additive_modifier = {
		value = 20
		localisation_key = tooltip_feudal_elector_vote_councilor_intrigue

		culture = greek

		FROM = {
			ere_elective_politician_titles_trigger = yes

			intrigue >= 18
			intrigue < 20
		}
	}

	additive_modifier = {
		value = 25
		localisation_key = tooltip_feudal_elector_vote_councilor_intrigue

		culture = greek

		FROM = {
			ere_elective_politician_titles_trigger = yes

			intrigue >= 20
			intrigue < 25
		}
	}

	additive_modifier = {
		value = 30
		localisation_key = tooltip_feudal_elector_vote_councilor_intrigue

		culture = greek

		FROM = {
			ere_elective_politician_titles_trigger = yes

			intrigue >= 30
		}
	}
}

# Only used in Eldership, by the ruler
elector_candidate_stewardship_vote = {
	additive_modifier = {
		value = -10
		localisation_key = tooltip_feudal_elector_vote_stewardship_score_negative

		has_landed_title = FROMFROM

		FROM = { stewardship < 5 }
	}

	additive_modifier = {
		value = 5
		localisation_key = tooltip_feudal_elector_vote_stewardship_score

		has_landed_title = FROMFROM

		FROM = {
			stewardship >= 10
			stewardship < 15
		}
	}

	additive_modifier = {
		value = 10
		localisation_key = tooltip_feudal_elector_vote_stewardship_score

		has_landed_title = FROMFROM

		FROM = {
			stewardship >= 15
			stewardship < 20
		}
	}

	additive_modifier = {
		value = 15
		localisation_key = tooltip_feudal_elector_vote_stewardship_score

		has_landed_title = FROMFROM

		FROM = { stewardship >= 20 }
	}
}

elector_candidate_opinion_eldership_vote = {
	additive_modifier = {
		value = -50 # Feudal: -150
		localisation_key = tooltip_feudal_elector_vote_opinion_negative

		has_landed_title = FROMFROM
		is_rival = FROM
	}

	additive_modifier = {
		value = -40 # Feudal: -100
		localisation_key = tooltip_feudal_elector_vote_opinion_negative

		has_landed_title = FROMFROM
		NOT = { is_rival = FROM } # Special case, above

		opinion = {
			who = FROM
			value < -75
		}
	}

	additive_modifier = {
		value = -20 # Feudal: -50
		localisation_key = tooltip_feudal_elector_vote_opinion_negative

		has_landed_title = FROMFROM
		NOT = { is_rival = FROM } # Special case, above

		opinion = {
			who = FROM
			value < -50
		}

		opinion = {
			who = FROM
			value >= -75
		}
	}
	additive_modifier = {
		value = -10 # Feudal: -30
		localisation_key = tooltip_feudal_elector_vote_opinion_negative

		has_landed_title = FROMFROM
		NOT = { is_rival = FROM } # Special case, above

		opinion = {
			who = FROM
			value < -25
		}

		opinion = {
			who = FROM
			value >= -50
		}
	}

	additive_modifier = {
		value = -5 # Feudal: -15
		localisation_key = tooltip_feudal_elector_vote_opinion_negative

		has_landed_title = FROMFROM
		NOT = { is_rival = FROM } # Special case, above

		opinion = {
			who = FROM
			value < 0
		}

		opinion = {
			who = FROM
			value >= -25
		}
	}

	additive_modifier = {
		value = 5 # Feudal: 15
		localisation_key = tooltip_feudal_elector_vote_opinion_positive

		has_landed_title = FROMFROM
		NOT = { is_rival = FROM } # Special case, above

		opinion = {
			who = FROM
			value < -25
		}

		opinion = {
			who = FROM
			value >= 0
		}
	}

	additive_modifier = {
		value = 10 # Feudal: 30
		localisation_key = tooltip_feudal_elector_vote_opinion_positive

		has_landed_title = FROMFROM
		NOT = { is_rival = FROM } # Special case, above

		opinion = {
			who = FROM
			value < 50
		}

		opinion = {
			who = FROM
			value >= 25
		}
	}

	additive_modifier = {
		value = 30 # Feudal: 50
		localisation_key = tooltip_feudal_elector_vote_opinion_positive

		has_landed_title = FROMFROM
		NOT = { is_rival = FROM } # Special case, above

		opinion = {
			who = FROM
			value < 75
		}

		opinion = {
			who = FROM
			value >= 50
		}
	}

	additive_modifier = {
		value = 40 # Feudal: 70
		localisation_key = tooltip_feudal_elector_vote_opinion_positive

		has_landed_title = FROMFROM
		NOT = { is_rival = FROM } # Special case, above

		opinion = {
			who = FROM
			value >= 75
		}
	}
}
