﻿@pvpercent1 = 0.2
@pvpercent2 = 0.4
@pvpercent3 = 0.6
@aipvaluep = 100
@aipvaluen = -100

gptl_sociability_value = {
	value = 0
	if = {
		limit = {
			any_councillor = {
				has_trait = gregarious
			}
		}
		add = 50
	}
	if = {
		limit = {
			any_councillor = {
				has_trait = shy
			}
		}
		add = -50
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = gregarious
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = shy
			}
		}
		add = -150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = gregarious
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = shy
		}
		add = -150
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = gregarious
		}
		add = 400
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = shy
		}
		add = -400
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = gregarious
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = shy
		}
		add = -150
	}


	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = gregarious
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = gregarious
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = gregarious
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = gregarious
			}
		}
		add = 200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = shy
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = shy
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = shy
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = shy
			}
		}
		add = -200
	}

	if = {
		limit = {
			OR = {
				government_has_flag = government_is_nomadic
				government_has_flag = government_is_tribal
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_egalitarian
						has_cultural_tradition = tradition_esteemed_hospitality
						has_cultural_tradition = tradition_astute_diplomats
						has_cultural_tradition = tradition_female_only_inheritance
						has_cultural_tradition = tradition_equal_inheritance
						has_cultural_tradition = tradition_culture_blending
						has_cultural_tradition = tradition_religion_blending
						has_cultural_tradition = tradition_xenophilic
						has_cultural_tradition = tradition_pacifism
						has_cultural_tradition = tradition_welcoming
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_stoic
						has_cultural_tradition = tradition_metal_craftsmanship
						has_cultural_tradition = tradition_isolationist
						has_cultural_tradition = tradition_agrarian
						has_cultural_tradition = tradition_pastoralists
						has_cultural_tradition = tradition_hidden_cities
						has_cultural_tradition = tradition_castle_keepers
						has_cultural_tradition = tradition_stalwart_defenders
						has_cultural_tradition = tradition_loyal_soldiers
						has_cultural_tradition = tradition_equitable
						has_cultural_tradition = tradition_modest
					}
				}
			}
		}
		add = -100
	}
}

gptl_vengefulness_value = {
	value = 0
	if = {
		limit = {
			any_councillor = {
				has_trait = vengeful
			}
		}
		add = 50
	}
	if = {
		limit = {
			any_councillor = {
				has_trait = forgiving
			}
		}
		add = -50
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = vengeful
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = forgiving
			}
		}
		add = -150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = vengeful
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = forgiving
		}
		add = -150
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = vengeful
		}
		add = 400
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = forgiving
		}
		add = -400
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = vengeful
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = forgiving
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = vengeful
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = vengeful
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = vengeful
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = vengeful
			}
		}
		add = 200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = forgiving
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = forgiving
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = forgiving
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = forgiving
			}
		}
		add = -200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_bellicose
						has_cultural_tradition = tradition_only_the_strong
						has_cultural_tradition = tradition_warriors_by_merit
						has_cultural_tradition = tradition_malleable_invaders
						has_cultural_tradition = tradition_quarrelsome
						has_cultural_tradition = tradition_swords_for_hire
						has_cultural_tradition = tradition_reverence_for_veterans
						has_cultural_tradition = tradition_battlefield_looters
						has_cultural_tradition = tradition_stand_and_fight
						has_cultural_tradition = tradition_spartan
						has_cultural_tradition = tradition_warrior_culture
						has_cultural_tradition = tradition_martial_admiration
						has_cultural_tradition = tradition_practiced_pirates
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_egalitarian
						has_cultural_tradition = tradition_esteemed_hospitality
						has_cultural_tradition = tradition_astute_diplomats
						has_cultural_tradition = tradition_female_only_inheritance
						has_cultural_tradition = tradition_equal_inheritance
						has_cultural_tradition = tradition_culture_blending
						has_cultural_tradition = tradition_religion_blending
						has_cultural_tradition = tradition_xenophilic
						has_cultural_tradition = tradition_pacifism
						has_cultural_tradition = tradition_welcoming
					}
				}
			}
		}
		add = -100
	}
}

