# The entry should be named in the same way that the elective succession law is named to define it's voter's logic.
# Root scope - Voter, the character voting in the election
# From scope - Candidate, Character considered for the title
# FromFrom scope - The title the nomination is for
# FromFromFrom scope - The title owner's candidate
# The voter will vote for the top score candidate calculated from this script.

sisterhood_elective = {
	elector_vote_strength = {
			days = 5 #one elector, five votes
		
		additive_modifier = { #The current Grandsister has fifty extra votes
			value = 50
			localisation_key = tooltip_grandmasters_influence
			FROMFROM = { 
				holder_scope = { character = ROOT }
			}
		}
		additive_modifier = { #Grandsister gets more votes if she knows what she's doing
			value = 10
			localisation_key = tooltip_grandsister_stewardship_education_good
			FROMFROM = { 
				holder_scope = { character = ROOT }
			}
			OR = {
				trait = fortune_builder
				trait = midas_touched
				stewardship = 20
			}
		}
		additive_modifier = { #Grandsister gets more votes if she knows what she's doing
			value = 10
			localisation_key = tooltip_grandsister_diplomacy_education_good
			FROMFROM = { 
				holder_scope = { character = ROOT }
			}
			OR = {
				trait = charismatic_negotiator
				trait = grey_eminence
				diplomacy = 20
			}
		}
		additive_modifier = { #Grandsister gets more votes if she knows what she's doing
			value = 10
			localisation_key = tooltip_grandmaster_learning_education_good
			FROMFROM = { 
				holder_scope = { character = ROOT }
			}
			OR = {
				trait = scholarly_theologian
				trait = mastermind_theologian
				learning = 20
			}
		}
		additive_modifier = { #Grandsister penalised for incompetence - if she at least has a relevant education
			value = -10
			localisation_key = tooltip_grandsister_stewardship_education_bad
			FROMFROM = { 
				holder_scope = { character = ROOT }
			}
			OR = {
				trait = indulgent_wastrel
				trait = thrifty_clerk
			}
			NOT = {
				stewardship = 10
			}
		}
		additive_modifier = { #Grandsister penalised for incompetence - if she at least has a relevant education
			value = -10
			localisation_key = tooltip_grandsister_diplomacy_education_bad
			FROMFROM = { 
				holder_scope = { character = ROOT }
			}
			OR = {
				trait = naive_appeaser
				trait = underhanded_rogue
			}
			NOT = {
				diplomacy = 10
			}
		}
		additive_modifier = { #Grandsister penalised for incompetence - if she at least has a relevant education
			value = -10
			localisation_key = tooltip_grandmaster_learning_education_bad
			FROMFROM = { 
				holder_scope = { character = ROOT }
			}
			OR = {
				trait = detached_priest
				trait = martial_cleric
			}
			NOT = {
				learning = 10
			}
		}
		additive_modifier = { #Grandsister seriously penalised for not having any relevant education, unless she's just that good
			value = -20
			localisation_key = tooltip_grandmaster_wrong_education
			FROMFROM = { 
				holder_scope = { character = ROOT }
			}
			NOR = {
				has_education_stewardship_trigger = yes
				has_education_diplomacy_trigger = yes
				has_education_learning_trigger = yes
				stewardship = 20
				diplomacy = 20
				learning = 20
			}
		}
		additive_modifier = { #Grandsister gets more votes if she's still in her prime
			value = 30
			localisation_key = tooltip_grandsister_prime
			FROMFROM = { 
				holder_scope = { character = ROOT }
			}
			age = 16
			age < 26
		}
		additive_modifier = { #Grandsister gets more votes if she's relatively young
			value = 15
			localisation_key = tooltip_grandsister_young
			FROMFROM = { 
				holder_scope = { character = ROOT }
			}
			age = 26
			age < 36
		}
		additive_modifier = { #Grandsister still gets bonus for age
			value = 10
			localisation_key = tooltip_grandmaster_venerable
			FROMFROM = { 
				holder_scope = { character = ROOT }
			}
			age = 50
		}
		additive_modifier = { #Zeal admired in Grandmaster
			value = 10 
			localisation_key = tooltip_grandmaster_zeal
			FROMFROM = { 
				holder_scope = { character = ROOT }
			}			
			trait = zealous
		}
		additive_modifier = { #Unbelief in a Grandmaster is scandalous
			value = -20 
			localisation_key = tooltip_grandmaster_cynical
			FROMFROM = { 
				holder_scope = { character = ROOT }
			}			
			trait = cynical
		}
		
		#For electors only
		additive_modifier = { #Gets more votes for being 16-25
			value = 15
			localisation_key = tooltip_sister_age_1
			vassal_of = FROMFROM 
			NOT = { 
				FROMFROM = { 
					holder_scope = { character = ROOT }
				}
			}
			age = 16
			age < 26
		}
		additive_modifier = { #Gets more votes for being 26-35
			value = 10
			localisation_key = tooltip_sister_age_2
			vassal_of = FROMFROM 
			NOT = { 
				FROMFROM = { 
					holder_scope = { character = ROOT }
				}
			}
			age = 26
			age < 36
		}
		additive_modifier = { #Still gets more votes for being 50+
			value = 5
			localisation_key = tooltip_age_3
			vassal_of = FROMFROM 
			NOT = { 
				FROMFROM = { 
					holder_scope = { character = ROOT }
				}
			}
			age = 50
		}
		additive_modifier = { #Elector gets more votes if she knows what she's doing
			value = 5
			localisation_key = tooltip_me_stewardship_education_good
			vassal_of = FROMFROM 
			NOT = { 
				FROMFROM = { 
					holder_scope = { character = ROOT }
				}
			}
			OR = {
				trait = fortune_builder
				trait = midas_touched
				stewardship = 20
			}
		}
		additive_modifier = { #Elector gets more votes if she knows what she's doing
			value = 5
			localisation_key = tooltip_me_diplomacy_education_good
			vassal_of = FROMFROM 
			NOT = { 
				FROMFROM = { 
					holder_scope = { character = ROOT }
				}
			}
			OR = {
				trait = charismatic_negotiator
				trait = grey_eminence
				diplomacy = 20
			}
		}
		additive_modifier = { #Elector gets more votes if she knows what he's doing
			value = 5
			localisation_key = tooltip_me_learning_education_good
			vassal_of = FROMFROM 
			NOT = { 
				FROMFROM = { 
					holder_scope = { character = ROOT }
				}
			}
			OR = {
				trait = scholarly_theologian
				trait = mastermind_theologian
				learning = 20
			}
		}
		additive_modifier = { #penalised for incompetence - if she at least has a relevant education
			value = -5
			localisation_key = tooltip_me_stewardship_education_bad
			vassal_of = FROMFROM 
			NOT = { 
				FROMFROM = { 
					holder_scope = { character = ROOT }
				}
			}

			OR = {
				trait = indulgent_wastrel
				trait = thrifty_clerk
			}
			NOT = {
				stewardship = 10
			}
		}
		additive_modifier = { #penalised for incompetence - if she at least has a relevant education
			value = -5
			localisation_key = tooltip_me_diplomacy_education_bad
			vassal_of = FROMFROM 
			NOT = { 
				FROMFROM = { 
					holder_scope = { character = ROOT }
				}
			}

			OR = {
				trait = naive_appeaser
				trait = underhanded_rogue
			}
			NOT = {
				diplomacy = 10
			}
		}
		additive_modifier = { #penalised for incompetence - if she at least has a relevant education
			value = -5
			localisation_key = tooltip_me_learning_education_bad
			vassal_of = FROMFROM 
			NOT = { 
				FROMFROM = { 
					holder_scope = { character = ROOT }
				}
			}
			OR = {
				trait = detached_priest
				trait = martial_cleric
			}
			NOT = {
				learning = 10
			}
		}
		additive_modifier = { #seriously penalised for not having any relevant education, unless she's just that good
			value = -10
			localisation_key = tooltip_me_wrong_education
			vassal_of = FROMFROM 
			NOT = { 
				FROMFROM = { 
					holder_scope = { character = ROOT }
				}
			}
			NOR = {
				has_education_stewardship_trigger = yes
				has_education_diplomacy_trigger = yes
				has_education_learning_trigger = yes
				stewardship = 20
				diplomacy = 20
				learning = 20
			}
		}

		#these 2 were together with the other traits for both vassals and grandmaster, should only apply to vassals but are missing "vassal_of = FROMFROM" for some reason
		additive_modifier = { #Zeal rewarded
			value = 5 
			localisation_key = tooltip_me_zeal
			NOT = { 
				FROMFROM = { 
					holder_scope = { character = ROOT }
				}
			}			
			trait = zealous
		}
		additive_modifier = { #Unbelief unwelcome
			value = -10 
			localisation_key = tooltip_me_cynical
			NOT = { 
				FROMFROM = { 
					holder_scope = { character = ROOT }
				}
			}			
			trait = cynical
		}

		##MODIFIERS THAT APPLY TO BOTH GRANDMASTER AND ELECTORS EQUALLY

		#Vices/Virtues: good/bad traits for sisters
		#1. Lustful / Chaste
		#2. Neutral
		#3. Charitable / Greedy
		#4. Diligent / Slothful
		#5. Neutral
		#6. Kind / Envious
		#7. Neutral
		
		additive_modifier = { #virtuous rulers are listened to
			value = 10 #Especially fit
			localisation_key = tooltip_me_lustful
			trait = lustful
		}	
		additive_modifier = { #virtuous rulers are listened to
			value = 5
			localisation_key = tooltip_me_charitable
			trait = charitable
		}
		additive_modifier = { #virtuous rulers are listened to
			value = 5
			localisation_key = tooltip_me_diligent
			trait = diligent
		}
		additive_modifier = { #virtuous rulers are listened to
			value = 5
			localisation_key = tooltip_me_kind
			trait = kind
		}
		additive_modifier = { #vicious rulers generally not listened to as much
			value = -15 #Especially unfit
			localisation_key = tooltip_me_chaste
			trait = chaste
		}
		additive_modifier = { #vicious rulers generally not listened to as much
			value = -5 
			localisation_key = tooltip_me_greedy
			trait = greedy
		}
		additive_modifier = { #vicious rulers generally not listened to as much
			value = -10 #Especially unfit 
			localisation_key = tooltip_me_slothful
			trait = slothful
		}
		additive_modifier = { #vicious rulers generally not listened to as much
			value = -5 
			localisation_key = tooltip_me_envious
			trait = envious
		}

		additive_modifier = { #Owning baronies but not counties gives extra power
			value = 5 
			localisation_key = tooltip_me_baron
			is_landed = yes
			primary_title = { real_tier = BARON }
		}
		additive_modifier = { #Counts have extra power
			value = 10 
			localisation_key = tooltip_me_count
			is_landed = yes
			primary_title = { real_tier = COUNT }
		}
		additive_modifier = { #Dukes have extra power
			value = 15 
			localisation_key = tooltip_me_duke
			is_landed = yes
			primary_title = { real_tier = DUKE }
		}
		additive_modifier = { #Kings have extra power
			value = 20 
			localisation_key = tooltip_me_king
			is_landed = yes
			primary_title = { real_tier = KING }
		}
		additive_modifier = { #Being a mystic earns influence among sisters
			value = 10 
			localisation_key = tooltip_me_mystic
			trait = mystic
		}
		additive_modifier = { #Being a crusader is respected
			value = 10 
			localisation_key = tooltip_me_crusader
			FROMFROM = { 
				holder_scope = { religion = ROOT }#if you're the same religion as the ruler
			}			
			has_crusade_trait_trigger = yes
		}
		additive_modifier = { #Being a poet earns some influence among sisters
			value = 5 
			localisation_key = tooltip_me_poet
			trait = poet
		}
		additive_modifier = { #Being a commander
			value = 5
			localisation_key = tooltip_me_commander
			has_minor_title = title_commander
		}
		additive_modifier = { #Being homosexual gives a slight penalty in most cases due to this basically being a fertility cult
			value = -5
			NOR = { #some people just don't care by design
				religion = hellenic_pagan_reformed
				trait = cynical
			}
			localisation_key = tooltip_me_homosexual
			trait = homosexual
		}
		additive_modifier = { #Attraction bonus for voters
			value = 10
			localisation_key = tooltip_me_attractive
			is_attractive_trigger = yes
		}
		additive_modifier = { #Ugliness "bonus" for voters
			value = -10
			localisation_key = tooltip_me_ugly
			is_unattractive_trigger = yes
		}
		additive_modifier = {
			value = -50
			localisation_key = tooltip_me_celibate
			trait = celibate
		}
		additive_modifier = {
			value = 20
			localisation_key = tooltip_me_hedonist
			OR = {
				trait = hedonist
				trait = seductress
			}
		}	
		additive_modifier = {
			value = 10
			localisation_key = tooltip_me_smart
			is_smart_trigger = yes
		}
		additive_modifier = { #is a very bad trait and should be treated as such
			value = -20
			localisation_key = tooltip_me_dumb
			is_dumb_trigger = yes
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_me_strong
			is_strong_trigger = yes
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_me_weak
			is_weak_trigger = yes
		}
		additive_modifier = { #very, very bad for this government type. Yes, even for voters
			value = -75
			localisation_key = tooltip_me_inbred
			trait = inbred
		}
	}

	elector_selection = {
		days = -5 
		##max_amount = 10 #Grandmaster and the Nine Worthies
		additive_modifier = { #Ruler always an elector
			value = 30
			FROMFROM = { 
				holder_scope = { character = ROOT }
			}
		}
		additive_modifier = { #Then the Chancellor, Steward and Court Chaplain.
			value = 15
			vassal_of = FROMFROM
			OR = {
				has_job_title = job_chancellor
				has_job_title = job_treasurer
				has_job_title = job_spiritual
			}
		}
		additive_modifier = { #Then Kings
			value = 20
			vassal_of = FROMFROM 
			primary_title = { real_tier = KING }			
		}
		additive_modifier = { #Then Dukes
			value = 15
			vassal_of = FROMFROM 
			primary_title = { real_tier = DUKE }			
		}
		additive_modifier = { #Then Counts
			value = 10
			vassal_of = FROMFROM 
			primary_title = { real_tier = COUNT }			
		}
		additive_modifier = { #Then Barons and Commanders
			value = 5
			vassal_of = FROMFROM
			OR = {
				primary_title = { real_tier = BARON }
				has_minor_title = title_commander			
			}
		}
		additive_modifier = {
			value = -100
			FROMFROM = { 
				holder_scope = { NOT = { religion = ROOT } }
			}
		}
		additive_modifier = { #males can never vote even in the random case they end up in this list
			value = -100
			is_female = no
		}
		additive_modifier = {
			value = -5
			is_republic = yes
		}
		additive_modifier = {
			value = -5
			is_merchant_republic = yes
		}
		additive_modifier = {
			value = -5
			is_tribal = yes
		}
		additive_modifier = {
			value = -5
			is_nomadic = yes
		}
	}
	candidate_vote_score = {
		days = 0
		##########################   Elector voting himself   ##########################
		additive_modifier = {
			value = 15
			localisation_key = tooltip_feudal_elector_vote_myself
			character = FROM
			NOR = {
				trait = humble
				trait = content
				trait = craven
				trait = slothful
				trait = stressed
				trait = depressed
				trait = ambitious
			}
			NOT = { 
				FROMFROM = { 
					holder_scope = { 
						is_parent_of = ROOT
					} 
				}
			}
		}
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_not_myself
			character = FROM
			NOT = { trait = ambitious }
			OR = {
				trait = humble
				trait = content
				trait = craven
				trait = slothful
				trait = stressed
				trait = depressed
			}
		}
		additive_modifier = {
			value = 40
			localisation_key = tooltip_feudal_elector_vote_myself_heir
			character = FROM
			NOR = {
				trait = humble
				trait = content
				trait = craven
				trait = slothful
				trait = stressed
				trait = depressed
				trait = ambitious
			}
			FROMFROM = { 
				holder_scope = { 
					is_parent_of = ROOT
				} 
			}
		}
		additive_modifier = {
			value = 40
			localisation_key = tooltip_feudal_elector_vote_myself_ambitious
			character = FROM
			trait = ambitious
			is_adult = yes
		}

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

		#The heir
		additive_modifier = { #Current ruler will always try to elect his player heir.
			value = 50
			localisation_key = tooltip_feudal_elector_vote_player_heir
			player_heir = {
				character = FROM
				NOT = { character = ROOT }
			}
			FROMFROM = {
				holder_scope = {
					character = PREVPREV
				}
				NOT = {
					is_rival = FROM #Unless is rival.
				}
			}
		}

		#Sexism
		additive_modifier = { #Gender weights
			value = -75
			localisation_key = tooltip_feudal_elector_vote_matriarchal
			FROM = {
				is_female = no
			}
		}

		#Ageism
		additive_modifier = { 
			value = -70
			localisation_key = tooltip_feudal_elector_vote_baby
			FROM = {
				NOT = {
					age = 5
				}
			}
		}
		additive_modifier = { 
			value = -50
			localisation_key = tooltip_feudal_elector_vote_child
			FROM = {
				age = 5
				NOT = {
					age = 10
				}
			}
		}
		additive_modifier = { 
			value = -30
			localisation_key = tooltip_feudal_elector_vote_child
			FROM = {
				age = 10
				NOT = {
					age = 16
				}
			}
		}
		additive_modifier = {
			value = 20
			localisation_key = tooltip_sisterhood_elector_vote_prime
			FROM = {
				age = 16
				age < 26
			}
		}
		additive_modifier = { 
			value = 10
			localisation_key = tooltip_sisterhood_elector_vote_young
			FROM = {
				age = 26
				age < 36
			}
		}
		additive_modifier = {
			value = -20
			localisation_key = tooltip_sisterhood_elector_vote_old
			FROM = {
				age = 45
				age < 55
			}
		}
		additive_modifier = {
			value = -100
			localisation_key = tooltip_sisterhood_elector_vote_granny
			FROM = {
				age = 55
			}
		}

		#Culturism
		additive_modifier = { 
			value = 10
			localisation_key = tooltip_feudal_elector_vote_fellow_culture
			NOT = { character = FROM }
			culture = FROM
		}
		additive_modifier = { 
			value = -15
			localisation_key = tooltip_feudal_elector_vote_stranger
			FROMFROM = { holder_scope = { culture = ROOT NOT = { government = order_government } } } #Only a concern if Elector and current ruler share culture.
			NOT = { culture = FROM }
		}
		additive_modifier = { 
			value = -30
			localisation_key = tooltip_feudal_elector_vote_foreigner
			FROMFROM = { holder_scope = { culture = ROOT NOT = { government = order_government } } } #Only a concern if Elector and current ruler share culture.
			NOT = { culture_group = FROM }
		}
		additive_modifier = { #Candidate is a foreigner's pet 
			value = -10
			localisation_key = tooltip_feudal_elector_vote_strangers_pet
			FROM = { 
				character = ROOT_FROMFROMFROM 
				culture = ROOT
			}
			FROMFROM = { holder_scope = { NOT = { culture = ROOT_FROM } } }
		}
		additive_modifier = { #Candidate is a foreigner's pet 
			value = -15
			localisation_key = tooltip_feudal_elector_vote_foreigners_pet
			FROM = { 
				character = ROOT_FROMFROMFROM 
				culture = ROOT
			}
			FROMFROM = { holder_scope = { NOT = { culture_group = ROOT_FROM } } }
		}
		additive_modifier = { #If candidate is elected, he will rule from a capital outside this dejure.
			value = -15
			localisation_key = tooltip_feudal_elector_vote_political_concerns
			capital_scope = { de_jure_liege_or_above = FROMFROM }
			FROM = {
				is_ruler = yes 
				is_vassal_or_below_of = ROOT_FROMFROM
				capital_scope = { NOT = { de_jure_liege_or_above = ROOT_FROMFROM } }
			}
		}
		additive_modifier = { #Candidate is a foreign ruler.
			value = -30
			localisation_key = tooltip_feudal_elector_vote_encroaching_foreigner
			capital_scope = { de_jure_liege_or_above = FROMFROM }
			FROM = {
				is_ruler = yes 
				NOT = { is_vassal_or_below_of = ROOT_FROMFROM }
				OR = {
					capital_scope = { de_jure_liege_or_above = ROOT_FROMFROM }
					de_jure_liege_or_above = ROOT_FROMFROM
				}
			}
		}
		additive_modifier = { #Candidate is a foreign non-dejure ruler.
			value = -500
			localisation_key = tooltip_feudal_elector_vote_encroaching_foreigner
			capital_scope = { de_jure_liege_or_above = FROMFROM }
			FROM = {
				is_ruler = yes 
				NOT = { is_vassal_or_below_of = ROOT_FROMFROM }
				NOR = {
					capital_scope = { de_jure_liege_or_above = ROOT_FROMFROM }
					de_jure_liege_or_above = ROOT_FROMFROM
				}
			}
		}

		#Barbarism
		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
				} 
			}
		}
		additive_modifier = { 
			value = -15
			localisation_key = tooltip_feudal_elector_vote_settled
			is_nomadic = yes
			FROM = { 
				is_nomadic = no
			}
		}

		#Nepotism
		additive_modifier = { 
			value = 25
			localisation_key = tooltip_feudal_elector_vote_dynasty
			NOT = { 
				character = FROM
			}
			FROM = { 
				dynasty = ROOT
				NOT = { 
					is_close_relative = ROOT
				}
			}
		}
		additive_modifier = { 
			value = 30
			localisation_key = tooltip_feudal_elector_vote_relative
			NOT = { 
				character = FROM
			}
			FROM = { 
				is_close_relative = ROOT
				NOT = { 
					is_child_of = ROOT
				}
			}
		}
		additive_modifier = { 
			value = 35
			localisation_key = tooltip_feudal_elector_vote_parent
			NOT = { 
				character = FROM
			}
			FROM = { 
				is_child_of = ROOT
			}
			NOT = { 
				FROMFROM = { 
					holder_scope = { 
						character = ROOT
					}
				}
			}
		}
		additive_modifier = { #Current Ruler should tend to often pick one of his own children as potential heirs.
			value = 70
			localisation_key = tooltip_feudal_elector_vote_parent
			NOT = { 
				character = FROM
			}
			FROM = { 
				is_child_of = ROOT
			}
			FROMFROM = { 
				holder_scope = { 
					character = ROOT
				}
			}
		}

		#Prestige
		additive_modifier = { 
			value = -20
			localisation_key = tooltip_feudal_elector_vote_prestige_negative
			FROM = { NOT = { prestige = -1000 } }
		}
		additive_modifier = { 
			value = -15
			localisation_key = tooltip_feudal_elector_vote_prestige_negative
			FROM = { prestige = -1000 }
			FROM = { NOT = { prestige = -500 } }
		}
		additive_modifier = { 
			value = -10
			localisation_key = tooltip_feudal_elector_vote_prestige_negative
			FROM = { prestige = -500 }
			FROM = { NOT = { prestige = -250 } }
		}
		additive_modifier = { 
			value = -5
			localisation_key = tooltip_feudal_elector_vote_prestige_negative
			FROM = { prestige = -250 }
			FROM = { NOT = { prestige = 0 } }
		}
		additive_modifier = { 
			value = 5
			localisation_key = tooltip_feudal_elector_vote_prestige_positive
			FROM = { prestige = 250 }
			FROM = { NOT = { prestige = 500 } }
		}
		additive_modifier = { 
			value = 10
			localisation_key = tooltip_feudal_elector_vote_prestige_positive
			FROM = { prestige = 500 }
			FROM = { NOT = { prestige = 1000 } }
		}
		additive_modifier = { 
			value = 15
			localisation_key = tooltip_feudal_elector_vote_prestige_positive
			FROM = { prestige = 1000 }
		}


		#Piety
		additive_modifier = { 
			value = -50
			localisation_key = tooltip_feudal_elector_vote_piety_negative
			FROM = { NOT = { piety = -500 } }
		}
		additive_modifier = { 
			value = -35
			localisation_key = tooltip_feudal_elector_vote_piety_negative
			FROM = { piety = -500 }
			FROM = { NOT = { piety = -250 } }
		}
		additive_modifier = { 
			value = -20
			localisation_key = tooltip_feudal_elector_vote_piety_negative
			FROM = { piety = -250 }
			FROM = { NOT = { piety = -100 } }
		}
		additive_modifier = { 
			value = -10
			localisation_key = tooltip_feudal_elector_vote_piety_negative
			FROM = { piety = -100 }
			FROM = { NOT = { piety = 0 } }
		}
		additive_modifier = { 
			value = 10
			localisation_key = tooltip_feudal_elector_vote_piety_positive
			FROM = { piety = 100 }
			FROM = { NOT = { piety = 250 } }
		}
		additive_modifier = { 
			value = 25
			localisation_key = tooltip_feudal_elector_vote_piety_positive
			FROM = { piety = 250 }
			FROM = { NOT = { piety = 500 } }
		}
		additive_modifier = { 
			value = 50
			localisation_key = tooltip_feudal_elector_vote_piety_positive
			FROM = { piety = 500 }
			FROM = { NOT = { piety = 1000 } }
		}
		additive_modifier = { 
			value = 75
			localisation_key = tooltip_feudal_elector_vote_piety_positive
			FROM = { piety = 1000 }
			FROM = { NOT = { piety = 1500 } }
		}
		additive_modifier = { 
			value = 90
			localisation_key = tooltip_feudal_elector_vote_piety_positive
			FROM = { piety = 1500 }
			FROM = { NOT = { piety = 2000 } }
		}
		additive_modifier = { 
			value = 100
			localisation_key = tooltip_feudal_elector_vote_piety_positive
			FROM = { piety = 2000 }
		}

		#Educational preferences
		additive_modifier = {
			value = 15
			localisation_key = tooltip_sisterhood_elector_vote_stewardship_education
			FROM = { 
				stewardship = 10
				OR = { 
					has_education_stewardship_trigger = yes
					has_lifestyle_stewardship_trigger = yes
				} 
			}
		}
		additive_modifier = {
			value = 15
			localisation_key = tooltip_feudal_elector_vote_diplomatic_education
			FROM = { 
				diplomacy = 10
				OR = { 
					has_education_diplomacy_trigger = yes
					has_lifestyle_diplomacy_trigger = yes
				} 
			}
		}
		additive_modifier = { # Spiritual culture prefers scholars
			value = 15
			localisation_key = tooltip_feudal_elector_vote_spiritual_education
			FROM = { 
				learning = 10
				OR = { 
					has_education_learning_trigger = yes 
					has_lifestyle_learning_trigger = yes
				} 
			}
		}

		#Claims
		additive_modifier = {
			value = 30
			localisation_key = tooltip_feudal_elector_vote_strong_claimant
			FROM = { 
				has_claim = ROOT_FROMFROM
			}
		}
		additive_modifier = {
			value = 15
			localisation_key = tooltip_feudal_elector_vote_weak_claimant
			FROM = { 
				has_weak_claim = ROOT_FROMFROM
			}
		}


		#All the Traits
		additive_modifier = {
			value = 5
			localisation_key = tooltip_feudal_elector_vote_playful
			NOT = { character = FROM } #Do not judge yourself.
			this_is_warrior_culture_trigger = yes
			FROM = { 
				trait = playful
			}
		}
		additive_modifier = {
			value = 5
			localisation_key = tooltip_feudal_elector_vote_rowdy
			NOT = { character = FROM } #Do not judge yourself.
			this_is_warrior_culture_trigger = yes
			FROM = { 
				trait = rowdy
			}
		}
		additive_modifier = {
			value = 5
			localisation_key = tooltip_feudal_elector_vote_haughty
			NOT = { character = FROM } #Do not judge yourself.
			this_is_diplomatic_culture_trigger = yes
			FROM = { 
				trait = haughty
			}
		}
		additive_modifier = {
			value = 5
			localisation_key = tooltip_feudal_elector_vote_conscientious
			NOT = { character = FROM } #Do not judge yourself.
			this_is_diplomatic_culture_trigger = yes
			FROM = { 
				trait = conscientious
			}
		}
		additive_modifier = {
			value = 5
			localisation_key = tooltip_feudal_elector_vote_curious
			NOT = { character = FROM } #Do not judge yourself.
			this_is_spiritual_culture_trigger = yes
			FROM = { 
				trait = curious
			}
		}
		additive_modifier = {
			value = 5
			localisation_key = tooltip_feudal_elector_vote_idolizer
			NOT = { character = FROM } #Do not judge yourself.
			this_is_spiritual_culture_trigger = yes
			FROM = { 
				trait = idolizer
			}
		}
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_depressed
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = depressed
			}
		}
		additive_modifier = { 	#Would mean the end of Elections
			value = -35	
			localisation_key = tooltip_feudal_elector_vote_immortal
			NOT = { character = FROM } #Do not judge yourself.	
			FROM = { 
				trait = immortal
			}
		}
		additive_modifier = {
			value = -50
			localisation_key = tooltip_feudal_elector_vote_incapable_warrior
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = incapable
			}
		}
		additive_modifier = {
			value = -30
			localisation_key = tooltip_feudal_elector_vote_infirm_diplomat
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = infirm
			}
		}
		additive_modifier = {
			value = -30
			localisation_key = tooltip_feudal_elector_vote_lunatic
			NOT = { character = FROM } #Do not judge yourself.
			NOR = { 
				trait = zealous 
				is_tribal = yes
				is_nomadic = yes
			}
			FROM = { 
				trait = lunatic
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_maimed_warrior
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = maimed
			}
		}
		additive_modifier = {
			value = -35
			localisation_key = tooltip_feudal_elector_vote_possessed
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { trait = zealous }
			NOR = { 
				is_tribal = yes
				is_nomadic = yes
			}
			FROM = { 
				trait = possessed
			}
		}
		additive_modifier = {
			value = -60
			localisation_key = tooltip_feudal_elector_vote_possessed_vs_zealous
			NOT = { character = FROM } #Do not judge yourself.
			trait = zealous
			NOR = { 
				is_tribal = yes
				is_nomadic = yes
			}
			FROM = { 
				trait = possessed
			}
		}
		additive_modifier = {
			value = 5
			localisation_key = tooltip_sisterhood_elector_vote_mystic
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = mystic
			}
		}
		additive_modifier = { #some light scarring is still a plus but any more than that and it's a negative
			value = 5
			localisation_key = tooltip_feudal_elector_vote_scarred
			NOT = { character = FROM } #Do not judge yourself.
			this_is_warrior_culture_trigger = yes
			FROM = { 
				trait = scarred
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_scarred_mid
			NOT = { character = FROM } #Do not judge yourself.
			this_is_warrior_culture_trigger = yes
			FROM = { 
				trait = scarred_mid
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_scarred_high
			NOT = { character = FROM } #Do not judge yourself.
			this_is_warrior_culture_trigger = yes
			FROM = { 
				trait = scarred_high
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_stressed
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = stressed
			}
		}
		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
			FROM = {
				trait = wounded
			}
		}
		additive_modifier = { #An infection is way worse than a simple wound.
			value = -25
			localisation_key = tooltip_feudal_elector_vote_wounded
			FROM = {
				trait = infection
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_has_aztec_disease
			FROM = { 
				trait = has_aztec_disease
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_has_typhus
			FROM = { 
				trait = has_typhus 
			}
		}
		additive_modifier = {
			value = -30
			localisation_key = tooltip_feudal_elector_vote_cancer
			FROM = { 
				trait = cancer
			}
		}
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_has_tuberculosis
			FROM = { 
				trait = has_tuberculosis
			}
		}
		additive_modifier = {
			value = -35
			localisation_key = tooltip_feudal_elector_vote_dancing_plague
			FROM = { 
				trait = dancing_plague 
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_dysentery
			FROM = { 
				trait = dysentery
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_flu
			FROM = { 
				trait = flu
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_food_poisoning
			FROM = { 
				trait = food_poisoning
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_gout
			FROM = { 
				trait = gout
			}
		}
		additive_modifier = {
			value = -40
			localisation_key = tooltip_feudal_elector_vote_syphilitic
			FROM = { 
				trait = syphilitic
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_has_typhoid_fever
			FROM = { 
				trait = has_typhoid_fever 
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_ill
			FROM = { 
				trait = ill
			}
		}
		additive_modifier = {
			value = -50
			localisation_key = tooltip_feudal_elector_vote_leper
			FROM = { 
				trait = leper
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_has_measles
			FROM = { 
				trait = has_measles
			}
		}
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_pneumonic
			FROM = { 
				trait = pneumonic
			}
		}
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_rabies
			FROM = { 
				trait = rabies
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_scurvy
			FROM = { 
				trait = scurvy
			}
		}
		additive_modifier = {
			value = -45
			localisation_key = tooltip_feudal_elector_vote_sickly
			FROM = { 
				trait = sickly
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_has_small_pox
			FROM = { 
				trait = has_small_pox
			}
		}
		additive_modifier = {
			value = -50
			localisation_key = tooltip_feudal_elector_vote_has_bubonic_plague
			FROM = { 
				trait = has_bubonic_plague
			}
		}
		additive_modifier = {
			value = -35
			localisation_key = tooltip_feudal_elector_vote_disfigured
			NOT = { 
				culture_group = byzantine
			}
			FROM = { 
				trait = disfigured
			}
		}
		additive_modifier = {
			value = -50
			localisation_key = tooltip_feudal_elector_vote_disfigured_byzantine
			culture_group = byzantine
			FROM = { 
				trait = disfigured
			}
		}
		additive_modifier = {
			value = -20
			localisation_key = tooltip_feudal_elector_vote_mangled_warrior
			FROM = { 
				trait = mangled
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_one_eyed
			FROM = { 
				trait = one_eyed
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_one_handed
			FROM = { 
				trait = one_handed
			}
		}
		additive_modifier = {
			value = -5
			localisation_key = tooltip_feudal_elector_vote_one_legged
			FROM = { 
				trait = one_legged
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_severely_injured
			FROM = { 
				trait = severely_injured
			}
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_feudal_elector_vote_born_in_the_purple
			NOT = { character = FROM } #Do not judge yourself.
			culture_group = byzantine
			FROM = { 
				trait = born_in_the_purple
			}
		}
		additive_modifier = { #Attraction bonus - very significant for this government type so it's always relevant when present
			value = 30
			localisation_key = tooltip_feudal_elector_vote_attractive
			NOT = { character = FROM } #Do not judge yourself.
			FROM = {
				is_adult = yes
				is_attractive_trigger = yes
			}
		}
		additive_modifier = { #Ugliness "bonus" - very significant for this government type so it's always relevant when present
			value = -40
			localisation_key = tooltip_feudal_elector_vote_ugly
			NOT = { character = FROM } #Do not judge yourself.
			FROM = {
				is_adult = yes
				is_unattractive_trigger = yes
			}
		}
		additive_modifier = { #Bonus points for groomed
			value = 20
			localisation_key = tooltip_sisterhood_elector_vote_groomed
			NOT = { character = FROM } #Do not judge yourself.
			FROM = {
				is_adult = yes
				trait = groomed
			}
		}
		additive_modifier = { #Extra negative for uncouth
			value = -10
			localisation_key = tooltip_sisterhood_elector_vote_uncouth
			NOT = { character = FROM } #Do not judge yourself.
			FROM = {
				is_adult = yes
				trait = uncouth
			}
		}
		additive_modifier = { #Bonus points for being fertile
			value = 30
			localisation_key = tooltip_sisterhood_elector_vote_fertile
			NOT = { character = FROM } #Do not judge yourself.
			FROM = {
				is_adult = yes
				is_fertile_trigger = yes
			}
		}
		additive_modifier = { #Extra negative for negative fertility traits
			value = -15
			localisation_key = tooltip_sisterhood_elector_vote_infertile
			NOT = { character = FROM } #Do not judge yourself.
			FROM = {
				is_adult = yes
				is_infertile_trigger = yes
			}
		}
		additive_modifier = { #Being homosexual gives a slight penalty in most cases due to this basically being a fertility cult
			value = -10
			localisation_key = tooltip_sisterhood_elector_vote_homosexual
			NOT = { character = FROM } #Do not judge yourself.
			NOR = { #some people just don't care by design
				religion = hellenic_pagan_reformed
				trait = cynical
			}
			FROM = {
				trait = homosexual
			}
		}
		additive_modifier = { #Celibate is a big no-no of course
			value = -1000
			localisation_key = tooltip_sisterhood_elector_vote_celibate
			NOT = { character = FROM } #Do not judge yourself.
			FROM = {
				trait = celibate
			}
		}
		additive_modifier = { #Its opposites on the other hand are very valuable
			value = 50
			localisation_key = tooltip_sisterhood_elector_vote_hedonist
			NOT = { character = FROM } #Do not judge yourself.
			FROM = {
				OR = {
					trait = hedonist
					trait = seductress
				}
			}
		}
		additive_modifier = {
			value = 20
			localisation_key = tooltip_feudal_elector_vote_genius_diplomat
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = genius
			}
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_feudal_elector_vote_quick_diplomat
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = quick
			}
		}
		additive_modifier = { #very valuable
			value = 20
			localisation_key = tooltip_feudal_elector_vote_strong_warrior
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = strong
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_clubfooted
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = clubfooted
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_dwarf
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = dwarf
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_harelip
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = harelip
			}
		}
		additive_modifier = {
			value = -30
			localisation_key = tooltip_feudal_elector_vote_hunchback_warrior
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = hunchback
			}
		}
		additive_modifier = {
			value = -40
			localisation_key = tooltip_feudal_elector_vote_imbecile_diplomat
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = imbecile
			}
		}
		additive_modifier = { #very, very bad for this government type
			value = -100
			localisation_key = tooltip_feudal_elector_vote_inbred
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = inbred
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_lisp
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = lisp
			}
		}
		additive_modifier = {
			value = -20
			localisation_key = tooltip_feudal_elector_vote_slow_diplomat
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = slow
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_stutter
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = stutter
			}
		}
		additive_modifier = {
			value = -30
			localisation_key = tooltip_feudal_elector_vote_weak_warrior
			NOT = { character = FROM } #Do not judge yourself.
			this_is_warrior_culture_trigger = yes
			FROM = { 
				trait = weak
			}
		}
		additive_modifier = {
			value = 10
			localisation_key = tooltip_feudal_elector_vote_robust_warrior
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = robust
			}
		}
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_dull_diplomat
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = dull
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_feeble_warrior
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = feeble
			}
		}

		#The Seven Sins/Virtues
		additive_modifier = { #Shunned for being Chaste. Always. And hard.
			value = -50
			localisation_key = tooltip_feudal_elector_vote_chaste_negative
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { trait = chaste }
			FROM = { 
				trait = chaste
			}
		}
		additive_modifier = { #Praised for being Temperate
			value = 10
			localisation_key = tooltip_feudal_elector_vote_temperate_positive
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { trait = gluttonous }
			FROM = { 
				trait = temperate
			}
		}
		additive_modifier = { #Shunned for being Temperate
			value = -10
			localisation_key = tooltip_feudal_elector_vote_temperate_negative
			NOT = { character = FROM } #Do not judge yourself.
			trait = gluttonous
			NOT = { trait = temperate }
			FROM = { 
				trait = temperate
			}
		}
		additive_modifier = { #Praised for being Charitable
			value = 15
			localisation_key = tooltip_feudal_elector_vote_charitable_positive
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { trait = greedy }
			FROM = { 
				trait = charitable
			}
		}
		additive_modifier = { #Shunned for being Charitable
			value = -10
			localisation_key = tooltip_feudal_elector_vote_charitable_negative
			NOT = { character = FROM } #Do not judge yourself.
			trait = greedy
			FROM = { 
				trait = charitable
			}
		}
		additive_modifier = { #Praised for being Diligent
			value = 15
			localisation_key = tooltip_feudal_elector_vote_diligent_positive
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { trait = slothful }
			FROM = { 
				trait = diligent
			}
		}
		additive_modifier = { #Shunned for being Diligent
			value = -10
			localisation_key = tooltip_feudal_elector_vote_diligent_negative
			NOT = { character = FROM } #Do not judge yourself.
			trait = slothful
			FROM = { 
				trait = diligent
			}
		}
		additive_modifier = { #Praised for being Patient
			value = 10
			localisation_key = tooltip_feudal_elector_vote_patient_positive
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { trait = wroth }
			FROM = { 
				trait = patient
			}
		}
		additive_modifier = { #Shunned for being Patient
			value = -10
			localisation_key = tooltip_feudal_elector_vote_patient_negative
			NOT = { character = FROM } #Do not judge yourself.
			trait = wroth
			FROM = { 
				trait = patient
			}
		}
		additive_modifier = { #Praised for being Kind
			value = 15
			localisation_key = tooltip_feudal_elector_vote_kind_positive
			NOT = { character = FROM } #Do not judge yourself.
			is_evil_trigger = no
			FROM = { 
				is_benevolent_trigger = yes
			}
		}
		additive_modifier = { #Shunned for being Kind
			value = -10
			localisation_key = tooltip_feudal_elector_vote_kind_negative
			NOT = { character = FROM } #Do not judge yourself.
			is_evil_trigger = yes
			FROM = { 
				is_benevolent_trigger = yes
			}
		}
		additive_modifier = { #Praised for being Humble
			value = 10
			localisation_key = tooltip_feudal_elector_vote_humble_positive
			NOT = { character = FROM } #Do not judge yourself.
			trait = humble
			FROM = { 
				trait = humble
			}
		}
		additive_modifier = { #Shunned for being Humble
			value = -10
			localisation_key = tooltip_feudal_elector_vote_humble_negative
			NOT = { character = FROM } #Do not judge yourself.
			OR = { 
				trait = proud
				trait = envious
			}
			FROM = { 
				trait = humble
			}
		}
		additive_modifier = { #Praised for being Lustful
			value = 25
			localisation_key = tooltip_feudal_elector_vote_lustful_positive
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = lustful
			}
		}
		additive_modifier = { #Praised for being Gluttonous
			value = 10
			localisation_key = tooltip_feudal_elector_vote_gluttonous_positive
			NOT = { character = FROM } #Do not judge yourself.
			OR = { 
				trait = gluttonous
				trait = hedonist
			}
			FROM = { 
				trait = gluttonous
			}
		}
		additive_modifier = { #Praised for being Greedy
			value = 5
			localisation_key = tooltip_feudal_elector_vote_greedy_positive
			NOT = { character = FROM } #Do not judge yourself.
			trait = greedy
			FROM = { 
				trait = greedy
			}
		}
		additive_modifier = { #Shunned for being Greedy
			value = -10
			localisation_key = tooltip_feudal_elector_vote_greedy_negative
			NOT = { character = FROM } #Do not judge yourself.
			OR = { 
				trait = arbitrary #No need for consistency
				NOT = { trait = greedy }
			}
			FROM = { 
				trait = greedy
			}
		}
		additive_modifier = { #Praised for being Slothful
			value = 5
			localisation_key = tooltip_feudal_elector_vote_slothful_positive
			NOT = { character = FROM } #Do not judge yourself.
			trait = slothful
			FROM = {
				trait = slothful
			}
		}
		additive_modifier = { #Shunned for being Slothful
			value = -10
			localisation_key = tooltip_feudal_elector_vote_slothful_negative
			NOT = { character = FROM } #Do not judge yourself.
			OR = { 
				trait = arbitrary #No need for consistency
				NOT = { trait = slothful }
			}
			FROM = { 
				trait = slothful
			}
		}
		additive_modifier = { #Praised for being Wroth
			value = 10
			localisation_key = tooltip_feudal_elector_vote_wroth_positive
			NOT = { character = FROM } #Do not judge yourself.
			trait = wroth
			FROM = { 
				trait = wroth
			}
		}
		additive_modifier = { #Shunned for being Wroth
			value = -5
			localisation_key = tooltip_feudal_elector_vote_wroth_negative
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { trait = wroth }
			FROM = { 
				trait = wroth
			}
		}
		additive_modifier = { #Shunned for being Evil
			value = -10
			localisation_key = tooltip_feudal_elector_vote_evil_negative
			NOT = { character = FROM } #Do not judge yourself.
			OR = { 
				trait = arbitrary #No need for consistency
				NOT = { is_evil_trigger = yes }
			}
			FROM = { 
				is_evil_trigger = yes
			}
		}
		additive_modifier = { #Praised for being Proud
			value = 5
			localisation_key = tooltip_feudal_elector_vote_proud_positive
			NOT = { character = FROM } #Do not judge yourself.
			religion_group = pagan_group
			NOR = { 
				religion = bon
				religion = bon_reformed
				trait = humble
			}
			FROM = { 
				trait = proud
			}
		}
		additive_modifier = { #Shunned for being Proud
			value = -5
			localisation_key = tooltip_feudal_elector_vote_proud_negative
			NOT = { character = FROM } #Do not judge yourself.
			OR = { 
				trait = arbitrary #No need for consistency
				trait = humble
				AND = { 
					is_theocracy = yes 
					NOT = { trait = proud } 
				}
			}
			FROM = { 
				trait = proud
			}
		}
		additive_modifier = { #Praised for being Ambitious
			value = 5
			localisation_key = tooltip_feudal_elector_vote_ambitious_positive
			NOT = { character = FROM } #Do not judge yourself.
			religion_group = pagan_group
			NOT = { 
				religion = bon_reformed
				trait = content
			}
			FROM = { 
				trait = ambitious
			}
		}
		additive_modifier = { #Shunned for being Ambitious
			value = -5
			localisation_key = tooltip_feudal_elector_vote_ambitious_negative
			NOT = { character = FROM } #Do not judge yourself.
			religion = bon_reformed
			OR = { 
				trait = arbitrary #No need for consistency
				NOT = { trait = ambitious }
			}
			FROM = { 
				trait = ambitious
			}
		}
		additive_modifier = { #Shunned for being Arbitrary
			value = -10
			localisation_key = tooltip_feudal_elector_vote_arbitrary_negative
			NOT = { character = FROM } #Do not judge yourself.
			OR = { 
				trait = just
				trait = arbitrary #Arbitraception
			}
			FROM = { 
				trait = arbitrary
			}
		}
		additive_modifier = { #Praised for being Brave
			value = 10
			localisation_key = tooltip_feudal_elector_vote_brave_positive_warrior
			NOT = { character = FROM } #Do not judge yourself.
			NOR = { 
				trait = envious
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				trait = brave
			}
		}
		additive_modifier = { #Shunned for being Brave
			value = -5
			localisation_key = tooltip_feudal_elector_vote_brave_negative
			NOT = { character = FROM } #Do not judge yourself.
			this_is_warrior_culture_trigger = no
			OR = { 
				trait = envious
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				trait = brave
			}
		}
		additive_modifier = { #Praised for being Content
			value = 10
			localisation_key = tooltip_feudal_elector_vote_content_positive
			NOT = { character = FROM } #Do not judge yourself.
			OR = {
				religion = bon
				pacifist = yes
			}
			FROM = { 
				trait = content
			}
		}
		additive_modifier = { #Shunned for being Content
			value = -5
			localisation_key = tooltip_feudal_elector_vote_content_negative
			NOT = { character = FROM } #Do not judge yourself.
			religion_group = pagan_group
			NOR = { 
				trait = content
				religion = bon_reformed
			}
			FROM = { 
				trait = content
			}
		}
		additive_modifier = { #Shunned for being Craven
			value = -25
			localisation_key = tooltip_feudal_elector_vote_craven_negative_warrior
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = craven
			}
		}
		additive_modifier = { #Praised for being Cynical
			value = 5
			localisation_key = tooltip_feudal_elector_vote_cynical_positive
			NOT = { character = FROM } #Do not judge yourself.
			religion = FROM
			trait = cynical
			NOT = { trait = zealous }
			FROM = { 
				trait = cynical
			}
		}
		additive_modifier = { #Shunned for being Cynical
			value = -30
			localisation_key = tooltip_feudal_elector_vote_cynical_negative
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { has_religion_feature = religion_dogmatic }
			religion = FROM
			NOT = { trait = cynical }
			FROM = { 
				trait = cynical
			}
		}
		additive_modifier = { #Shunned for being Cynical
			value = -60
			localisation_key = tooltip_feudal_elector_vote_cynical_negative_dogmatic
			NOT = { character = FROM } #Do not judge yourself.
			has_religion_feature = religion_dogmatic
			religion = FROM
			OR = { 
				trait = arbitrary #No need for consistency
				NOT = { trait = cynical }
			}
			FROM = { 
				trait = cynical
			}
		}
		additive_modifier = { #Shunned for being Deceitful
			value = -10
			localisation_key = tooltip_feudal_elector_vote_deceitful_negative
			NOT = { character = FROM } #Do not judge yourself.
			OR = { 
				trait = arbitrary #No need for consistency
				trait = honest
			}
			FROM = { 
				trait = deceitful
			}
		}
		additive_modifier = { #Praised for being Erudite
			value = 10
			localisation_key = tooltip_feudal_elector_vote_erudite_positive
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = erudite
			}
		}
		additive_modifier = { #Praised for being Just
			value = 15
			localisation_key = tooltip_feudal_elector_vote_just_positive
			NOT = { character = FROM } #Do not judge yourself.
			NOR = { 
				trait = deceitful
				trait = arbitrary
			}
			FROM = { 
				trait = just
			}
		}
		additive_modifier = { #Shunned for being Paranoid
			value = -5
			localisation_key = tooltip_feudal_elector_vote_paranoid_negative
			NOT = { character = FROM } #Do not judge yourself.
			NOR = { 
				trait = deceitful
				trait = arbitrary
				trait = paranoid
			}
			FROM = { 
				trait = paranoid
			}
		}
		additive_modifier = { #Shunned for being Paranoid by Paranoid
			value = -15
			localisation_key = tooltip_feudal_elector_vote_paranoid_negative_paranoid
			NOT = { character = FROM } #Do not judge yourself.
			trait = paranoid
			NOR = { 
				trait = deceitful
				trait = arbitrary
			}
			FROM = { 
				trait = paranoid
			}
		}
		additive_modifier = { #Shunned for being Shy
			value = -10
			localisation_key = tooltip_feudal_elector_vote_shy_negative
			NOT = { character = FROM } #Do not judge yourself.
			OR = { 
				this_is_diplomatic_culture_trigger = yes
				this_is_warrior_culture_trigger = yes
			}
			FROM = { 
				trait = shy
			}
		}
		additive_modifier = { #Praised for being Stubborn
			value = 5
			localisation_key = tooltip_feudal_elector_vote_stubborn_positive
			NOT = { character = FROM } #Do not judge yourself.
			this_is_warrior_culture_trigger = yes
			FROM = { 
				trait = stubborn
			}
		}
		additive_modifier = { #Shunned for being Stubborn
			value = -10
			localisation_key = tooltip_feudal_elector_vote_stubborn_negative
			NOT = { character = FROM } #Do not judge yourself.
			this_is_spiritual_culture_trigger = yes
			FROM = { 
				trait = stubborn
			}
		}
		additive_modifier = { #Praised for being Trusting
			value = 25
			localisation_key = tooltip_feudal_elector_vote_trusting_positive
			NOT = { character = FROM } #Do not judge yourself.
			OR = { 
				trait = deceitful
				trait = schemer
				trait = ambitious
			}
			FROM = { 
				trait = trusting
			}
		}
		additive_modifier = { #Praised for being Zealous
			value = 20
			localisation_key = tooltip_feudal_elector_vote_zealous_positive
			NOT = { character = FROM } #Do not judge yourself.
			religion = FROM
			NOR = { 
				has_religion_feature = religion_cosmopolitan
				pacifist = yes
				trait = cynical
			}
			FROM = { 
				trait = zealous
			}
		}
		additive_modifier = { #Shunned for being Zealous
			value = -10
			localisation_key = tooltip_feudal_elector_vote_zealous_negative
			NOT = { character = FROM } #Do not judge yourself.
			religion = FROM
			trait = cynical
			FROM = { 
				trait = zealous
			}
		}
		additive_modifier = { #Praised for being Seaking/Sea_queen
			value = 15
			localisation_key = tooltip_feudal_elector_vote_seaking_positive
			NOT = { character = FROM } #Do not judge yourself.
			OR = { 
				this_is_warrior_culture_trigger = yes
				has_religion_feature = religion_seafaring
			}
			FROM = { 
				OR = { 
					trait = seaking
					trait = sea_queen
				}
			}
		}
		additive_modifier = { #Shunned for being Seaking/Sea_queen
			value = -15
			localisation_key = tooltip_feudal_elector_vote_seaking_negative
			NOT = { character = FROM } #Do not judge yourself.
			NOR = { 
				this_is_warrior_culture_trigger = yes
				has_religion_feature = religion_seafaring
			}
			FROM = {
				OR = { 
					trait = seaking
					trait = sea_queen
				}
			}
		}
		additive_modifier = { #Praised for being Shieldmaiden. Always.
			value = 15
			localisation_key = tooltip_feudal_elector_vote_shieldmaiden_positive
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = shieldmaiden
			}
		}
		additive_modifier = { #Praised for being Adventurer
			value = 10
			localisation_key = tooltip_feudal_elector_vote_adventurer_positive
			NOT = { character = FROM } #Do not judge yourself.
			this_is_warrior_culture_trigger = yes
			FROM = { 
				trait = adventurer
			}
		}
		additive_modifier = { #Shunned for being Adventurer
			value = -10
			localisation_key = tooltip_feudal_elector_vote_adventurer_negative
			NOT = { character = FROM } #Do not judge yourself.
			this_is_warrior_culture_trigger = no
			FROM = { 
				trait = adventurer
			}
		}
		additive_modifier = { #Praised for being Berserker
			value = 5
			localisation_key = tooltip_feudal_elector_vote_berserker_positive
			NOT = { character = FROM } #Do not judge yourself.
			this_is_warrior_culture_trigger = yes
			FROM = { 
				trait = berserker
			}
		}
		additive_modifier = { #Shunned for being Berserker
			value = -20
			localisation_key = tooltip_feudal_elector_vote_berserker_negative
			NOT = { character = FROM } #Do not judge yourself.
			this_is_warrior_culture_trigger = no
			FROM = { 
				trait = berserker
			}
		}
		additive_modifier = { #Shunned for being blind
			value = -30
			localisation_key = tooltip_feudal_elector_vote_blinded_negative
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { 
				culture_group = byzantine
			}
			FROM = { 
				trait = blinded
			}
		}
		additive_modifier = { #Shunned for being blind
			value = -75
			localisation_key = tooltip_feudal_elector_vote_blinded_negative_byzantine
			NOT = { character = FROM } #Do not judge yourself.
			culture_group = byzantine
			FROM = { 
				trait = blinded
			}
		}
		additive_modifier = { #Shunned for being excommunicated
			value = -50
			localisation_key = tooltip_feudal_elector_vote_excommunicated_negative
			NOT = { character = FROM } #Do not judge yourself.
			NOR = { 
				trait = zealous
				trait = cynical
			}
			OR = { 
				NOT = { trait = excommunicated }
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				excommunicated_for = ROOT
			}
		}
		additive_modifier = { #Shunned for being excommunicated
			value = -150
			localisation_key = tooltip_feudal_elector_vote_excommunicated_negative_zealous
			NOT = { character = FROM } #Do not judge yourself.
			trait = zealous
			OR = { 
				NOT = { trait = excommunicated }
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				excommunicated_for = ROOT
			}
		}
		additive_modifier = { #Shunned for being an infidel, *very* surprised base monastic elective doesn't have this in NEOW
			value = -150
			localisation_key = tooltip_feudal_elector_vote_heathen
			NOT = { character = FROM } #Do not judge yourself.
			NOR = { 
				trait = zealous
				trait = cynical
			}
			OR = { 
				religion = ROOT
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				NOT = { religion = ROOT }
			}
		}
		additive_modifier = { #Shunned for being an infidel, *very* surprised base monastic elective doesn't have this in NEOW
			value = -300
			localisation_key = tooltip_feudal_elector_vote_heathen
			NOT = { character = FROM } #Do not judge yourself.
			trait = zealous
			religion = ROOT
			FROM = { 
				NOT = { religion = ROOT }
			}
		}
		additive_modifier = { #Shunned for being an heretic, *very* surprised base monastic elective doesn't have this in NEOW
			value = -100
			localisation_key = tooltip_feudal_elector_vote_heretic
			NOT = { character = FROM } #Do not judge yourself.
			NOR = { 
				trait = zealous
				trait = cynical
			}
			OR = { 
				religion = ROOT
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				is_heresy_of = ROOT
			}
		}
		additive_modifier = { #Shunned for being an heretic, *very* surprised base monastic elective doesn't have this in NEOW
			value = -200
			localisation_key = tooltip_feudal_elector_vote_heretic
			NOT = { character = FROM } #Do not judge yourself.
			trait = zealous
			religion = ROOT
			FROM = { 
				is_heresy_of = ROOT
			}
		}
		#Kinslayer - From stranger's perspective
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_vote_kinslayer_1_stranger
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { dynasty = FROM }
			OR = { 
				NOR = { 
					trait = dynastic_kinslayer 
					trait = familial_kinslayer
					trait = kinslayer
				}
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				trait = dynastic_kinslayer
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_kinslayer_2_stranger
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { dynasty = FROM }
			OR = { 
				NOR = { 
					trait = dynastic_kinslayer 
					trait = familial_kinslayer
					trait = kinslayer
				}
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				trait = familial_kinslayer
			}
		}
		additive_modifier = {
			value = -20
			localisation_key = tooltip_feudal_elector_vote_kinslayer_3_stranger
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { dynasty = FROM }
			OR = { 
				NOR = { 
					trait = dynastic_kinslayer 
					trait = familial_kinslayer
					trait = kinslayer
				}
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				trait = kinslayer
			}
		}
		#Kinslayer - From a far relative's perspective
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_kinslayer_1_dynast
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { is_close_relative = FROM }
			dynasty = FROM
			OR = { 
				NOR = { 
					trait = dynastic_kinslayer 
					trait = familial_kinslayer
					trait = kinslayer
				}
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				trait = dynastic_kinslayer
			}
		}
		additive_modifier = {
			value = -20
			localisation_key = tooltip_feudal_elector_vote_kinslayer_2_dynast
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { is_close_relative = FROM }
			dynasty = FROM
			OR = { 
				NOR = { 
					trait = dynastic_kinslayer 
					trait = familial_kinslayer
					trait = kinslayer
				}
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				trait = familial_kinslayer
			}
		}
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_kinslayer_3_dynast
			NOT = { character = FROM } #Do not judge yourself.
			NOT = { is_close_relative = FROM }
			dynasty = FROM
			OR = { 
				NOR = { 
					trait = dynastic_kinslayer 
					trait = familial_kinslayer
					trait = kinslayer
				}
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				trait = kinslayer
			}
		}
		#Kinslayer - From a close relative's perspective
		additive_modifier = {
			value = -20
			localisation_key = tooltip_feudal_elector_vote_kinslayer_1_dynast
			NOT = { character = FROM } #Do not judge yourself.
			is_close_relative = FROM 
			OR = { 
				NOR = { 
					trait = dynastic_kinslayer 
					trait = familial_kinslayer
					trait = kinslayer
				}
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				trait = dynastic_kinslayer
			}
		}
		additive_modifier = {
			value = -25
			localisation_key = tooltip_feudal_elector_vote_kinslayer_2_dynast
			NOT = { character = FROM } #Do not judge yourself.
			is_close_relative = FROM 
			dynasty = FROM
			OR = { 
				NOR = { 
					trait = dynastic_kinslayer 
					trait = familial_kinslayer
					trait = kinslayer
				}
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				trait = familial_kinslayer
			}
		}
		additive_modifier = {
			value = -30
			localisation_key = tooltip_feudal_elector_vote_kinslayer_3_dynast
			NOT = { character = FROM } #Do not judge yourself.
			is_close_relative = FROM 
			dynasty = FROM
			OR = { 
				NOR = { 
					trait = dynastic_kinslayer 
					trait = familial_kinslayer
					trait = kinslayer
				}
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				trait = kinslayer
			}
		}
		additive_modifier = { #Shunned for loving the heathens
			value = -25
			localisation_key = tooltip_feudal_elector_vote_sympathy_heathens
			NOT = { character = FROM } #Do not judge yourself.
			religion = FROM
			OR = { 
				AND = { 
					NOT = { has_dlc = "Holy Fury"}
					religion = bon_reformed
				}
				pacifist = yes
			}
			OR = { 
				trait = zealous
				has_religion_feature = religion_dogmatic
			}
			OR = { 
				trait = zealous
				trait = arbitrary #No need for consistency
			}
			FROM = { 
				OR = { 
					trait = sympathy_christendom
					trait = sympathy_islam
					trait = sympathy_pagans
					trait = sympathy_zoroastrianism
					trait = sympathy_judaism
					trait = sympathy_indian
				}
			}
		}
		additive_modifier = { #Praised for being Giant
			value = 10
			localisation_key = tooltip_feudal_elector_vote_giant_positive
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				trait = giant
			}
		}
		additive_modifier = { #Shunned for being out of shape
			value = -20
			localisation_key = tooltip_feudal_elector_vote_shape_negative
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				OR = { 
					trait = is_fat
					trait = is_malnourished
				}
			}
		}
		additive_modifier = { #Shunned for being of opposite pagan branch.
			value = -25
			localisation_key = tooltip_feudal_elector_vote_pagan_branch_negative
			NOT = { character = FROM } #Do not judge yourself.
			religion = FROM #Will care only if of same religion.
			OR = { 
				AND = { 
					trait = pagan_branch_1 	
					FROM = { 
						OR = { 
							trait = pagan_branch_2
							trait = pagan_branch_3
							trait = pagan_branch_4
						}
					}
				}
				AND = { 
					trait = pagan_branch_2 	
					FROM = { 
						OR = { 
							trait = pagan_branch_1
							trait = pagan_branch_3
							trait = pagan_branch_4
						}
					}
				}
				AND = { 
					trait = pagan_branch_3 	
					FROM = { 
						OR = { 
							trait = pagan_branch_2
							trait = pagan_branch_1
							trait = pagan_branch_4
						}
					}
				}
				AND = { 
					trait = pagan_branch_4 	
					FROM = { 
						OR = { 
							trait = pagan_branch_2
							trait = pagan_branch_3
							trait = pagan_branch_1
						}
					}
				}
			}
		}
		additive_modifier = { #Shunned for being unproved courtier in the shadow of the ruler.
			value = -10
			localisation_key = tooltip_feudal_elector_vote_spoiled_courtier
			FROM = { character = ROOT_FROMFROMFROM }
			NOT = { character = FROM } #Do not judge yourself.
			FROM = { 
				NOR = { 
					is_ruler = yes
					has_job_title = job_marshal
					has_job_title = job_chancellor
					has_job_title = job_treasurer
					has_job_title = job_spiritual
					has_job_title = job_spymaster
				}
				OR = {
					trait = slothful
					trait = is_fat
					trait = shy
				}
			}
		}
		#Bloodlines
		additive_modifier = {
			value = 25
			localisation_key = tooltip_feudal_elector_vote_bloodline
			NOT = { character = FROM } # Do not judge yourself
			FROM = {
				any_owned_bloodline = {
					bloodline_is_active_for = PREV
					has_bloodline_flag = bloodline_princely_elective_bonus
				}
			}
		}

		##########################   Ruler's traits   ##########################
		#Ruler is lunatic, vote against his pick
		additive_modifier = {
			value = -10
			localisation_key = tooltip_feudal_elector_anti_vote_ruler_lunatic
			FROM = { character = ROOT_FROMFROMFROM }
			NOT = { character = FROM } #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
			FROM = { character = ROOT_FROMFROMFROM }
			NOT = { character = FROM } #But not if it's me.
			trait = zealous
			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 = 30
			localisation_key = tooltip_feudal_elector_pro_vote_ruler_just
			FROM = { character = ROOT_FROMFROMFROM }
			NOT = { character = FROM } #But not if it's me.
			NOR = {
				trait = lunatic #Don't care
				trait = possessed #Don't care
				trait = arbitrary #Don't like it
			}
			FROMFROM = { 
				holder_scope = {
					trait = just
				} 
			}
		}
		#Ruler is a Tyrant (Opinion), vote against his pick
		additive_modifier = {
			value = -30
			localisation_key = tooltip_feudal_elector_anti_vote_ruler_tyrant
			FROM = { character = ROOT_FROMFROMFROM }
			NOT = { character = FROM } #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 = {
							modifier = opinion_tyrant
							who = PREV
						} 
					} 
				} 
			}
		}


		##########################   Raw Opinion bonus towards Candidate   ##########################
		additive_modifier = {
			value = -150
			localisation_key = tooltip_feudal_elector_vote_opinion_negative
			NOT = { character = FROM } #But not if it's me.
			is_rival = FROM
		}
		additive_modifier = {
			value = -100
			localisation_key = tooltip_feudal_elector_vote_opinion_negative
			NOT = { character = FROM } #But not if it's me.
			NOT = { is_rival = FROM } #Special case
			NOT = {
				opinion = {
					who = FROM
					value = -75 
				}
			}
		}
		additive_modifier = {
			value = -50
			localisation_key = tooltip_feudal_elector_vote_opinion_negative
			NOT = { character = FROM } #But not if it's me.
			NOT = { is_rival = FROM } #Special case
			NOT = {
				opinion = {
					who = FROM
					value = -50  
				}
			}
			opinion = {
				who = FROM
				value = -75 
			}
		}
		additive_modifier = {
			value = -30
			localisation_key = tooltip_feudal_elector_vote_opinion_negative
			NOT = { character = FROM } #But not if it's me.
			NOT = { is_rival = FROM } #Special case
			NOT = {
				opinion = {
					who = FROM
					value = -25
				}
			}
			opinion = {
				who = FROM
				value = -50
			}
		}
		additive_modifier = {
			value = -15
			localisation_key = tooltip_feudal_elector_vote_opinion_negative
			NOT = { character = FROM } #But not if it's me.
			NOT = { is_rival = FROM } #Special case
			NOT = {
				opinion = {
					who = FROM
					value = 0
				}
			}
			opinion = {
				who = FROM
				value = -25 
			}
		}
		additive_modifier = {
			value = 15
			localisation_key = tooltip_feudal_elector_vote_opinion_positive
			NOT = { character = FROM } #But not if it's me.
			NOT = { is_rival = FROM } #Special case
			opinion = {
				who = FROM
				value = 0
			}
			NOT = {
				opinion = {
					who = FROM
					value = 25
				}
			}
		}
		additive_modifier = {
			value = 30
			localisation_key = tooltip_feudal_elector_vote_opinion_positive
			NOT = { character = FROM } #But not if it's me.
			NOT = { is_rival = FROM } #Special case
			opinion = {
				who = FROM
				value = 25
			}
			NOT = {
				opinion = {
					who = FROM
					value = 50
				}
			}
		}
		additive_modifier = {
			value = 50
			localisation_key = tooltip_feudal_elector_vote_opinion_positive
			NOT = { character = FROM } #But not if it's me.
			NOT = { is_rival = FROM } #Special case
			opinion = {
				who = FROM
				value = 50
			}
			NOT = {
				opinion = {
					who = FROM
					value = 75 
				}
			}
		}
		additive_modifier = {
			value = 70
			localisation_key = tooltip_feudal_elector_vote_opinion_positive
			NOT = { character = FROM } #But not if it's me.
			NOT = { is_rival = FROM } #Special case
			opinion = {
				who = FROM
				value = 75
			}
		}

		##########################   Raw Opinion bonus towards Ruler   ##########################
		additive_modifier = { #Vassal hates ruler, therefore votes against the ruler's candidate (FROMFROMFROM)
			value = -30
			localisation_key = tooltip_feudal_elector_anti_vote_ruler_opinion_negative
			FROM = { character = ROOT_FROMFROMFROM }
			NOT = { character = FROM } #But not if it's me.
			FROMFROM = { 
				holder_scope = {
					NOT = { character = ROOT } #Of course you trust your own opinion of your candidate...
					NOT = { 
						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
			FROM = { character = ROOT_FROMFROMFROM }
			NOT = { character = FROM } #But not if it's me.
			FROMFROM = { 
				holder_scope = {
					NOT = { character = ROOT } #Of course you trust your own opinion of your candidate...
					NOT = { 
						reverse_opinion = { who = ROOT value = -50 } 
					} 
					reverse_opinion = { who = ROOT value = -75 } 
				} 
			}
		}
		additive_modifier = { #Vassal hates ruler, therefore votes against the ruler's candidate (FROMFROMFROM)
			value = -15
			localisation_key = tooltip_feudal_elector_anti_vote_ruler_opinion_negative
			FROM = { character = ROOT_FROMFROMFROM }
			NOT = { character = FROM } #But not if it's me.
			FROMFROM = { 
				holder_scope = {
					NOT = { character = ROOT } #Of course you trust your own opinion of your candidate...
					NOT = { 
						reverse_opinion = { who = ROOT value = -25 } 
					} 
					reverse_opinion = { who = ROOT value = -50 } 
				} 
			}
		}
		additive_modifier = { #Vassal hates ruler, therefore votes against the ruler's candidate (FROMFROMFROM)
			value = -10
			localisation_key = tooltip_feudal_elector_anti_vote_ruler_opinion_negative
			FROM = { character = ROOT_FROMFROMFROM }
			NOT = { character = FROM } #But not if it's me.
			FROMFROM = { 
				holder_scope = {
					NOT = { character = ROOT } #Of course you trust your own opinion of your candidate...
					NOT = { 
						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) HRE - only available if ruler is crowned.
			value = 10
			localisation_key = tooltip_feudal_elector_pro_vote_ruler_opinion_positive
			FROM = { character = ROOT_FROMFROMFROM }
			NOT = { character = FROM } #But not if it's me.
			FROMFROM = { 
				holder_scope = {
					NOT = { character = ROOT } #Of course you trust your own opinion of your candidate...
					reverse_opinion = { who = ROOT value = 0 } 
					NOT = { 
						reverse_opinion = { who = ROOT value = 25 } 
					} 
				} 
			}
		}
		additive_modifier = { #Vassal loves ruler, therefore votes for the ruler's candidate (FROMFROMFROM)
			value = 25
			localisation_key = tooltip_feudal_elector_pro_vote_ruler_opinion_positive
			FROM = { character = ROOT_FROMFROMFROM }
			NOT = { character = FROM } #But not if it's me.
			FROMFROM = { 
				holder_scope = {
					NOT = { character = ROOT } #Of course you trust your own opinion of your candidate...
					reverse_opinion = { who = ROOT value = 25 } 
					NOT = { 
						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
			FROM = { character = ROOT_FROMFROMFROM }
			NOT = { character = FROM } #But not if it's me.
			FROMFROM = { 
				holder_scope = {
					NOT = { character = ROOT } #Of course you trust your own opinion of your candidate...
					reverse_opinion = { who = ROOT value = 50 } 
					NOT = { 
						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
			FROM = { character = ROOT_FROMFROMFROM }
			NOT = { character = FROM } #But not if it's me.
			FROMFROM = { 
				holder_scope = {
					NOT = { character = ROOT } #Of course you trust your own opinion of your candidate...
					reverse_opinion = { who = ROOT value = 75 } 
				} 
			}
		}
	}
	candidate_trigger = {#what qualifies you to be a candidate
		NOT = { character = FROM } #Not the current ruler
		FROM = { #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 = { 
				any_liege = { 
					character = ROOT
				} 
				is_ruler = no
				ROOT_FROMFROM = { holder_scope = { independent = yes } }
				NOR = { 
					ROOT_FROMFROM = { has_law = out_of_realm_inheritance_law_1 } 
					ROOT_FROMFROM = { has_law = crown_authority_3 } 
					ROOT_FROMFROM = { has_law = crown_authority_4 } 
				} 
			}
			#Either the candidate is in the realm, or is a landless member of the current Grandmaster's dynasty
			OR = {
				AND = {#Landless dynasty members can be suggested
					dynasty = ROOT # I think this is how it works, the thing I copied from uses ROOT = { dynasty = FROM }, meaning that the Grandmaster is of the candidate's dynasty
					is_ruler = no
				}
				any_liege = {#is in the Order already
					character = ROOT
					OR = {
						ROOT = { higher_tier_than = BARON }
						government = sisterhood_government
					}
				}
				AND = {
					OR = {
						has_job_title = job_chancellor
						has_job_title = job_treasurer
						has_job_title = job_spiritual
					}
					liege = {
						character = ROOT
					}
				}
			}
			OR = { #Candidate should not be a landless Courtier that is about to inherit a Theocracy or Republic
				AND = {
					is_ruler = yes
					is_landed = yes
					is_republic = no
					is_merchant_republic = no
					is_theocracy = no
				}
				NOR = {
					any_heir_title = {
						is_republic = yes
					}
					any_heir_title = {
						is_merchant_republic = yes
					}
					any_heir_title = {
						is_theocracy = yes
					}
				}
			}
		}		
	}
}
