
tax_collector_character = {
	age = { 30 65 }
	gender_female_chance = root_faith_dominant_gender_female_chance
	random_traits = yes
	culture = scope:county.culture
	faith = scope:county.faith
	stewardship = {
		min_template_decent_skill
		max_template_decent_skill
	}
}

administrator_character = {
	age = { 20 50 }
	dynasty = none
	random_traits_list = {
		count = 1
		education_martial_1 = {
			weight = { base = 10 }
		}
		education_martial_2 = {
			weight = {
				base = 15
				modifier = {
					culture = {
						OR = {
							has_cultural_pillar = ethos_bellicose
							has_cultural_tradition = tradition_reverence_for_veterans
						}
					}
					add = 10
				}
			}
		}
		education_martial_3 = {
			weight = {
				base = 10
				modifier = {
					culture = {
						OR = {
							has_cultural_pillar = ethos_bellicose
							has_cultural_tradition = tradition_reverence_for_veterans
						}
					}
					add = 15
				}
			}
		}
		education_martial_4 = {
			weight = {
				base = 0
				modifier = {
					culture = {
						OR = {
							has_cultural_pillar = ethos_bellicose
							has_cultural_tradition = tradition_reverence_for_veterans
						}
					}
					add = 10
				}
			}
		}
		education_stewardship_2 = {
			weight = { base = 15 }
		}
		education_stewardship_3 = {
			weight = { base = 10 }
		}
		education_stewardship_4 = {
			weight = { base = 10 }
		}
		education_learning_2 = {
			weight = {
				base = 15
				modifier = {
					culture = {
						OR = {
							has_cultural_tradition = tradition_fp3_beacon_of_learning
							has_cultural_tradition = tradition_philosopher_culture
						}
					}
					add = 20
				}
			}
		}
		education_learning_3 = {
			weight = {
				base = 10
				modifier = {
					culture = {
						OR = {
							has_cultural_tradition = tradition_fp3_beacon_of_learning
							has_cultural_tradition = tradition_philosopher_culture
						}
					}
					add = 20
				}
			}
		}
		education_learning_4 = {
			weight = {
				base = 10
				modifier = {
					culture = {
						OR = {
							has_cultural_tradition = tradition_fp3_beacon_of_learning
							has_cultural_tradition = tradition_philosopher_culture
						}
					}
					add = 20
				}
			}
		}
	}
	random_traits = yes
	
	martial = { min_template_average_skill max_template_decent_skill }
	stewardship = { min_template_average_skill max_template_decent_skill }
	learning = { min_template_average_skill max_template_decent_skill }
	
	after_creation = {
		# Chance to get a suitable lifestyle trait depending on education
		if = {
			limit = { has_trait = education_martial }
			random = {
				chance = 10
				modifier = {
					culture = {
						OR = {
							has_cultural_tradition = tradition_fp3_beacon_of_learning
							has_cultural_tradition = tradition_philosopher_culture
						}
					}
					add = 15
				}
				
				add_trait = overseer
			}
		}
		if = {
			limit = { has_trait = education_stewardship }
			random = {
				chance = 10
				
				add_trait = administrator
			}
			random = {
				chance = 10
				
				add_trait = avaricious
			}
		}
		if = {
			limit = { has_trait = education_learning }
			random = {
				chance = 10
				modifier = {
					culture = {
						OR = {
							has_cultural_tradition = tradition_fp3_beacon_of_learning
							has_cultural_tradition = tradition_philosopher_culture
						}
					}
					add = 15
				}
				
				add_trait = scholar
			}
		}
	}
}

estate_owner_character = {
	age = { 20 40 }
	trait = deceitful
	random_traits_list = {
		count = 1
		education_stewardship_3 = {}
		education_stewardship_4 = {}
	}
	random_traits = yes
	culture = root.capital_province.culture
	faith = root.capital_province.faith
	gender_female_chance = {
		if = {
			limit = { root.capital_province.faith = { has_doctrine = doctrine_gender_male_dominated } }
			add = 0
		}
		else_if = {
			limit = { root.capital_province.faith = { has_doctrine = doctrine_gender_female_dominated } }
			add = 100
		}
		else = {
			add = 50
		}
	}
	stewardship = {
		min_template_decent_skill
		max_template_decent_skill
	}
}

herald_character = {
	age = { 30 50 }
	faith = root.faith
	culture = root.culture
	gender_female_chance = root_faith_dominant_gender_female_chance

	# Traits
	random_traits_list = {
		count = 1
		education_diplomacy_1 = {}
		education_diplomacy_2 = {}
	}
	random_traits = yes
	
	# Skills
	diplomacy = {
		min_template_decent_skill
		max_template_decent_skill
	}
}