gptl_zeal_value = {
	value = 0
	if = {
		limit = {
			any_councillor = {
				has_trait = zealous
			}
		}
		add = 50
	}
	if = {
		limit = {
			any_councillor = {
				has_trait = cynical
			}
		}
		add = -50
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = zealous
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = cynical
			}
		}
		add = -150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = zealous
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = cynical
		}
		add = -150
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = zealous
		}
		add = 400
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = cynical
		}
		add = -400
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = zealous
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = cynical
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = zealous
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = zealous
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = zealous
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = zealous
			}
		}
		add = 200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = cynical
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = cynical
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = cynical
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = cynical
			}
		}
		add = -200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				faith = { has_doctrine_parameter = unreformed }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				NOT = { faith = { has_doctrine_parameter = unreformed } }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_courtly
						has_cultural_tradition = tradition_legalistic
						has_cultural_tradition = tradition_hereditary_hierarchy
						has_cultural_tradition = tradition_wedding_ceremonies
						has_cultural_tradition = tradition_ruling_caste
						has_cultural_tradition = tradition_festivities
						has_cultural_tradition = tradition_culinary_art
						has_cultural_tradition = tradition_chivalry
						has_cultural_tradition = tradition_music_theory
						has_cultural_tradition = tradition_poetry
						has_cultural_tradition = tradition_life_is_just_a_joke
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_spiritual
						has_cultural_tradition = tradition_fervent_temple_builders
						has_cultural_tradition = tradition_monastic_communities
						has_cultural_tradition = tradition_warrior_monks
						has_cultural_tradition = tradition_language_scholars
						has_cultural_tradition = tradition_mystical_ancestors
						has_cultural_tradition = tradition_religious_patronage
						has_cultural_tradition = tradition_faith_bound
						has_cultural_tradition = tradition_vegetarianism
						has_cultural_tradition = tradition_storytellers
						has_cultural_tradition = tradition_mendicant_mystics
						has_cultural_tradition = tradition_philosopher_culture
						has_cultural_tradition = tradition_zealous_people
					}
				}
			}
		}
		add = -100
	}
}

gptl_compassion_value = {
	value = 0
	if = {
		limit = {
			any_councillor = {
				has_trait = compassionate
			}
		}
		add = 50
	}
	if = {
		limit = {
			any_councillor = {
				has_trait = callous
			}
		}
		add = -50
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = compassionate
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = callous
			}
		}
		add = -150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = compassionate
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = callous
		}
		add = -150
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = compassionate
		}
		add = 400
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = callous
		}
		add = -400
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = compassionate
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = callous
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = compassionate
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = compassionate
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = compassionate
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = compassionate
			}
		}
		add = 200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = callous
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = callous
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = callous
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = callous
			}
		}
		add = -200
	}

	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				faith = { has_doctrine_parameter = unreformed }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				NOT = { faith = { has_doctrine_parameter = unreformed } }
			}
		}
		add = 100
	}

	if = {
		limit = {
			OR = {
				government_has_flag = government_is_administrative
				government_has_flag = government_is_feudal
				government_has_flag = government_is_japan_feudal
			}
		}
		add = 100
	}
	if = {
		limit = {
			OR = {
				government_has_flag = government_is_clan
				OR = {
					government_has_flag = government_is_nomadic
					government_has_flag = government_is_tribal
				}
			}
		}
		add = -75
	}
	if = {
		limit = {
			can_raid_trigger = no
		}
		add = 100
	}
	if = {
		limit = {
			can_raid_trigger = yes
		}
		add = -100
	}
}

