# The entry should be named in the same way that the elective succession law is named to define its voter's logic
# ROOT 			Voter, the character voting in the election
# FROM			Candidate, character considered for the title
# FROMFROM		The title the nomination is for
# FROMFROMFROM	The title owner's candidate
# The voter will vote for the top score candidate calculated from this script

eldership_rules = {
	elector_stances = {
		elder_ruler = {
			icon = 2
			days = 1

			additive_modifier = {
				value = 500
				localisation_key = tooltip_eldership_stance_ruler_is_ruler

				has_landed_title = FROMFROM
			}
		}

		elder_ecstatic = {
			icon = 2
			days = 1

			additive_modifier = {
				value = 1
				localisation_key = tooltip_eldership_stance_elder_content

				trait = content
			}

			additive_modifier = {
				value = 2
				localisation_key = tooltip_eldership_stance_elder_councilor

				OR = {
				 	has_job_title = job_chancellor
				 	has_job_title = job_treasurer
				 	has_job_title = job_spiritual
				}

				vassal_of = FROMFROM
			}

			additive_modifier = {
				value = 10
				localisation_key = tooltip_eldership_stance_elder_ecstatic_opinion

				FROMFROM = {
					holder_scope = {
						OR = {
							reverse_opinion = {
								who = ROOT
								value >= 70
							}

							is_friend = ROOT
							is_lover = ROOT
						}
					}
				}
			}

			additive_modifier = {
				value = 5
				localisation_key = tooltip_eldership_stance_elder_ecstatic_fulfilled_demand

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

						reverse_has_opinion_modifier = {
							name = opinion_elder_fulfilled_demand
							who = ROOT
						}
					}
				}
			}
		}

		elder_pleased = {
			icon = 3
			days = 2

			additive_modifier = {
				value = 2
				localisation_key = tooltip_eldership_stance_elder_councilor

				OR = {
				 	has_job_title = job_chancellor
				 	has_job_title = job_treasurer
				 	has_job_title = job_spiritual
				}

				vassal_of = FROMFROM
			}

			additive_modifier = {
				value = 4
				localisation_key = tooltip_eldership_stance_elder_pleased_opinion

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

						reverse_opinion = {
							who = ROOT
							value < 70
						}

						NOT = { is_rival = ROOT }
					}
				}
			}

			additive_modifier = {
				value = 2
				localisation_key = tooltip_eldership_stance_elder_stubborn_opinion

				trait = stubborn
			}

			additive_modifier = {
				value = 4
				localisation_key = tooltip_eldership_stance_elder_ecstatic_fulfilled_demand

				FROMFROM = {
					holder_scope = {
						reverse_opinion = {
							who = ROOT
							value < 25
						}

						reverse_has_opinion_modifier = {
							name = opinion_elder_fulfilled_demand
							who = ROOT
						}
					}
				}
			}
		}

		elder_displeased = {
			icon = 1
			days = 1

			additive_modifier = {
				value = 5
				localisation_key = tooltip_eldership_stance_elder_stubborn_opinion

				trait = stubborn
			}

			additive_modifier = {
				value = 4
				localisation_key = tooltip_eldership_stance_elder_negative_opinion

				FROMFROM = {
					holder_scope = {
						OR = {
							is_rival = ROOT

							trigger_if = {
								limit = {
									reverse_opinion = {
										who = ROOT
										value < 25
									}
								}

								NOR = {
									is_friend = ROOT
									is_lover = ROOT
								}
							}
						}
					}
				}
			}
		}
	}

	elector_vote_strength = {
		days = 1
	}

	elector_selection = {
		days = -5
		max_amount = 7

		trigger = {
			# The title must currently exist
			FROMFROM = {
				has_holder = yes
			}
		}

		additive_modifier = { # Ruler is also always an Elector
			value = 200

			has_landed_title = FROMFROM
		}

		additive_modifier = {
			value = 4

			has_job_title = job_spiritual
			vassal_of = FROMFROM
		}

		additive_modifier = {
			value = 6

			vassal_of = FROMFROM
			has_character_modifier = elder_long_life_modifier # Favor former Elders who are still in your court or your direct vassals
			age < 40
		}

		additive_modifier = {
			value = 16

			vassal_of = FROMFROM
			has_character_modifier = elder_long_life_modifier # Favor former Elders who are still in your court or your direct vassals, and who are old even more
			age >= 40
		}

		additive_modifier = {
			value = 4

			is_vassal_or_below_of = FROMFROM
			NOT = { vassal_of = FROMFROM }
			has_character_modifier = elder_long_life_modifier # Favor former Elders
			age < 40
		}

		additive_modifier = {
			value = 6

			is_vassal_or_below_of = FROMFROM
			NOT = { vassal_of = FROMFROM }
			has_character_modifier = elder_long_life_modifier # Favor former Elders who are old even more
			age >= 40
		}

		additive_modifier = {
			value = 20

			is_vassal_or_below_of = FROMFROM
			age >= 70
		}

		additive_modifier = {
			value = 15

			is_vassal_or_below_of = FROMFROM
			age < 70
			age >= 60
		}

		additive_modifier = {
			value = 10

			is_vassal_or_below_of = FROMFROM
			age < 60
			age >= 50
		}

		additive_modifier = {
			value = 8

			is_vassal_or_below_of = FROMFROM
			age < 50
			age >= 40
		}

		additive_modifier = {
			value = 7

			is_vassal_or_below_of = FROMFROM
			age < 40
			age >= 35
		}

		additive_modifier = {
			value = 6

			is_vassal_or_below_of = FROMFROM
			age < 35
			age >= 30
		}

		additive_modifier = {
			value = -8

			is_vassal_or_below_of = FROMFROM
			age < 27
		}

		additive_modifier = {
			value = 9

			is_vassal_or_below_of = FROMFROM
			learning >= 18
			age >= 35
		}

		additive_modifier = {
			value = 8

			is_vassal_or_below_of = FROMFROM
			learning < 18
			learning >= 16
			age >= 35
		}

		additive_modifier = {
			value = 7

			is_vassal_or_below_of = FROMFROM
			learning < 16
			learning >= 14
			age >= 35
		}

		additive_modifier = {
			value = 6

			is_vassal_or_below_of = FROMFROM
			learning < 14
			learning >= 12
			age >= 35
		}

		additive_modifier = {
			value = 8

			vassal_of = FROMFROM
			age >= 37

			FROMFROM = {
				holder_scope = {
					culture = ROOT
					religion = ROOT
				}
			}

			OR = {
				has_job_title = job_chancellor
				has_job_title = job_spiritual
			}
		}

	#	additive_modifier = {
	#		value = -5
	#
	#		FROMFROM = {
	#			holder_scope = {
	#				NOT = { culture = ROOT }
	#			}
	#		}
	#	}
	#
	#	additive_modifier = {
	#		value = -3
	#
	#		FROMFROM = {
	#			holder_scope = {
	#				religion_group = ROOT
	#
	#				NOR = {
	#					has_religion_feature = religion_cosmopolitan
	#					religion = ROOT
	#				}
	#			}
	#		}
	#	}
	#
	#	additive_modifier = {
	#		value = -10
	#
	#		FROMFROM = {
	#			holder_scope = {
	#				NOT = { culture_group = ROOT }
	#			}
	#		}
	#	}
	#
	#	additive_modifier = {
	#		value = -5
	#
	#		FROMFROM = {
	#			holder_scope = {
	#				NOR = {
	#					religion_group = ROOT
	#					has_religion_feature = religion_cosmopolitan
	#				}
	#			}
	#		}
	#	}

		additive_modifier = {
			value = 4

			is_vassal_or_below_of = FROMFROM
			is_ruler = no
		}

		additive_modifier = {
			value = -100

			is_vassal_or_below_of = FROMFROM
			is_incapable = yes
		}

		additive_modifier = { # Try to avoid having long-lived rulers seeing their children become "Elders"
			value = -25

			age < 50

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

		additive_modifier = { # Try to avoid having young Elders when older options are available
			value = -15

			age < 45

			FROMFROM = {
				holder_scope = {
					any_courtier_or_vassal = {
						age >= 45
						NOT = { has_character_modifier = elder_long_life_modifier }
					}
				}
			}
		}
	}

	# ROOT is current title holder
	# FROM is candidate
	# FROMFROM is title
	# FROMFROMFROM is null
	candidate_trigger = {
		# Title must currently exist
		FROMFROM = {
			has_holder = yes
		}

		FROM = {
			dynasty = ROOT

			# Either the candidate is in the realm, or is landless, or the title is independent, or the realm of the title does NOT have protected inheritance
			OR = {
				same_realm = ROOT
				is_ruler = no

				ROOT_FROMFROM = {
					OR = {
						holder_scope = {
							independent = yes
						}

						NOR = {
							has_law = out_of_realm_inheritance_law_1
							has_law = crown_authority_3
							has_law = crown_authority_4
						}
					}
				}
			}

			# Candidate should not be a landless Courtier who is about to inherit a Theocracy or Republic
			trigger_if = {
				limit = {
					any_heir_title = {
						OR = {
							is_republic = yes
							is_theocracy = yes
						}
					}
				}

				is_landed = yes
				is_republic = no
				is_theocracy = no
			}

			# If the title controls the religion, candidates must be of the same religion
			trigger_if = {
				limit = { ROOT = { controls_religion = yes } }
				religion = ROOT
			}

			is_ascetic_trigger = no
			is_theocracy = no
			is_republic = no

			NOR = {
				trait = cat
				trait = disinherited
				trait = horse
				trait = eunuch
				trait = bastard
				trait = crusader_king
				trait = crusader_queen
				character = ROOT # Not the current ruler
			}
		}
	}

	candidate_vote_score = {
		days = 0

		##########################   Title Holder logic for voting   ##########################
		# The title holder (who also gets a vote), calculates his chosen heir using a very similar behavior to that of the Elective Gavelkind Electors
		# Elder AI behavior on the other hand uses an entirely different set of modifiers

		##########################   Candidate's traits   ##########################

		# Sexism
		elector_candidate_gender_vote = yes

		# No Ageism - The ruler will not care, as long as they are its children

		# Culturism - Eldership is a tribalistic succession, therefore malus/bonus on cultural bias are increased
		elector_candidate_culture_bias_strong_vote = yes

		# Faithism - Eldership is more about choosing a good dynastic member, so faith bias is slightly reduced
		elector_candidate_religion_bias_weak_vote = yes

		# Barbarism - Tribal succession, that is the point

		# Tribalism
		elector_candidate_tribalism_vote = yes

		# Nepotism - All characters are relatives, although some might not be of the same dynasty as the Elector.
		elector_candidate_nepotism_vote = yes

		# Prestige - Negligible, will usually pick his own children

		# Piety - Negligible, will usually pick his own children

		# Educational preferences - Parent prefers child with his same interests
		elector_candidate_education_lifestyle_vote = yes

		# Eldership favors Stewardship
		elector_candidate_stewardship_vote = yes

		# Claims - The title holder does not care, he wants his children to be the heirs

		# All the Traits
		elector_candidate_traits_vote = yes
		elector_candidate_traits_disfigured_vote = yes
		elector_candidate_traits_excommunication_vote = yes
		elector_candidate_traits_tribal_vote = yes
		elector_candidate_traits_pagan_branch_bias_weak_vote = yes

		### Raw Opinion bonus towards Candidate ###
		elector_candidate_opinion_vote = yes

		### Elder is Ecstatic + Title holder has selected a Candidate ###

		additive_modifier = {
			value = 200
			localisation_key = tooltip_elder_elector_vote_ecstatic_candidate

			has_elector_stance = {
				stance = elder_ecstatic
				title = FROMFROM
			}

			FROM = {
				character = ROOT_FROMFROMFROM
			}
		}
		additive_modifier = {
			value = 60
			localisation_key = tooltip_elder_elector_vote_ecstatic_candidate_bad

			has_elector_stance = {
				stance = elder_ecstatic
				title = FROMFROM
			}

			FROM = {
				character = ROOT_FROMFROMFROM

				OR = {
					is_rival = ROOT
					trait = inbred
					trait = imbecile
					is_incapable = yes
				}
			}
		}

		### Elder is Pleased (OR Ecstatic but title holder has NOT selected a Candidate) ###

		## Candidate's traits ##

		# Elector voting himself - Less likely for Elders #

		additive_modifier = {
			value = 5
			localisation_key = tooltip_feudal_elector_vote_myself

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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 = -30
			localisation_key = tooltip_feudal_elector_vote_not_myself

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			character = FROM
			NOT = { trait = ambitious }

			OR = {
				trait = humble
				trait = content
				trait = craven
				trait = slothful
				trait = stressed
				trait = depressed
			}
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_feudal_elector_vote_myself_heir

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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 = 15
			localisation_key = tooltip_feudal_elector_vote_myself_ambitious

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			character = FROM
			trait = ambitious
		}

		# Elders voting other elders
		additive_modifier = {
			value = -25
			localisation_key = tooltip_elder_elector_vote_pleased_elder_candidate

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				has_character_modifier = elder_long_life_modifier
				NOT = { character = ROOT } # Don't judge yourself
			}
		}

		# Sexism
		additive_modifier = { # Gender weights
			value = -30
			localisation_key = tooltip_feudal_elector_vote_agnatic_woman

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROMFROM = {
				has_law = cognatic_succession
			}

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

			FROM = {
				is_female = yes
			}
		}
		additive_modifier = { # Gender weights
			value = -30
			localisation_key = tooltip_feudal_elector_vote_enatic_man

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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
			}

			FROM = {
				is_female = no
			}
		}
		additive_modifier = { # Gender weights
			value = -50
			localisation_key = tooltip_feudal_elector_vote_sow

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				is_female = yes
			}

			FROMFROM = {
				has_law = status_of_women_0
			}

			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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				is_female = yes
			}

			FROMFROM = {
				has_law = status_of_women_1
			}

			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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				is_female = yes
			}

			FROMFROM = {
				has_law = status_of_women_2
			}

			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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				is_female = yes
			}

			FROMFROM = {
				has_law = status_of_women_3
			}

			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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				is_female = yes
			}

			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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				is_female = yes
			}

			has_religion_feature = religion_matriarchal
			has_gender_equal_game_rule_trigger = no
		}

		# Ageism - Boosted for Elders, they will always prefer more experienced leaders
		additive_modifier = {
			value = -70
			localisation_key = tooltip_feudal_elector_vote_baby

			FROM = {
				age <= 5
			}
		}
		additive_modifier = {
			value = -50
			localisation_key = tooltip_feudal_elector_vote_child

			FROM = {
				age >= 5
				age < 10
			}
		}
		additive_modifier = {
			value = -30
			localisation_key = tooltip_feudal_elector_vote_child

			FROM = {
				age >= 10
				is_adult = no
			}
		}
		additive_modifier = { # Still too young for older rulers
			value = -15
			localisation_key = tooltip_feudal_elector_vote_youngster

			age >= 30

			FROM = {
				is_adult = yes
				age < 25
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_youngster

			age >= 40

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

		# Culturism - Eldership is a tribalistic succession, therefore malus/bonus on cultural bias are increased
		additive_modifier = {
			value = 15
			localisation_key = tooltip_feudal_elector_vote_fellow_culture

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			NOT = { character = FROM }
			culture = FROM
		}
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_stranger

			NOT = { culture = FROM }
			has_elector_stance = { stance = elder_pleased title = FROMFROM }
		}
		additive_modifier = {
			value = -40
			localisation_key = tooltip_feudal_elector_vote_foreigner

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

		# Faithism - Eldership is more about choosing a good Dynastic member, so faith bias is slightly reduced
		additive_modifier = { # Infidel
			value = -10
			localisation_key = tooltip_feudal_elector_vote_infidel

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			FROM = {
				religion_group = ROOT

				NOR = {
					religion = ROOT
					is_heresy_of = ROOT
				}
			}
		}
		additive_modifier = { # Heathen
			value = -25
			localisation_key = tooltip_feudal_elector_vote_heathen

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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 = -30
			localisation_key = tooltip_feudal_elector_vote_heretic

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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 = -50
			localisation_key = tooltip_feudal_elector_vote_heathen_dogmatic

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

		# Barbarism - Tribal succession, that is the point
	#	additive_modifier = {
	#		value = -15
	#		localisation_key = tooltip_feudal_elector_vote_uncivilized
	#		OR = {
	#			is_feudal = yes
	#			is_merchant_republic = yes
	#			is_patrician = yes
	#		}
	#		FROM = {
	#			NOR = {
	#				is_feudal = yes
	#				is_merchant_republic = yes
	#				is_patrician = yes
	#			}
	#		}
	#	}

		# Tribalism
		additive_modifier = {
			value = -30
			localisation_key = tooltip_feudal_elector_vote_tribalism

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			is_tribal = yes
			FROM = {
				OR = {
					AND = {
						is_ruler = yes
						is_tribal = no
					}
					AND = {
						is_ruler = no
						liege = { is_tribal = no }
					}
				}
			}
		}

		# 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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				dynasty = ROOT

				NOR = {
					is_close_relative = ROOT
					character = ROOT
				}
			}
		}
		additive_modifier = {
			value = 20
			localisation_key = tooltip_feudal_elector_vote_relative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				is_close_relative = ROOT

				NOR = {
					is_child_of = ROOT
					character = ROOT
				}
			}
		}

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				prestige < -1000
				NOT = { character = ROOT }
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_prestige_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				prestige >= -1000
				prestige < -500
				NOT = { character = ROOT }
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_prestige_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				prestige >= -500
				prestige < -250
				NOT = { character = ROOT }
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_prestige_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				prestige >= -250
				prestige < 0
				NOT = { character = ROOT }
			}
		}
		additive_modifier = {
			value = 5
			localisation_key = tooltip_feudal_elector_vote_prestige_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				prestige >= 250
				prestige < 500
				NOT = { character = ROOT }
			}
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_feudal_elector_vote_prestige_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				prestige >= 500
				prestige < 1000
				NOT = { character = ROOT }
			}
		}
		additive_modifier = {
			value = 15
			localisation_key = tooltip_feudal_elector_vote_prestige_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				piety < -500
				NOT = { character = FROM }
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_piety_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				piety >= -500
				piety < -250
				NOT = { character = FROM }
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_piety_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				piety >= -250
				piety < -100
				NOT = { character = FROM }
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_piety_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				piety >= -100
				piety < 0
				NOT = { character = FROM }
			}
		}
		additive_modifier = {
			value = 5
			localisation_key = tooltip_feudal_elector_vote_piety_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				piety >= 100
				piety < 250
				NOT = { character = FROM }
			}
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_feudal_elector_vote_piety_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				piety >= 250
				piety < 500
				NOT = { character = FROM }
			}
		}
		additive_modifier = {
			value = 15
			localisation_key = tooltip_feudal_elector_vote_piety_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				piety >= 500
				NOT = { character = FROM }
			}
		}

		# Educational preferences
		additive_modifier = { # Elder prefers child with his same interests
			value = 10
			localisation_key = tooltip_feudal_elector_vote_martial_education

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			OR = {
				has_education_martial_trigger = yes
				has_lifestyle_martial_trigger = yes
			}

			FROM = {
				martial >= 10

				OR = {
					has_education_martial_trigger = yes
					has_lifestyle_martial_trigger = yes
				}
			}
		}
		additive_modifier = { # Elder prefers child with his same interests
			value = 15
			localisation_key = tooltip_feudal_elector_vote_diplomatic_education

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			OR = {
				has_education_diplomacy_trigger = yes
				has_lifestyle_diplomacy_trigger = yes
				has_education_stewardship_trigger = yes
				has_lifestyle_stewardship_trigger = yes
			}

			FROM = {
				trigger_if = {
					limit = { diplomacy = 10 }

					OR = {
						has_education_diplomacy_trigger = yes
						has_lifestyle_diplomacy_trigger = yes
					}
				}
				trigger_else = {
					stewardship = 10

					OR = {
						has_education_stewardship_trigger = yes
						has_lifestyle_stewardship_trigger = yes
					}
				}
			}
		}
		additive_modifier = { # Elder prefers child with his same interests
			value = 10
			localisation_key = tooltip_feudal_elector_vote_spiritual_education

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			OR = {
				has_education_learning_trigger = yes
				has_lifestyle_learning_trigger = yes
			}
			FROM = {
				learning = 10
				OR = {
					has_education_learning_trigger = yes
					has_lifestyle_learning_trigger = yes
				}
			}
		}
		additive_modifier = { # Eldership favors Stewardship
			value = -10
			localisation_key = tooltip_feudal_elector_vote_martial_score_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				NOT = { stewardship = 5 }
			}
		}
		additive_modifier = { # Eldership favors Stewardship
			value = 5
			localisation_key = tooltip_feudal_elector_vote_martial_score

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				stewardship = 10
				NOT = { stewardship = 15 }
			}
		}
		additive_modifier = { # Eldership favors Stewardship
			value = 10
			localisation_key = tooltip_feudal_elector_vote_martial_score

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				stewardship = 15
				NOT = { stewardship = 20 }
			}
		}
		additive_modifier = { # Eldership favors Stewardship
			value = 15
			localisation_key = tooltip_feudal_elector_vote_martial_score

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				stewardship = 20
			}
		}

		# Claims
		additive_modifier = {
			value = 30
			localisation_key = tooltip_feudal_elector_vote_strong_claimant

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				has_claim = FROMFROM
			}
		}
		additive_modifier = {
			value = 15
			localisation_key = tooltip_feudal_elector_vote_weak_claimant

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				has_weak_claim = FROMFROM
			}
		}

		# All the Traits
		# Child traits removed, the Elder will not think of children as good candidates to begin with
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_depressed

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = depressed
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_drunkard

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			NOT = {
				religion_group = muslim
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_drunkard_muslim

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			religion_group = muslim
		}
		additive_modifier = { # Would mean the end of Elections
			value = -50
			localisation_key = tooltip_feudal_elector_vote_immortal

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = immortal
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = -35
			localisation_key = tooltip_feudal_elector_vote_incapable

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = no
		}
		additive_modifier = {
			value = -50
			localisation_key = tooltip_feudal_elector_vote_incapable_warrior

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = yes
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_infirm

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_diplomatic_culture_trigger = no
		}
		additive_modifier = {
			value = -30
			localisation_key = tooltip_feudal_elector_vote_infirm_diplomat

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_diplomatic_culture_trigger = yes
		}
		additive_modifier = {
			value = -30
			localisation_key = tooltip_feudal_elector_vote_lunatic

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			NOR = {
				trait = zealous
				is_tribal = yes
				is_nomadic = yes
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_maimed

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = no
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_maimed_warrior

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = yes
		}
		additive_modifier = {
			value = -35
			localisation_key = tooltip_feudal_elector_vote_possessed

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			NOR = {
				trait = zealous
				is_tribal = yes
				is_nomadic = yes
			}
		}
		additive_modifier = {
			value = -60
			localisation_key = tooltip_feudal_elector_vote_possessed_vs_zealous

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			trait = zealous

			NOR = {
				is_tribal = yes
				is_nomadic = yes
			}
		}
		additive_modifier = {
			value = 5
			localisation_key = tooltip_feudal_elector_vote_physician

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_spiritual_culture_trigger = yes
		}
		additive_modifier = {
			value = 5
			localisation_key = tooltip_feudal_elector_vote_scarred

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = yes
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_feudal_elector_vote_scarred_mid

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = yes
		}
		additive_modifier = {
			value = 15
			localisation_key = tooltip_feudal_elector_vote_scarred_high

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = yes
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_stressed

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = stressed
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = { # Judge yourself on illness. You should probably not candidate yourself if you are dying.
			value = -15
			localisation_key = tooltip_feudal_elector_vote_wounded

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = wounded
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_aztec_disease

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = aztec_disease
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_camp_fever

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = camp_fever
			}
		}
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_cancer

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = cancer
			}
		}
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_consumption

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = consumption
			}
		}
		additive_modifier = {
			value = -35
			localisation_key = tooltip_feudal_elector_vote_dancing_plague

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = dancing_plague
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_dysentery

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = dysentery
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_flu

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = flu
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_food_poisoning

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = food_poisoning
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_gout

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = gout
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_great_pox

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = great_pox
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_slow_fever

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = slow_fever
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_ill

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = ill
			}
		}
		additive_modifier = {
			value = -50
			localisation_key = tooltip_feudal_elector_vote_leper

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = leper
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_measles

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = measles
			}
		}
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_pneumonic

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = pneumonic
			}
		}
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_rabies

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = rabies
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_scurvy

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = scurvy
			}
		}
		additive_modifier = {
			value = -45
			localisation_key = tooltip_feudal_elector_vote_sickly

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = sickly
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_smallpox

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = smallpox
			}
		}
		additive_modifier = {
			value = -35
			localisation_key = tooltip_feudal_elector_vote_bubonic_plague

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = bubonic_plague
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_disfigured

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = disfigured
			}

			this_is_warrior_culture_trigger = no
			NOT = {	culture_group = byzantine }
		}
		additive_modifier = {
			value = -50
			localisation_key = tooltip_feudal_elector_vote_disfigured_byzantine

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			culture_group = byzantine
			FROM = {
				trait = disfigured
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_disfigured_warrior

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = disfigured
			}

			this_is_warrior_culture_trigger = yes
			NOT = { culture_group = byzantine }
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_mangled

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = mangled
			}

			this_is_warrior_culture_trigger = no
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_mangled_warrior

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = mangled
			}

			this_is_warrior_culture_trigger = yes
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_one_eyed

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = one_eyed
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_one_handed

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = one_handed
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_one_legged

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = one_legged
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_severely_injured

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = severely_injured
			}

			this_is_warrior_culture_trigger = no
		}
		additive_modifier = {
			value = 20
			localisation_key = tooltip_feudal_elector_vote_genius_diplomat

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				this_is_diplomatic_culture_trigger = yes
				this_is_spiritual_culture_trigger = yes
			}
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_feudal_elector_vote_genius

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			NOR = {
				this_is_diplomatic_culture_trigger = yes
				this_is_spiritual_culture_trigger = yes
			}
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_feudal_elector_vote_quick_diplomat

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				this_is_diplomatic_culture_trigger = yes
				this_is_spiritual_culture_trigger = yes
			}
		}
		additive_modifier = {
			value = 5
			localisation_key = tooltip_feudal_elector_vote_quick

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			NOR = {
				this_is_diplomatic_culture_trigger = yes
				this_is_spiritual_culture_trigger = yes
			}
		}
		additive_modifier = {
			value = 5
			localisation_key = tooltip_feudal_elector_vote_strong

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = no
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_feudal_elector_vote_strong_warrior

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = yes
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_clubfooted

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = clubfooted
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_dwarf

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = harelip
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_hunchback

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = yes
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_imbecile

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_diplomatic_culture_trigger = no
		}
		additive_modifier = {
			value = -20
			localisation_key = tooltip_feudal_elector_vote_imbecile_diplomat

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_diplomatic_culture_trigger = yes
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_inbred

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = inbred
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_lisp

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = lisp
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_slow

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_diplomatic_culture_trigger = no
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_slow_diplomat

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_diplomatic_culture_trigger = yes
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_stutter

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = stutter
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_weak

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = no
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_weak_warrior

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = yes
		}
		additive_modifier = {
			value = 5
			localisation_key = tooltip_feudal_elector_vote_brawny

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = no
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_feudal_elector_vote_brawny_warrior

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = yes
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_dull_diplomat

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				this_is_diplomatic_culture_trigger = yes
				this_is_spiritual_culture_trigger = yes
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_dull

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			NOR = {
				this_is_diplomatic_culture_trigger = yes
				this_is_spiritual_culture_trigger = yes
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_frail

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = no
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_frail_warrior

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = yes
		}

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			religion_group = christian
			NOT = { trait = lustful }
		}
		additive_modifier = { # Shunned for being Chaste
			value = -15
			localisation_key = tooltip_feudal_elector_vote_chaste_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			NOT = { trait = chaste }

			OR = {
				trait = lustful

				AND = {
					religion_group = pagan_group
					religion_openly_bon_or_reformed_trigger = no
					religion_openly_hellenic_or_reformed_trigger = no
				}
			}
		}
		additive_modifier = { # Praised for being Temperate
			value = 15
			localisation_key = tooltip_feudal_elector_vote_temperate_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			NOT = { trait = gluttonous }

			OR = {
				religion_group = christian
				religion_group = muslim
				religion_group = jewish_group
				religion_group = indian_group
				religion_openly_bon_or_reformed_trigger = yes
				religion_openly_hellenic_or_reformed_trigger = yes
			}
		}
		additive_modifier = { # Shunned for being Temperate
			value = -15
			localisation_key = tooltip_feudal_elector_vote_temperate_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			NOT = { trait = temperate }

			OR = {
				trait = gluttonous

				AND = {
					religion_group = pagan_group
					religion_openly_bon_or_reformed_trigger = no
					religion_openly_hellenic_or_reformed_trigger = no
				}
			}
		}
		additive_modifier = { # Praised for being Charitable
			value = 15
			localisation_key = tooltip_feudal_elector_vote_charitable_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				religion_group = christian
				religion_group = muslim
			}

			NOT = { trait = greedy }
		}
		additive_modifier = { # Shunned for being Charitable
			value = -15
			localisation_key = tooltip_feudal_elector_vote_charitable_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			NOT = { trait = slothful }
		}
		additive_modifier = { # Shunned for being Diligent
			value = -15
			localisation_key = tooltip_feudal_elector_vote_diligent_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			NOR = {
				trait = wroth
				this_is_warrior_culture_trigger = yes
			}
		}
		additive_modifier = { # Shunned for being Patient
			value = -15
			localisation_key = tooltip_feudal_elector_vote_patient_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				trait = wroth
				this_is_warrior_culture_trigger = yes
			}
		}
		additive_modifier = { # Praised for being Kind
			value = 25
			localisation_key = tooltip_feudal_elector_vote_kind_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			NOR = {
				trait = proud
				trait = envious
			}
		}
		additive_modifier = { # Shunned for being Humble
			value = -15
			localisation_key = tooltip_feudal_elector_vote_humble_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				trait = proud
				trait = envious

				AND = {
					religion_group = pagan_group
					religion_openly_bon_or_reformed_trigger = no
					religion_openly_hellenic_or_reformed_trigger = no
				}
			}
		}
		additive_modifier = { # Praised for being Lustful
			value = 15
			localisation_key = tooltip_feudal_elector_vote_lustful_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				trait = lustful
				trait = hedonist

				AND = {
					religion_group = pagan_group
					religion_openly_bon_or_reformed_trigger = no
					religion_openly_hellenic_or_reformed_trigger = no
				}
			}
		}
		additive_modifier = { # Shunned for being Lustful - Male
			value = -15
			localisation_key = tooltip_feudal_elector_vote_lustful_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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
				}
			}
		}
		additive_modifier = { # Praised for being Gluttonous
			value = 15
			localisation_key = tooltip_feudal_elector_vote_gluttonous_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				trait = gluttonous
				trait = hedonist

				AND = {
					religion_group = pagan_group
					religion_openly_bon_or_reformed_trigger = no
					religion_openly_hellenic_or_reformed_trigger = no
				}
			}
		}
		additive_modifier = { # Shunned for being Gluttonous
			value = -15
			localisation_key = tooltip_feudal_elector_vote_gluttonous_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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
				}
			}
		}
		additive_modifier = { # Praised for being Greedy
			value = 15
			localisation_key = tooltip_feudal_elector_vote_greedy_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				trait = greedy

				AND = {
					religion_group = pagan_group
					religion_openly_bon_or_reformed_trigger = no
				}
			}
		}
		additive_modifier = { # Shunned for being Greedy
			value = -15
			localisation_key = tooltip_feudal_elector_vote_greedy_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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 }
			}
		}
		additive_modifier = { # Praised for being Slothful
			value = 15
			localisation_key = tooltip_feudal_elector_vote_slothful_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				trait = arbitrary # No need for consistency
				NOT = { trait = slothful }
			}
		}
		additive_modifier = { # Praised for being Wroth
			value = 15
			localisation_key = tooltip_feudal_elector_vote_wroth_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				trait = arbitrary # No need for consistency
				NOT = { is_evil_trigger = yes }
			}
		}
		additive_modifier = { # Praised for being Proud
			value = 15
			localisation_key = tooltip_feudal_elector_vote_proud_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			religion_group = pagan_group
			religion_openly_bon_or_reformed_trigger = no
			NOT = { trait = humble }
		}
		additive_modifier = { # Shunned for being Proud
			value = -15
			localisation_key = tooltip_feudal_elector_vote_proud_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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 }
				}
			}
		}
		additive_modifier = { # Praised for being Ambitious
			value = 5
			localisation_key = tooltip_feudal_elector_vote_ambitious_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			religion_group = pagan_group
			religion_openly_bon_or_reformed_trigger = no
			NOT = { trait = content }
		}
		additive_modifier = { # Shunned for being Ambitious
			value = -5
			localisation_key = tooltip_feudal_elector_vote_ambitious_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			OR = {
				trait = arbitrary # No need for consistency
				NOT = { trait = ambitious }
			}
		}
		additive_modifier = { # Shunned for being Arbitrary
			value = -10
			localisation_key = tooltip_feudal_elector_vote_arbitrary_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				trait = just
				trait = arbitrary # Arbitraception
			}
		}
		additive_modifier = { # Praised for being Brave
			value = 5
			localisation_key = tooltip_feudal_elector_vote_brave_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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
			}
		}
		additive_modifier = { # Praised for being Brave
			value = 10
			localisation_key = tooltip_feudal_elector_vote_brave_positive_warrior

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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
			}
		}
		additive_modifier = { # Shunned for being Brave
			value = -5
			localisation_key = tooltip_feudal_elector_vote_brave_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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
			}
		}
		additive_modifier = { # Praised for being Content
			value = 10
			localisation_key = tooltip_feudal_elector_vote_content_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				religion = buddhist
				religion = jain
				religion = bon_pagan
				pacifist = yes
			}
		}
		additive_modifier = { # Shunned for being Content
			value = -5
			localisation_key = tooltip_feudal_elector_vote_content_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			religion_group = pagan_group
			religion_openly_bon_or_reformed_trigger = no
			NOT = { trait = content }
		}
		additive_modifier = { # Shunned for being Craven
			value = -10
			localisation_key = tooltip_feudal_elector_vote_craven_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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 }
		}
		additive_modifier = { # Shunned for being Cynical
			value = -20
			localisation_key = tooltip_feudal_elector_vote_cynical_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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
			}
		}
		additive_modifier = { # Shunned for being Cynical
			value = -50
			localisation_key = tooltip_feudal_elector_vote_cynical_negative_dogmatic

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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 }
			}
		}
		additive_modifier = { # Shunned for being Deceitful
			value = -10
			localisation_key = tooltip_feudal_elector_vote_deceitful_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				trait = arbitrary # No need for consistency
				trait = honest
			}
		}
		additive_modifier = { # Praised for being Erudite
			value = 10
			localisation_key = tooltip_feudal_elector_vote_erudite_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				this_is_diplomatic_culture_trigger = yes
				this_is_spiritual_culture_trigger = yes
			}
		}
		additive_modifier = { # Praised for being Just
			value = 15
			localisation_key = tooltip_feudal_elector_vote_just_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			NOR = {
				trait = deceitful
				trait = arbitrary
			}
		}
		additive_modifier = { # Shunned for being Paranoid
			value = -5
			localisation_key = tooltip_feudal_elector_vote_paranoid_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			NOR = {
				trait = deceitful
				trait = arbitrary
				trait = paranoid
			}
		}
		additive_modifier = { # Shunned for being Paranoid by Paranoid
			value = -15
			localisation_key = tooltip_feudal_elector_vote_paranoid_negative_paranoid

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			trait = paranoid

			NOR = {
				trait = deceitful
				trait = arbitrary
			}
		}
		additive_modifier = { # Shunned for being Shy
			value = -10
			localisation_key = tooltip_feudal_elector_vote_shy_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				this_is_diplomatic_culture_trigger = yes
				this_is_warrior_culture_trigger = yes
			}
		}
		additive_modifier = { # Praised for being Stubborn
			value = 5
			localisation_key = tooltip_feudal_elector_vote_stubborn_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				trait = deceitful
				trait = master_schemer
				trait = ambitious
			}
		}
		additive_modifier = { # Praised for being Zealous
			value = 10
			localisation_key = tooltip_feudal_elector_vote_zealous_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			religion = FROM

			NOR = {
				has_religion_feature = religion_cosmopolitan
				pacifist = yes
				trait = cynical
			}
		}
		additive_modifier = { # Shunned for being Zealous
			value = -20
			localisation_key = tooltip_feudal_elector_vote_zealous_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			religion = FROM

			OR = {
				has_religion_feature = religion_cosmopolitan
				pacifist = yes
				trait = cynical
			}
		}
		additive_modifier = { # Praised for being Pilgrim
			value = 10
			localisation_key = tooltip_feudal_elector_vote_pilgrim_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			religion = FROM
			trait = zealous
		}
		additive_modifier = { # Praised for being Seaking/Sea_queen - Boosted for Eldership
			value = 25
			localisation_key = tooltip_feudal_elector_vote_sea_king_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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 Eldership
			value = -5
			localisation_key = tooltip_feudal_elector_vote_sea_king_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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 Shieldmaiden
			value = 10
			localisation_key = tooltip_feudal_elector_vote_shieldmaiden_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = yes
			NOT = { has_religion_feature = religion_patriarchal }
		}
		additive_modifier = { # Shunned for being Shieldmaiden
			value = -10
			localisation_key = tooltip_feudal_elector_vote_shieldmaiden_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = no
			NOT = { has_religion_feature = religion_patriarchal }
		}
		additive_modifier = { # Shunned for being Shieldmaiden
			value = -40
			localisation_key = tooltip_feudal_elector_vote_shieldmaiden_negative_patriarchal

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = no
			has_religion_feature = religion_patriarchal
		}
		additive_modifier = { # Praised for being a saoshyant_descendant
			value = 10
			localisation_key = tooltip_feudal_elector_vote_saoshyant_descendant_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			religion_group = zoroastrian_group
		}
		additive_modifier = { # Praised for being Adventurer - Boosted for Elective Gavelkind
			value = 20
			localisation_key = tooltip_feudal_elector_vote_adventurer_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = no
		}
		additive_modifier = { # Praised for being Berserker - Boosted for Elective Gavelkind
			value = 10
			localisation_key = tooltip_feudal_elector_vote_berserker_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			this_is_warrior_culture_trigger = no
			NOT = { culture_group = byzantine }
		}
		additive_modifier = { # Shunned for being blind
			value = -20
			localisation_key = tooltip_feudal_elector_vote_blinded_negative_warrior

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				culture_group = byzantine
				religion_group = muslim
			}
		}
		additive_modifier = { # Shunned for being excommunicated
			value = -25
			localisation_key = tooltip_feudal_elector_vote_excommunicated_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			NOR = {
				trait = zealous
				trait = cynical
			}

			OR = {
				NOT = { 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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			trait = zealous

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

		# Kinslayer - From stranger's perspective - Elders are for family values, all Kinslayer maluses are boosted
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_kinslayer_1_stranger

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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
			}
		}
		additive_modifier = {
			value = -30
			localisation_key = tooltip_feudal_elector_vote_kinslayer_2_stranger

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = familial_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
			}
		}
		additive_modifier = {
			value = -40
			localisation_key = tooltip_feudal_elector_vote_kinslayer_3_stranger

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = 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
			}
		}

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = dynastic_kinslayer
				dynasty = ROOT

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

			OR = {
				NOR = {
					trait = dynastic_kinslayer
					trait = familial_kinslayer
					trait = kinslayer
				}
				trait = arbitrary # No need for consistency
			}
		}
		additive_modifier = {
			value = -40
			localisation_key = tooltip_feudal_elector_vote_kinslayer_2_dynast

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = familial_kinslayer
				dynasty = ROOT

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

			OR = {
				NOR = {
					trait = dynastic_kinslayer
					trait = familial_kinslayer
					trait = kinslayer
				}
				trait = arbitrary # No need for consistency
			}
		}
		additive_modifier = {
			value = -50
			localisation_key = tooltip_feudal_elector_vote_kinslayer_3_dynast

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = kinslayer
				dynasty = ROOT

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

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				NOR = {
					trait = dynastic_kinslayer
					trait = familial_kinslayer
					trait = kinslayer
				}
				trait = arbitrary # No need for consistency
			}
		}
		additive_modifier = {
			value = -50
			localisation_key = tooltip_feudal_elector_vote_kinslayer_2_dynast

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				NOR = {
					trait = dynastic_kinslayer
					trait = familial_kinslayer
					trait = kinslayer
				}
				trait = arbitrary # No need for consistency
			}
		}
		additive_modifier = {
			value = -60
			localisation_key = tooltip_feudal_elector_vote_kinslayer_3_dynast

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				NOR = {
					trait = dynastic_kinslayer
					trait = familial_kinslayer
					trait = kinslayer
				}
				trait = arbitrary # No need for consistency
			}
		}
		additive_modifier = { # Shunned for loving the heathens
			value = -25
			localisation_key = tooltip_feudal_elector_vote_sympathy_heathens

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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 = { religion = bon_pagan_reformed }
					NOT = { has_dlc = "Holy Fury" }
				}
			}

			OR = {
				trait = zealous
				has_religion_feature = religion_dogmatic
			}

			OR = {
				trait = zealous
				trait = arbitrary # No need for consistency
			}
		}
		additive_modifier = { # Praised for being Giant
			value = 10
			localisation_key = tooltip_feudal_elector_vote_giant_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			OR = {
				religion_group = christian
				religion_group = muslim
			}
		}
		additive_modifier = { # Shunned for being out of shape - Boosted for Eldership
			value = -15
			localisation_key = tooltip_feudal_elector_vote_shape_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				OR = {
					trait = fat
					trait = malnourished
				}
				NOT = { character = ROOT } # Do not judge yourself
			}

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = baptized_by_pope
				religion = ROOT

				OR = {
					religion = catholic
					religion = fraticelli
				}

				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = { # Praised for being baptized by Patriarch
			value = 10
			localisation_key = tooltip_feudal_elector_vote_baptized_by_patriarch

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			FROM = {
				trait = baptized_by_patriarch
				religion = orthodox
				religion = ROOT
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = { # Shunned for being of opposite pagan branch.
			value = -15
			localisation_key = tooltip_feudal_elector_vote_pagan_branch_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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
					}
				}
			}
		}

		##########################   Ruler's traits   ##########################

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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
			}

			FROMFROM = {
				holder_scope = {
					trait = lunatic
				}
			}
		}

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			trait = zealous

			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
			}

			FROMFROM = {
				holder_scope = {
					trait = possessed
				}
			}
		}

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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
			}

			FROMFROM = {
				holder_scope = {
					trait = just
				}
			}
		}

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			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
			}

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

		# Raw Opinion bonus towards Candidate - Boosted for Eldership
		additive_modifier = {
			value = -50
			localisation_key = tooltip_feudal_elector_vote_opinion_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

			is_rival = FROM
		}
		additive_modifier = {
			value = -30
			localisation_key = tooltip_feudal_elector_vote_opinion_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			opinion = {
				who = FROM
				value < -75
			}
		}
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_opinion_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			opinion = {
				who = FROM
				value >= -75
			}
			opinion = {
				who = FROM
				value < -50
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_opinion_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			opinion = {
				who = FROM
				value >= -50
			}
			opinion = {
				who = FROM
				value < -25
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_opinion_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			opinion = {
				who = FROM
				value >= -25
			}
			opinion = {
				who = FROM
				value < 0
			}
		}
		additive_modifier = {
			value = 30
			localisation_key = tooltip_feudal_elector_vote_opinion_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			opinion = {
				who = FROM
				value >= 0
			}
			opinion = {
				who = FROM
				value < 25
			}
		}
		additive_modifier = {
			value = 50
			localisation_key = tooltip_feudal_elector_vote_opinion_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			opinion = {
				who = FROM
				value >= 25
			}
			opinion = {
				who = FROM
				value < 50
			}
		}
		additive_modifier = {
			value = 70
			localisation_key = tooltip_feudal_elector_vote_opinion_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			opinion = {
				who = FROM
				value >= 50
			}
			opinion = {
				who = FROM
				value < 75
			}
		}
		additive_modifier = {
			value = 120
			localisation_key = tooltip_feudal_elector_vote_opinion_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			FROMFROM = {
				holder_scope = {
					reverse_opinion = {
						who = ROOT
						value < -75
					}
				}
			}
		}
		additive_modifier = { # Vassal hates ruler, therefore votes against the ruler's candidate (FROMFROMFROM)
			value = -25
			localisation_key = tooltip_feudal_elector_anti_vote_ruler_opinion_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			FROMFROM = {
				holder_scope = {
					reverse_opinion = {
						who = ROOT
						value >= -75
					}
					reverse_opinion = {
						who = ROOT
						value < -50
					}
				}
			}
		}
		additive_modifier = { # Vassal hates ruler, therefore votes against the ruler's candidate (FROMFROMFROM)
			value = -15
			localisation_key = tooltip_feudal_elector_anti_vote_ruler_opinion_negative

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			FROMFROM = {
				holder_scope = {
					reverse_opinion = {
						who = ROOT
						value >= -50
					}
					reverse_opinion = {
						who = ROOT
						value < -25
					}
				}
			}
		}
		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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			FROMFROM = {
				holder_scope = {
					reverse_opinion = {
						who = ROOT
						value >= -25
					}
					reverse_opinion = {
						who = ROOT
						value < 0
					}
				}
			}
		}
		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

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			FROMFROM = {
				holder_scope = {
					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 = 35
			localisation_key = tooltip_feudal_elector_pro_vote_ruler_opinion_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			FROMFROM = {
				holder_scope = {
					reverse_opinion = {
						who = ROOT
						value >= 25
					}
					reverse_opinion = {
						who = ROOT
						value < 50
					}
				}
			}
		}
		additive_modifier = { # Vassal loves ruler, therefore votes for the ruler's candidate (FROMFROMFROM)
			value = 45
			localisation_key = tooltip_feudal_elector_pro_vote_ruler_opinion_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

			FROMFROM = {
				holder_scope = {
					reverse_opinion = {
						who = ROOT
						value >= 50
					}
					reverse_opinion = {
						who = ROOT
						value < 75
					}
				}
			}
		}
		additive_modifier = { # Vassal loves ruler, therefore votes for the ruler's candidate (FROMFROMFROM)
			value = 65
			localisation_key = tooltip_feudal_elector_pro_vote_ruler_opinion_positive

			has_elector_stance = {
				stance = elder_pleased
				title = FROMFROM
			}

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

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

		### Elder is Displeased ###
		additive_modifier = { # If Displeased, the Elder will not be likely to pick the ruler's candidate on purpose
			value = -1000
			localisation_key = tooltip_elder_elector_vote_displeased_ruler_candidate

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

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

		# Displeased Elders will consider poor candidates to spite the ruler
		additive_modifier = {
			value = 15
			localisation_key = tooltip_elder_elector_vote_displeased_incapable

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				is_incapable = yes
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_elder_elector_vote_displeased_elder

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				has_character_modifier = elder_long_life_modifier
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = 30
			localisation_key = tooltip_elder_elector_vote_displeased_friend

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				OR = {
					is_lover = ROOT
					is_friend = ROOT
				}
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_elder_elector_vote_displeased_bad_face

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				OR = {
					trait = ugly
					trait = disfigured
					trait = harelip
					trait = lisp
				}
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = 15
			localisation_key = tooltip_elder_elector_vote_displeased_deformed

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				OR = {
					trait = dwarf
					trait = mangled
					trait = hunchback
					trait = inbred
				}
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = 20
			localisation_key = tooltip_elder_elector_vote_displeased_idiot

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				OR = {
					trait = imbecile
					trait = slow
					trait = infirm
					trait = dull
					trait = inbred
				}
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_elder_elector_vote_displeased_cautious

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				OR = {
					trait = craven
					trait = shy
					trait = paranoid
					trait = content
				}
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = 20
			localisation_key = tooltip_elder_elector_vote_displeased_endearing

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				OR = {
					trait = drunkard
					trait = arbitrary
					trait = slothful
					trait = gluttonous
				}
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_elder_elector_vote_displeased_celibate

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				trait = celibate
				num_of_children = 1
				NOT = { character = ROOT } # Do not judge yourself
			}
		}

		additive_modifier = {
			value = 15
			localisation_key = tooltip_elder_elector_vote_displeased_low_martial

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				is_adult = yes
				martial < 6
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = 15
			localisation_key = tooltip_elder_elector_vote_displeased_low_diplomacy

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				is_adult = yes
				diplomacy < 6
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = 15
			localisation_key = tooltip_elder_elector_vote_displeased_low_stewardship

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				is_adult = yes
				stewardship < 6
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = 15
			localisation_key = tooltip_elder_elector_vote_displeased_low_intrigue

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				is_adult = yes
				intrigue < 6
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = 15
			localisation_key = tooltip_elder_elector_vote_displeased_low_learning

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				is_adult = yes
				learning < 6
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = -20
			localisation_key = tooltip_elder_elector_vote_displeased_reckless

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				OR = {
					trait = brave
					trait = strong
					trait = brawny
					trait = ambitious
					trait = zealous
				}
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = -20
			localisation_key = tooltip_elder_elector_vote_displeased_devious

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				OR = {
					trait = deceitful
					trait = genius
					trait = quick
					trait = shrewd
				}
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_elder_elector_vote_displeased_high_martial

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				martial >= 12
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_elder_elector_vote_displeased_high_diplomacy

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				diplomacy > 12
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_elder_elector_vote_displeased_high_stewardship

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				stewardship >= 12
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_elder_elector_vote_displeased_high_intrigue

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

			FROM = {
				intrigue >= 12
				NOT = { character = ROOT } # Do not judge yourself
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_elder_elector_vote_displeased_high_learning

			has_elector_stance = {
				stance = elder_displeased
				title = FROMFROM
			}

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