gptl_boldness_value = {
	value = 0
	if = {
		limit = {
			any_councillor = {
				has_trait = brave
			}
		}
		add = 50
	}
	if = {
		limit = {
			any_councillor = {
				has_trait = craven
			}
		}
		add = -50
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = brave
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = craven
			}
		}
		add = -150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = brave
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = craven
		}
		add = -150
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = brave
		}
		add = 400
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = craven
		}
		add = -400
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = brave
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = craven
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = brave
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = brave
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = brave
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = brave
			}
		}
		add = 200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = craven
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = craven
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = craven
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = craven
			}
		}
		add = -200
	}
	if = {
		limit = {
			government_has_flag = government_has_treasury
		}
		add = -100
	}
	if = {
		limit = {
			OR = {
				government_has_flag = government_is_nomadic
				government_has_flag = government_is_tribal
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_bureaucratic
						has_cultural_tradition = tradition_republican_legacy
						has_cultural_tradition = tradition_roman_legacy
						has_cultural_tradition = tradition_parochialism
						has_cultural_tradition = tradition_city_keepers
						has_cultural_tradition = tradition_maritime_mercantilism
						has_cultural_tradition = tradition_hard_working
						has_cultural_tradition = tradition_eye_for_an_eye
						has_cultural_tradition = tradition_forbearing
						has_cultural_tradition = tradition_artisans
						has_cultural_tradition = tradition_noble_adoption
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_communal
						has_cultural_tradition = tradition_tribe_unity
						has_cultural_tradition = tradition_collective_lands
						has_cultural_tradition = tradition_family_entrepreneurship
						has_cultural_tradition = tradition_staunch_traditionalists
						has_cultural_tradition = tradition_merciful_blindings
						has_cultural_tradition = tradition_sacred_hunts
						has_cultural_tradition = tradition_sacred_groves
						has_cultural_tradition = tradition_sacred_mountains
						has_cultural_tradition = tradition_charitable
					}
				}
			}
		}
		add = -100
	}
}

gptl_greed_value = {
	value = 0
	if = {
		limit = {
			any_councillor = {
				has_trait = greedy
			}
		}
		add = 50
	}
	if = {
		limit = {
			any_councillor = {
				has_trait = generous
			}
		}
		add = -50
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = greedy
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = generous
			}
		}
		add = -150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = greedy
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = generous
		}
		add = -150
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = greedy
		}
		add = 400
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = generous
		}
		add = -400
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = greedy
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = generous
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = greedy
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = greedy
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = greedy
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = greedy
			}
		}
		add = 200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = generous
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = generous
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = generous
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = generous
			}
		}
		add = -200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_bureaucratic
						has_cultural_tradition = tradition_republican_legacy
						has_cultural_tradition = tradition_roman_legacy
						has_cultural_tradition = tradition_parochialism
						has_cultural_tradition = tradition_city_keepers
						has_cultural_tradition = tradition_maritime_mercantilism
						has_cultural_tradition = tradition_hard_working
						has_cultural_tradition = tradition_eye_for_an_eye
						has_cultural_tradition = tradition_forbearing
						has_cultural_tradition = tradition_artisans
						has_cultural_tradition = tradition_noble_adoption
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_stoic
						has_cultural_tradition = tradition_metal_craftsmanship
						has_cultural_tradition = tradition_isolationist
						has_cultural_tradition = tradition_agrarian
						has_cultural_tradition = tradition_pastoralists
						has_cultural_tradition = tradition_hidden_cities
						has_cultural_tradition = tradition_castle_keepers
						has_cultural_tradition = tradition_stalwart_defenders
						has_cultural_tradition = tradition_loyal_soldiers
						has_cultural_tradition = tradition_equitable
						has_cultural_tradition = tradition_modest
					}
				}
			}
		}
		add = -100
	}
}

gptl_honor_value = {
	value = 0
	if = {
		limit = {
			any_councillor = {
				has_trait = just
			}
		}
		add = 50
	}
	if = {
		limit = {
			any_councillor = {
				has_trait = arbitrary
			}
		}
		add = -50
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = just
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = arbitrary
			}
		}
		add = -150
	}


	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = just
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = arbitrary
		}
		add = -150
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = just
		}
		add = 400
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = arbitrary
		}
		add = -400
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = just
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = arbitrary
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = just
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = just
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = just
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = just
			}
		}
		add = 200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = arbitrary
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = arbitrary
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = arbitrary
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = arbitrary
			}
		}
		add = -200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_egalitarian
						has_cultural_tradition = tradition_esteemed_hospitality
						has_cultural_tradition = tradition_astute_diplomats
						has_cultural_tradition = tradition_female_only_inheritance
						has_cultural_tradition = tradition_equal_inheritance
						has_cultural_tradition = tradition_culture_blending
						has_cultural_tradition = tradition_religion_blending
						has_cultural_tradition = tradition_xenophilic
						has_cultural_tradition = tradition_pacifism
						has_cultural_tradition = tradition_welcoming
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_courtly
						has_cultural_tradition = tradition_legalistic
						has_cultural_tradition = tradition_hereditary_hierarchy
						has_cultural_tradition = tradition_wedding_ceremonies
						has_cultural_tradition = tradition_ruling_caste
						has_cultural_tradition = tradition_festivities
						has_cultural_tradition = tradition_culinary_art
						has_cultural_tradition = tradition_chivalry
						has_cultural_tradition = tradition_music_theory
						has_cultural_tradition = tradition_poetry
						has_cultural_tradition = tradition_life_is_just_a_joke
					}
				}
			}
		}
		add = -100
	}
}

gptl_vigilance_value = {
	value = 0
	if = {
		limit = {
			any_councillor = {
				has_trait = paranoid
			}
		}
		add = 50
	}
	if = {
		limit = {
			any_councillor = {
				has_trait = trusting
			}
		}
		add = -50
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = paranoid
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = trusting
			}
		}
		add = -150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = paranoid
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = trusting
		}
		add = -150
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = paranoid
		}
		add = 400
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = trusting
		}
		add = -400
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = paranoid
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = trusting
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = paranoid
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = paranoid
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = paranoid
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = paranoid
			}
		}
		add = 200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = trusting
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = trusting
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = trusting
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = trusting
			}
		}
		add = -200
	}
	if = {
		limit = {
			government_has_flag = government_has_treasury
		}
		add = 100
	}
	if = {
		limit = {
			OR = {
				government_has_flag = government_is_nomadic
				government_has_flag = government_is_tribal
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_courtly
						has_cultural_tradition = tradition_legalistic
						has_cultural_tradition = tradition_hereditary_hierarchy
						has_cultural_tradition = tradition_wedding_ceremonies
						has_cultural_tradition = tradition_ruling_caste
						has_cultural_tradition = tradition_festivities
						has_cultural_tradition = tradition_culinary_art
						has_cultural_tradition = tradition_chivalry
						has_cultural_tradition = tradition_music_theory
						has_cultural_tradition = tradition_poetry
						has_cultural_tradition = tradition_life_is_just_a_joke
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_communal
						has_cultural_tradition = tradition_tribe_unity
						has_cultural_tradition = tradition_collective_lands
						has_cultural_tradition = tradition_family_entrepreneurship
						has_cultural_tradition = tradition_staunch_traditionalists
						has_cultural_tradition = tradition_merciful_blindings
						has_cultural_tradition = tradition_sacred_hunts
						has_cultural_tradition = tradition_sacred_groves
						has_cultural_tradition = tradition_sacred_mountains
						has_cultural_tradition = tradition_charitable
					}
				}
			}
		}
		add = -100
	}
}

gptl_moral_value = {
	value = 0
	if = {
		limit = {
			any_councillor = {
				has_trait = chaste
			}
		}
		add = 50
	}
	if = {
		limit = {
			any_councillor = {
				has_trait = lustful
			}
		}
		add = -50
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = chaste
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = lustful
			}
		}
		add = -150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = chaste
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = lustful
		}
		add = -150
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = chaste
		}
		add = 400
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = lustful
		}
		add = -400
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = chaste
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = lustful
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = chaste
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = chaste
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = chaste
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = chaste
			}
		}
		add = 200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = lustful
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = lustful
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = lustful
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = lustful
			}
		}
		add = -200
	}

	if = {
		limit = {
			OR = {
				government_has_flag = government_is_nomadic
				government_has_flag = government_is_tribal
			}
		}
		add = -100
	}
	if = {
		limit = {
			NOR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic }
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_spiritual
						has_cultural_tradition = tradition_fervent_temple_builders
						has_cultural_tradition = tradition_monastic_communities
						has_cultural_tradition = tradition_warrior_monks
						has_cultural_tradition = tradition_language_scholars
						has_cultural_tradition = tradition_mystical_ancestors
						has_cultural_tradition = tradition_religious_patronage
						has_cultural_tradition = tradition_faith_bound
						has_cultural_tradition = tradition_vegetarianism
						has_cultural_tradition = tradition_storytellers
						has_cultural_tradition = tradition_mendicant_mystics
						has_cultural_tradition = tradition_philosopher_culture
						has_cultural_tradition = tradition_zealous_people
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_bellicose
						has_cultural_tradition = tradition_only_the_strong
						has_cultural_tradition = tradition_warriors_by_merit
						has_cultural_tradition = tradition_malleable_invaders
						has_cultural_tradition = tradition_quarrelsome
						has_cultural_tradition = tradition_swords_for_hire
						has_cultural_tradition = tradition_reverence_for_veterans
						has_cultural_tradition = tradition_battlefield_looters
						has_cultural_tradition = tradition_stand_and_fight
						has_cultural_tradition = tradition_spartan
						has_cultural_tradition = tradition_warrior_culture
						has_cultural_tradition = tradition_martial_admiration
						has_cultural_tradition = tradition_practiced_pirates
					}
				}
			}
		}
		add = -100
	}
}


gptl_urban_value = {
	value = 0
	if = {
		limit = {
			any_councillor = {
				has_trait = arrogant
			}
		}
		add = 50
	}
	if = {
		limit = {
			any_councillor = {
				has_trait = humble
			}
		}
		add = -50
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = arrogant
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = humble
			}
		}
		add = -150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = arrogant
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = humble
		}
		add = -150
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = arrogant
		}
		add = 400
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = humble
		}
		add = -400
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = arrogant
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = humble
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = arrogant
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = arrogant
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = arrogant
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = arrogant
			}
		}
		add = 200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = humble
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = humble
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = humble
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = humble
			}
		}
		add = -200
	}

	if = {
		limit = {
			OR = {
				government_has_flag = government_is_nomadic
				government_has_flag = government_is_tribal
			}
		}
		add = -100
	}
	if = {
		limit = {
			NOR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic }
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_bureaucratic
						has_cultural_tradition = tradition_republican_legacy
						has_cultural_tradition = tradition_roman_legacy
						has_cultural_tradition = tradition_parochialism
						has_cultural_tradition = tradition_city_keepers
						has_cultural_tradition = tradition_maritime_mercantilism
						has_cultural_tradition = tradition_hard_working
						has_cultural_tradition = tradition_eye_for_an_eye
						has_cultural_tradition = tradition_forbearing
						has_cultural_tradition = tradition_artisans
						has_cultural_tradition = tradition_noble_adoption
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_stoic
						has_cultural_tradition = tradition_metal_craftsmanship
						has_cultural_tradition = tradition_isolationist
						has_cultural_tradition = tradition_agrarian
						has_cultural_tradition = tradition_pastoralists
						has_cultural_tradition = tradition_hidden_cities
						has_cultural_tradition = tradition_castle_keepers
						has_cultural_tradition = tradition_stalwart_defenders
						has_cultural_tradition = tradition_loyal_soldiers
						has_cultural_tradition = tradition_equitable
						has_cultural_tradition = tradition_modest
					}
				}
			}
		}
		add = -100
	}
}

gptl_formality_value = {
	value = 0
	if = {
		limit = {
			any_councillor = {
				has_trait = deceitful
			}
		}
		add = 50
	}
	if = {
		limit = {
			any_councillor = {
				has_trait = honest
			}
		}
		add = -50
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = deceitful
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = honest
			}
		}
		add = -150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = deceitful
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = honest
		}
		add = -150
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = deceitful
		}
		add = 400
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = honest
		}
		add = -400
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = deceitful
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = honest
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = deceitful
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = deceitful
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = deceitful
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = deceitful
			}
		}
		add = 200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = honest
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = honest
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = honest
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = honest
			}
		}
		add = -200
	}

	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				faith = { has_doctrine_parameter = unreformed }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				NOT = { faith = { has_doctrine_parameter = unreformed } }
			}
		}
		add = 100
	}
	if = {
		limit = {
			government_has_flag = government_is_nomadic
		}
		add = -50
	}
	if = {
		limit = {
			government_has_flag = government_is_tribal
		}
		add = -100
	}
	if = {
		limit = {
			OR = {
				government_has_flag = government_is_theocracy
				government_has_flag = government_is_republic
			}
		}
		add = 50
	}
	if = {
		limit = {
			government_has_flag = government_has_treasury
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_courtly
						has_cultural_tradition = tradition_legalistic
						has_cultural_tradition = tradition_hereditary_hierarchy
						has_cultural_tradition = tradition_wedding_ceremonies
						has_cultural_tradition = tradition_ruling_caste
						has_cultural_tradition = tradition_festivities
						has_cultural_tradition = tradition_culinary_art
						has_cultural_tradition = tradition_chivalry
						has_cultural_tradition = tradition_music_theory
						has_cultural_tradition = tradition_poetry
						has_cultural_tradition = tradition_life_is_just_a_joke
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_bellicose
						has_cultural_tradition = tradition_only_the_strong
						has_cultural_tradition = tradition_warriors_by_merit
						has_cultural_tradition = tradition_malleable_invaders
						has_cultural_tradition = tradition_quarrelsome
						has_cultural_tradition = tradition_swords_for_hire
						has_cultural_tradition = tradition_reverence_for_veterans
						has_cultural_tradition = tradition_battlefield_looters
						has_cultural_tradition = tradition_stand_and_fight
						has_cultural_tradition = tradition_spartan
						has_cultural_tradition = tradition_warrior_culture
						has_cultural_tradition = tradition_martial_admiration
						has_cultural_tradition = tradition_practiced_pirates
					}
				}
			}
		}
		add = -100
	}
}

gptl_command_value = {
	value = 0
	if = {
		limit = {
			any_councillor = {
				has_trait = stubborn
			}
		}
		add = 50
	}
	if = {
		limit = {
			any_councillor = {
				has_trait = fickle
			}
		}
		add = -50
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = stubborn
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = fickle
			}
		}
		add = -150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = stubborn
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = fickle
		}
		add = -150
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = stubborn
		}
		add = 400
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = fickle
		}
		add = -400
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = stubborn
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = fickle
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = stubborn
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = stubborn
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = stubborn
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = stubborn
			}
		}
		add = 200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = fickle
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = fickle
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = fickle
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = fickle
			}
		}
		add = -200
	}

	if = {
		limit = {
			can_raid_trigger = no
		}
		add = 100
	}
	if = {
		limit = {
			can_raid_trigger = yes
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_bureaucratic
						has_cultural_tradition = tradition_republican_legacy
						has_cultural_tradition = tradition_roman_legacy
						has_cultural_tradition = tradition_parochialism
						has_cultural_tradition = tradition_city_keepers
						has_cultural_tradition = tradition_maritime_mercantilism
						has_cultural_tradition = tradition_hard_working
						has_cultural_tradition = tradition_eye_for_an_eye
						has_cultural_tradition = tradition_forbearing
						has_cultural_tradition = tradition_artisans
						has_cultural_tradition = tradition_noble_adoption
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_bellicose
						has_cultural_tradition = tradition_only_the_strong
						has_cultural_tradition = tradition_warriors_by_merit
						has_cultural_tradition = tradition_malleable_invaders
						has_cultural_tradition = tradition_quarrelsome
						has_cultural_tradition = tradition_swords_for_hire
						has_cultural_tradition = tradition_reverence_for_veterans
						has_cultural_tradition = tradition_battlefield_looters
						has_cultural_tradition = tradition_stand_and_fight
						has_cultural_tradition = tradition_spartan
						has_cultural_tradition = tradition_warrior_culture
						has_cultural_tradition = tradition_martial_admiration
						has_cultural_tradition = tradition_practiced_pirates
					}
				}
			}
		}
		add = -100
	}
}

gptl_festivity_value = {
	value = 0
	if = {
		limit = {
			any_councillor = {
				has_trait = gluttonous
			}
		}
		add = 50
	}
	if = {
		limit = {
			any_councillor = {
				has_trait = temperate
			}
		}
		add = -50
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = gluttonous
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = temperate
			}
		}
		add = -150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = gluttonous
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = temperate
		}
		add = -150
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = gluttonous
		}
		add = 400
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = temperate
		}
		add = -400
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = gluttonous
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = temperate
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = gluttonous
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = gluttonous
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = gluttonous
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = gluttonous
			}
		}
		add = 200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = temperate
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = temperate
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = temperate
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = temperate
			}
		}
		add = -200
	}

	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_communal
						has_cultural_tradition = tradition_tribe_unity
						has_cultural_tradition = tradition_collective_lands
						has_cultural_tradition = tradition_family_entrepreneurship
						has_cultural_tradition = tradition_staunch_traditionalists
						has_cultural_tradition = tradition_merciful_blindings
						has_cultural_tradition = tradition_sacred_hunts
						has_cultural_tradition = tradition_sacred_groves
						has_cultural_tradition = tradition_sacred_mountains
						has_cultural_tradition = tradition_charitable
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_stoic
						has_cultural_tradition = tradition_metal_craftsmanship
						has_cultural_tradition = tradition_isolationist
						has_cultural_tradition = tradition_agrarian
						has_cultural_tradition = tradition_pastoralists
						has_cultural_tradition = tradition_hidden_cities
						has_cultural_tradition = tradition_castle_keepers
						has_cultural_tradition = tradition_stalwart_defenders
						has_cultural_tradition = tradition_loyal_soldiers
						has_cultural_tradition = tradition_equitable
						has_cultural_tradition = tradition_modest
					}
				}
			}
		}
		add = -100
	}
}

gptl_women_value = {
	value = 0
	if = {
		limit = {
			any_councillor = {
				has_trait = eccentric
			}
		}
		add = 50
	}
	if = {
		limit = {
			any_councillor = {
				has_trait = sadistic
			}
		}
		add = -50
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = eccentric
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_vassal_or_below = {
				has_character_flag = gptl_player_persuasion
				has_trait = sadistic
			}
		}
		add = -150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = eccentric
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_character_flag = gptl_player_persuasion
				number_of_powerful_vassals < 4
			}
			has_trait = sadistic
		}
		add = -150
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = eccentric
		}
		add = 400
	}
	if = {
		limit = {
			is_ai = yes
			has_realm_law_flag = max_authority_level
			has_trait = sadistic
		}
		add = -400
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = eccentric
		}
		add = 150
	}
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_2
				has_realm_law = tribal_authority_2
				has_realm_law = imperial_bureaucracy_2
			}
			has_trait = sadistic
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = eccentric
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = eccentric
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = eccentric
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = 150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = eccentric
			}
		}
		add = 200
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = sadistic
				OR = { has_trait = content has_trait = lazy }
				NOR = { has_trait = diligent has_trait = ambitious }
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = sadistic
				OR = {
					AND = {
						NOR = { has_trait = content has_trait = lazy }
						NOR = { has_trait = diligent has_trait = ambitious }
					}
					AND = {
						OR = { has_trait = content has_trait = lazy }
						OR = { has_trait = diligent has_trait = ambitious }
					}
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent1
				has_trait = sadistic
				OR = { has_trait = diligent has_trait = ambitious }
				NOR = { has_trait = content has_trait = lazy }
			}
		}
		add = -150
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent2
				has_trait = sadistic
			}
		}
		add = -200
	}

	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				NOR = {
					culture = { has_cultural_tradition = tradition_polygamous }
					culture = { has_cultural_tradition = tradition_concubines }
					faith = { has_doctrine = doctrine_polygamy }
					faith = { has_doctrine = doctrine_concubines }
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				OR = {
					culture = { has_cultural_tradition = tradition_polygamous }
					culture = { has_cultural_tradition = tradition_concubines }
					faith = { has_doctrine = doctrine_polygamy }
					faith = { has_doctrine = doctrine_concubines }
				}
			}
		}
		add = -100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_egalitarian
						has_cultural_tradition = tradition_esteemed_hospitality
						has_cultural_tradition = tradition_astute_diplomats
						has_cultural_tradition = tradition_female_only_inheritance
						has_cultural_tradition = tradition_equal_inheritance
						has_cultural_tradition = tradition_culture_blending
						has_cultural_tradition = tradition_religion_blending
						has_cultural_tradition = tradition_xenophilic
						has_cultural_tradition = tradition_pacifism
						has_cultural_tradition = tradition_welcoming
					}
				}
			}
		}
		add = 100
	}
	if = {
		limit = {
			any_powerful_vassal = {
				percent >= @pvpercent3
				culture = {
					OR = {
						has_cultural_pillar = ethos_spiritual
						has_cultural_tradition = tradition_fervent_temple_builders
						has_cultural_tradition = tradition_monastic_communities
						has_cultural_tradition = tradition_warrior_monks
						has_cultural_tradition = tradition_language_scholars
						has_cultural_tradition = tradition_mystical_ancestors
						has_cultural_tradition = tradition_religious_patronage
						has_cultural_tradition = tradition_faith_bound
						has_cultural_tradition = tradition_vegetarianism
						has_cultural_tradition = tradition_storytellers
						has_cultural_tradition = tradition_mendicant_mystics
						has_cultural_tradition = tradition_philosopher_culture
						has_cultural_tradition = tradition_zealous_people
					}
				}
			}
		}
		add = -100
	}
}