##################################################
# #Mysterious Stranger Templates

#MS Godi
fp1_ms_godi_character = {
	#General
	age = { 30 60 }
	faith = root.faith
	culture = root.culture
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_learning_1 = {
			weight = { base = 30 }
		}
		education_learning_2 = {
			weight = { base = 20 }
		}
		education_learning_3 = {
			weight = { base = 10 }
		}
		education_intrigue_1 = {
			weight = { base = 30 }
		}
		education_intrigue_2 = {
			weight = { base = 20 }
		}
		education_intrigue_3 = {
			weight = { base = 10 }
		}
	}
	#Sadly, we can't gouge out one of the godi's eyes, or it gives the disguise game away.
	#Personality
	random_traits_list = {
		count = 3
		diligent = {}
		arrogant = {}
		deceitful = {}
		ambitious = {}
		content = {}
		zealous = {}
		paranoid = {}
		callous = {}
		fickle = {}
	}
	#Misc
	random_traits = no
	gender_female_chance = root_soldier_female_chance
	#Skills
	diplomacy = 0
	martial = 0
	stewardship = 0
	intrigue = 0
	learning = 0
	prowess = 0
}

#MS Reformed Missionary
fp1_ms_reformed_missionary_character = {
	#General
	age = { 30 60 }
	faith = root.faith
	culture = root.culture
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_learning_1 = {
			weight = { base = 40 }
		}
		education_learning_2 = {
			weight = { base = 30 }
		}
		education_learning_3 = {
			weight = { base = 20 }
		}
		education_learning_4 = {
			weight = { base = 10 }
		}
	}
	#Personality
	random_traits_list = {
		count = 3
		diligent = {}
		arrogant = {}
		deceitful = {}
		brave = {}
		ambitious = {}
		content = {}
		zealous = {}
		trusting = {}
		compassionate = {}
		stubborn = {}
	}
	#Misc
	random_traits = no
	gender_female_chance = root_soldier_female_chance
	#Skills
	diplomacy = 0
	martial = 0
	stewardship = 0
	intrigue = 0
	learning = 0
	prowess = 0
}

#MS Nithing
fp1_ms_nithing_character = {
	#General
	age = { 20 50 }
	faith = root.faith
	culture = root.culture
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_martial_1 = {
			weight = { base = 100 }
		}
		education_intrigue_1 = {
			weight = { base = 100 }
		}
	}
	#Personality
	random_traits_list = {
		count = 3
		lazy = {}
		wrathful = {}
		impatient = {}
		arrogant = {}
		deceitful = {}
		craven = {}
		paranoid = {}
		callous = {}
		sadistic = {}
	}
	#Misc
	random_traits = no
	gender_female_chance = root_soldier_female_chance
	#Skills
	diplomacy = 0
	martial = 0
	stewardship = 0
	intrigue = 0
	learning = 0
	prowess = 0
}

#MS Warrior
fp1_ms_warrior_character = {
	#General
	age = { 20 50 }
	faith = root.faith
	culture = root.culture
	dynasty = none
	#Education
	trait = education_martial_1
	#Personality
	random_traits_list = {
		count = 3
		lazy = {}
		wrathful = {}
		impatient = {}
		arrogant = {}
		deceitful = {}
		brave = {}
		content = {}
		just = {}
		trusting = {}
		compassionate = {}
	}
	#Misc
	random_traits = no
	gender_female_chance = root_soldier_female_chance
	#Skills
	diplomacy = 0
	martial = 0
	stewardship = 0
	intrigue = 0
	learning = 0
	prowess = 0
}

#MS Vagrant
fp1_ms_vagrant_character = {
	#General
	age = { 20 60 }
	faith = root.faith
	culture = root.culture
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_diplomacy_1 = {
			weight = { base = 100 }
		}
		education_martial_1 = {
			weight = { base = 100 }
		}
		education_stewardship_1 = {
			weight = { base = 100 }
		}
		education_intrigue_1 = {
			weight = { base = 100 }
		}
		education_learning_1 = {
			weight = { base = 100 }
		}
	}
	#Personality
	random_traits_list = {
		count = 3
		lazy = {}
		diligent = {}
		wrathful = {}
		impatient = {}
		arrogant = {}
		deceitful = {}
		craven = {}
		brave = {}
		ambitious = {}
		content = {}
		just = {}
		zealous = {}
		paranoid = {}
		trusting = {}
		compassionate = {}
		callous = {}
		sadistic = {}
		stubborn = {}
		fickle = {}
	}
	#Misc
	random_traits = no
	gender_female_chance = root_soldier_female_chance
	#Skills
	diplomacy = 0
	martial = 0
	stewardship = 0
	intrigue = 0
	learning = 0
	prowess = 0
}

##################################################
# #Spare Adventurer Templates

#Western Created Adventurers
fp1_western_warrior_character = {
	#General
	age = { 30 60 }
	faith = scope:scandinavian_county.faith
	culture = scope:scandinavian_county.culture
	#Education
	random_traits_list = {
		education_martial_2 = {
			weight = { base = 30 }
		}
		education_martial_3 = {
			weight = { base = 20 }
		}
		education_martial_4 = {
			weight = { base = 10}
		}
	}
	#Personality
	random_traits_list = {
		count = 3
		wrathful = {}
		impatient = {}
		arrogant = {}
		brave = {}
		ambitious = {}
		diligent = {}
		gregarious = {}
		stubborn = {}
		fickle = {}
		vengeful = {}
	}
	#Misc
	trait = adventurer
	random_traits = yes
	gender_female_chance = {
		if = {
			limit = {
				scope:scandinavian_county.faith = { has_doctrine = doctrine_gender_male_dominated }
			}
			add = 0
		}
		else_if = {
			limit = {
				scope:scandinavian_county.faith = { has_doctrine = doctrine_gender_female_dominated }
			}
			add = 100
		}
		else = { add = 50 }
	}
	#Skills
	diplomacy = { min_template_low_skill max_template_decent_skill }
	martial = { min_template_decent_skill max_template_high_skill }
	stewardship = { min_template_low_skill max_template_decent_skill }
	intrigue = { min_template_low_skill max_template_decent_skill }
	learning = { min_template_low_skill max_template_decent_skill }
	prowess = { min_template_decent_skill max_template_high_skill }
}

#Eastern Created Adventurers
fp1_eastern_warrior_character = {
	#General
	age = { 30 60 }
	faith = scope:scandinavian_county.faith
	culture = scope:scandinavian_county.culture
	#Education
	random_traits_list = {
		education_martial_2 = {
			weight = { base = 30 }
		}
		education_martial_3 = {
			weight = { base = 20 }
		}
		education_martial_4 = {
			weight = { base = 10}
		}
	}
	#Personality
	random_traits_list = {
		count = 3
		wrathful = {}
		impatient = {}
		arrogant = {}
		brave = {}
		ambitious = {}
		diligent = {}
		gregarious = {}
		stubborn = {}
		fickle = {}
		vengeful = {}
	}
	#Misc
	trait = adventurer
	random_traits = yes
	gender_female_chance = {
		if = {
			limit = {
				scope:scandinavian_county.faith = { has_doctrine = doctrine_gender_male_dominated }
			}
			add = 0
		}
		else_if = {
			limit = {
				scope:scandinavian_county.faith = { has_doctrine = doctrine_gender_female_dominated }
			}
			add = 100
		}
		else = { add = 50 }
	}
	#Skills
	diplomacy = { min_template_low_skill max_template_decent_skill }
	martial = { min_template_decent_skill max_template_high_skill }
	stewardship = { min_template_low_skill max_template_decent_skill }
	intrigue = { min_template_low_skill max_template_decent_skill }
	learning = { min_template_low_skill max_template_decent_skill }
	prowess = { min_template_decent_skill max_template_high_skill }
}

##################################################
# #Jomsviking Templates

# Jomsviking Bigwig
fp1_jomsviking_bigwig = {
	#General
	age = { 30 60 }
	faith = faith:norse_pagan
	culture = culture:norse
	#Education
	random_traits_list = {
		education_martial_2 = {
			weight = { base = 30 }
		}
		education_martial_3 = {
			weight = { base = 20 }
		}
		education_martial_4 = {
			weight = { base = 10}
		}
	}
	#Personality
	random_traits_list = {
		count = 3
		wrathful = {}
		impatient = {}
		arrogant = {}
		brave = {}
		ambitious = {}
		diligent = {}
		gregarious = {}
		stubborn = {}
		fickle = {}
		vengeful = {}
	}
	#Misc
	random_traits_list = {
		berserker = {}
		adventurer = {}
		viking = {}
		varangian = {}
		strong = {}
		shrewd = {}
		tourney_participant = {}
	}
	random_traits = yes
	gender_female_chance = {
		if = {
			limit = {
				faith:norse_pagan = { has_doctrine = doctrine_gender_male_dominated }
			}
			add = 0
		}
		else_if = {
			limit = {
				faith:norse_pagan = { has_doctrine = doctrine_gender_female_dominated }
			}
			add = 100
		}
		else = { add = 50 }
	}
	#Skills
	diplomacy = { min_template_low_skill max_template_decent_skill }
	martial = { min_template_decent_skill max_template_high_skill }
	stewardship = { min_template_low_skill max_template_decent_skill }
	intrigue = { min_template_low_skill max_template_decent_skill }
	learning = { min_template_low_skill max_template_decent_skill }
	prowess = { min_template_decent_skill max_template_high_skill }
	after_creation = {
		add_random_tourney_participant_level_effect = yes
	}
}

# Jomsviking Retainer, Martial
fp1_jomsviking_retainer_martial = {
	#General
	age = { 25 45 }
	faith = faith:norse_pagan
	culture = root.culture
	#Education
	random_traits_list = {
		education_martial_2 = {
			weight = { base = 30 }
		}
		education_martial_3 = {
			weight = { base = 20 }
		}
	}
	#Personality
	trait = zealous
	random_traits_list = {
		count = 2
		wrathful = {}
		impatient = {}
		arrogant = {}
		brave = {}
		ambitious = {}
		diligent = {}
		gregarious = {}
		stubborn = {}
		fickle = {}
		vengeful = {}
	}
	#Misc
	trait = order_member
	trait = viking
	random_traits = yes
	gender_female_chance = {
		if = {
			limit = {
				faith:norse_pagan = { has_doctrine = doctrine_gender_male_dominated }
			}
			add = 0
		}
		else_if = {
			limit = {
				faith:norse_pagan = { has_doctrine = doctrine_gender_female_dominated }
			}
			add = 100
		}
		else = { add = 50 }
	}
	#Skills
	diplomacy = { min_template_low_skill max_template_average_skill }
	martial = { min_template_decent_skill max_template_high_skill }
	stewardship = { min_template_low_skill max_template_average_skill }
	intrigue = { min_template_low_skill max_template_average_skill }
	learning = { min_template_low_skill max_template_average_skill }
	prowess = { min_template_low_skill max_template_average_skill }
}

# Jomsviking Retainer, Prowess
fp1_jomsviking_retainer_prowess = {
	#General
	age = { 25 45 }
	faith = faith:norse_pagan
	culture = root.culture
	#Education
	random_traits_list = {
		education_martial_2 = {
			weight = { base = 30 }
		}
		education_martial_3 = {
			weight = { base = 20 }
		}
	}
	#Personality
	trait = zealous
	random_traits_list = {
		count = 2
		wrathful = {}
		impatient = {}
		arrogant = {}
		brave = {}
		ambitious = {}
		diligent = {}
		gregarious = {}
		stubborn = {}
		fickle = {}
		vengeful = {}
	}
	#Misc
	trait = order_member
	trait = viking
	random_traits = yes
	gender_female_chance = {
		if = {
			limit = {
				faith:norse_pagan = { has_doctrine = doctrine_gender_male_dominated }
			}
			add = 0
		}
		else_if = {
			limit = {
				faith:norse_pagan = { has_doctrine = doctrine_gender_female_dominated }
			}
			add = 100
		}
		else = { add = 50 }
	}
	#Skills
	diplomacy = { min_template_low_skill max_template_average_skill }
	martial = { min_template_low_skill max_template_average_skill }
	stewardship = { min_template_low_skill max_template_average_skill }
	intrigue = { min_template_low_skill max_template_average_skill }
	learning = { min_template_low_skill max_template_average_skill }
	prowess = { min_template_decent_skill max_template_high_skill }
	after_creation = {
		if = {
			limit = { has_dlc_feature = tours_and_tournaments }
			add_trait = tourney_participant
			add_random_tourney_participant_level_effect = yes
		}
	}
}

##################################################
# #Misc Yearly Templates

#Deceitful Warrior
fp1_deceitful_warrior_character = {
	#General
	age = { 20 50 }
	faith = root.faith
	culture = root.culture
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_martial_1 = {
			weight = { base = 20 }
		}
		education_martial_2 = {
			weight = { base = 30 }
		}
		education_martial_3 = {
			weight = { base = 30 }
		}
		education_martial_4 = {
			weight = { base = 20 }
		}
	}
	#Personality
	trait = deceitful
	random_traits_list = {
		count = 2
		lazy = {}
		wrathful = {}
		impatient = {}
		arrogant = {}
		brave = {}
		content = {}
		just = {}
		trusting = {}
		gregarious = {}
	}
	#Misc
	random_traits = no
	gender_female_chance = root_soldier_female_chance
	#Skills
	diplomacy = { min_template_low_skill max_template_decent_skill }
	martial = { min_template_average_skill min_template_high_skill }
	stewardship = { min_template_low_skill max_template_decent_skill }
	intrigue = { min_template_average_skill min_template_high_skill }
	learning = { min_template_low_skill max_template_decent_skill }
	prowess = { min_template_average_skill min_template_high_skill }
}

#Deceitful Explorer
fp1_deceitful_explorer_character = {
	#General
	age = { 60 80 }
	faith = root.faith
	culture = root.culture
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_martial_1 = {
			weight = { base = 20 }
		}
		education_martial_2 = {
			weight = { base = 30 }
		}
		education_martial_3 = {
			weight = { base = 30 }
		}
		education_martial_4 = {
			weight = { base = 20 }
		}
	}
	#Personality
	trait = deceitful
	random_traits_list = {
		count = 2
		fickle = {}
		arbitrary = {}
		lazy = {}
		impatient = {}
		arrogant = {}
		craven = {}
		content = {}
		gregarious = {}
	}
	#Misc
	random_traits = no
	gender_female_chance = root_soldier_female_chance
	#Skills
	diplomacy = { min_template_low_skill max_template_decent_skill }
	martial = { min_template_low_skill max_template_decent_skill }
	stewardship = { min_template_low_skill max_template_decent_skill }
	intrigue = { min_template_average_skill min_template_high_skill }
	learning = { min_template_low_skill max_template_decent_skill }
	prowess = { min_template_low_skill max_template_decent_skill }
}

#Truthful Explorer
fp1_truthful_explorer_character = {
	#General
	age = { 60 80 }
	faith = root.faith
	culture = root.culture
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_martial_1 = {
			weight = { base = 20 }
		}
		education_martial_2 = {
			weight = { base = 30 }
		}
		education_martial_3 = {
			weight = { base = 30 }
		}
		education_martial_4 = {
			weight = { base = 20 }
		}
	}
	#Personality
	trait = honest
	random_traits_list = {
		count = 2
		stubborn = {}
		just = {}
		diligent = {}
		patient = {}
		arrogant = {}
		brave = {}
		ambitious = {}
		gregarious = {}
	}
	#Misc
	random_traits = no
	gender_female_chance = root_soldier_female_chance
	#Skills
	diplomacy = { min_template_low_skill max_template_decent_skill }
	martial = { min_template_average_skill min_template_high_skill }
	stewardship = { min_template_low_skill max_template_decent_skill }
	intrigue = { min_template_low_skill max_template_decent_skill }
	learning = { min_template_low_skill max_template_decent_skill }
	prowess = { min_template_average_skill min_template_high_skill }
}

#Islamic Explorer
fp1_islamic_explorer_character = {
	#General
	age = { 30 60 }
	faith = scope:sponsoring_liege.faith
	culture = scope:sponsoring_liege.culture
	dynasty = generate
	#Education
	random_traits_list = {
		count = 1
		education_learning_1 = {
			weight = { base = 20 }
		}
		education_learning_2 = {
			weight = { base = 30 }
		}
		education_learning_3 = {
			weight = { base = 30 }
		}
		education_learning_4 = {
			weight = { base = 20 }
		}
	}
	#Personality
	trait = zealous
	random_traits_list = {
		count = 2
		honest = {}
		stubborn = {}
		just = {}
		diligent = {}
		patient = {}
		arrogant = {}
		brave = {}
		ambitious = {}
		gregarious = {}
	}
	#Profession
	random_traits_list = {
		count = 1
		diplomat = {}
		scholar = {}
		theologian = {}
		lifestyle_mystic = {}
		lifestyle_physician = {}
	}
	#Misc
	random_traits = no
	gender_female_chance = {
		if = {
			limit = {
				scope:sponsoring_liege.faith = { has_doctrine = doctrine_gender_male_dominated }
			}
			add = 0
		}
		else_if = {
			limit = {
				scope:sponsoring_liege.faith = { has_doctrine = doctrine_gender_female_dominated }
			}
			add = 100
		}
		else = {
			add = 50
		}
	}
	#Skills
	diplomacy = { max_template_average_skill max_template_high_skill }
	martial = { min_template_low_skill max_template_decent_skill }
	stewardship = { min_template_low_skill max_template_decent_skill }
	intrigue = { min_template_low_skill max_template_decent_skill }
	learning = { max_template_average_skill max_template_high_skill }
	prowess = { min_template_low_skill max_template_decent_skill }
	after_creation = {
		if = {
			limit = { has_trait = lifestyle_mystic }
			add_trait_xp = {
				trait = lifestyle_mystic
				value = {
					integer_range = {
						min = medium_lifestyle_random_xp_low
						max = medium_lifestyle_random_xp_high
					}
				}
			}
		}
		if = {
			limit = { has_trait = lifestyle_physician }
			add_trait_xp = {
				trait = lifestyle_physician
				value = {
					integer_range = {
						min = medium_lifestyle_random_xp_low
						max = medium_lifestyle_random_xp_high
					}
				}
			}
		}
	}
}

#Capital County Nithing
fp1_capital_county_nithing_character = {
	#General
	age = { 30 60 }
	faith = root.capital_county.faith
	culture = root.capital_county.culture
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_martial_1 = {
			weight = { base = 100 }
		}
		education_intrigue_1 = {
			weight = { base = 100 }
		}
	}
	#Personality
	random_traits_list = {
		count = 3
		lazy = {}
		wrathful = {}
		impatient = {}
		arrogant = {}
		deceitful = {}
		craven = {}
		paranoid = {}
		callous = {}
		sadistic = {}
	}
	#Misc
	random_traits = no
	gender_female_chance = {
		if = {
			limit = {
				root.capital_county.faith = { has_doctrine = doctrine_gender_male_dominated }
			}
			add = 0
		}
		else_if = {
			limit = {
				root.capital_county.faith = { has_doctrine = doctrine_gender_female_dominated }
			}
			add = 100
		}
		else = {
			add = 50
		}
	}
	#Skills
	diplomacy = { min_template_low_skill max_template_low_skill }
	martial = { min_template_low_skill max_template_low_skill }
	stewardship = { min_template_low_skill max_template_low_skill }
	intrigue = { max_template_average_skill max_template_high_skill }
	learning = { min_template_low_skill max_template_low_skill }
	prowess = { min_template_low_skill max_template_low_skill }
}

#Capital County Orphan
fp1_capital_county_orphan_character = {
	#General
	age = { 6 10 }
	faith = root.capital_county.faith
	culture = root.capital_county.culture
	dynasty = none
	random_traits = yes
	#Personality
	random_traits_list = {
		count = 1
		rowdy = {}
		charming = {}
		curious = {}
		pensive = {}
		bossy = {}
	}
	#Misc
	random_traits = no
	gender_female_chance = 50
	#Skills
	diplomacy = { min_template_low_skill max_template_low_skill }
	martial = { min_template_low_skill max_template_low_skill }
	stewardship = { min_template_low_skill max_template_low_skill }
	intrigue = { min_template_average_skill max_template_average_skill }
	learning = { min_template_low_skill max_template_low_skill }
	prowess = { min_template_low_skill max_template_low_skill }
}

##################################################
# #Raid-Trade Templates

fp1_trade_partner_merchant = {
	#General
	age = { 20 50 }
	faith = root.var:fp1_prime_trade_deal.faith
	culture = root.var:fp1_prime_trade_deal.capital_county.culture
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_stewardship_1 = {
			weight = { base = 20 }
		}
		education_stewardship_2 = {
			weight = { base = 30 }
		}
		education_stewardship_3 = {
			weight = { base = 30 }
		}
		education_stewardship_4 = {
			weight = { base = 20 }
		}
	}
	#Personality
	random_traits_list = {
		count = 3
		greedy = {}
		diligent = {}
		calm = {}
		patient = {}
		honest = {}
		brave = {}
		gregarious = {}
		ambitious = {}
		just = {}
		trusting = {}
	}
	#Misc
	random_traits = no
	gender_female_chance = root_soldier_female_chance
	#Skills
	diplomacy = { min_template_low_skill max_template_average_skill }
	martial = { min_template_low_skill min_template_average_skill }
	stewardship = { min_template_decent_skill max_template_high_skill }
	intrigue = { min_template_low_skill min_template_average_skill }
	learning = { min_template_low_skill max_template_average_skill }
	prowess = { min_template_low_skill min_template_average_skill }
}

fp1_trade_partner_priest = {
	#General
	age = { 20 50 }
	faith = root.var:fp1_prime_trade_deal.faith
	culture = root.var:fp1_prime_trade_deal.capital_county.culture
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_learning_1 = {
			weight = { base = 20 }
		}
		education_learning_2 = {
			weight = { base = 30 }
		}
		education_learning_3 = {
			weight = { base = 30 }
		}
		education_learning_4 = {
			weight = { base = 20 }
		}
	}
	#Personality
	## Always zealous.
	trait = zealous
	## And then two traits their faith considers virtuous, exempting any that might stop them taking their trip overseas.
	random_traits_list = {
		count = 2
		lustful = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = lustful }
			}
		}
		chaste = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = chaste }
			}
		}
		gluttonous = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = gluttonous }
			}
		}
		temperate = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = temperate }
			}
		}
		greedy = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = greedy }
			}
		}
		generous = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = generous }
			}
		}
		wrathful = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = wrathful }
			}
		}
		calm = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = calm }
			}
		}
		patient = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = patient }
			}
		}
		impatient = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = impatient }
			}
		}
		arrogant = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = arrogant }
			}
		}
		humble = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = humble }
			}
		}
		honest = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = honest }
			}
		}
		brave = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = brave }
			}
		}
		ambitious = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = ambitious }
			}
		}
		just = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = just }
			}
		}
		trusting = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = trusting }
			}
		}
		compassionate = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = compassionate }
			}
		}
		callous = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = callous }
			}
		}
		sadistic = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = sadistic }
			}
		}
		stubborn = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = stubborn }
			}
		}
		vengeful = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = vengeful }
			}
		}
		forgiving = {
			trigger = {
				root.var:fp1_prime_trade_deal.faith = { trait_is_virtue = forgiving }
			}
		}
	}
	#Misc
	random_traits = no
	gender_female_chance = root_soldier_female_chance
	trait = devoted
	#Skills
	## Skilled in diplomacy and learning so that they're still useful whatever your religious feelings.
	diplomacy = { min_template_decent_skill max_template_high_skill }
	martial = { min_template_low_skill min_template_average_skill }
	stewardship = { min_template_low_skill max_template_average_skill }
	intrigue = { min_template_low_skill min_template_average_skill }
	learning = { min_template_decent_skill max_template_high_skill }
	prowess = { min_template_low_skill min_template_average_skill }
}

fp1_trade_partner_spy = {
	#General
	age = { 20 50 }
	faith = root.var:fp1_prime_trade_deal.faith
	culture = root.var:fp1_prime_trade_deal.capital_county.culture
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_intrigue_1 = {
			weight = { base = 20 }
		}
		education_intrigue_2 = {
			weight = { base = 30 }
		}
		education_intrigue_3 = {
			weight = { base = 30 }
		}
		education_intrigue_4 = {
			weight = { base = 20 }
		}
	}
	#Personality
	trait = deceitful
	random_traits_list = {
		count = 2
		diligent = {}
		calm = {}
		patient = {}
		arrogant = {}
		brave = {}
		gregarious = {}
		shy = {}
		ambitious = {}
		arbitrary = {}
		cynical = {}
		paranoid = {}
		callous = {}
		stubborn = {}
	}
	#Misc
	random_traits = no
	gender_female_chance = root_soldier_female_chance
	#Skills
	diplomacy = { min_template_low_skill max_template_average_skill }
	martial = { min_template_low_skill min_template_average_skill }
	stewardship = { min_template_low_skill min_template_average_skill }
	intrigue = { min_template_decent_skill max_template_high_skill }
	learning = { min_template_low_skill max_template_average_skill }
	prowess = { min_template_low_skill min_template_average_skill }
}

fp1_trade_partner_warrior = {
	#General
	age = { 20 50 }
	faith = scope:raider.faith
	culture = scope:raider.capital_province.culture
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_martial_1 = {
			weight = { base = 20 }
		}
		education_martial_2 = {
			weight = { base = 30 }
		}
		education_martial_3 = {
			weight = { base = 30 }
		}
		education_martial_4 = {
			weight = { base = 20 }
		}
	}
	#Personality
	trait = ambitious
	random_traits_list = {
		count = 2
		gluttonous = {}
		greedy = {}
		diligent = {}
		wrathful = {}
		impatient = {}
		arrogant = {}
		honest = {}
		brave = {}
		gregarious = {}
		zealous = {}
		trusting = {}
		callous = {}
		fickle = {}
		vengeful = {}
	}
	#Misc
	random_traits = no
	gender_female_chance = root_soldier_female_chance
	trait = viking
	#Skills
	diplomacy = { min_template_low_skill max_template_average_skill }
	martial = { min_template_low_skill min_template_average_skill }
	stewardship = { min_template_low_skill min_template_average_skill }
	intrigue = { min_template_low_skill min_template_average_skill }
	learning = { min_template_low_skill max_template_average_skill }
	prowess = { min_template_decent_skill max_template_high_skill }
}

##################################################
# #Innovation Templates

# Local Warlords
old_country_local_warlord_template = {
	age = { 20 40 }
	random_traits = yes
	culture = scope:current_county.title_province.culture
	faith = scope:current_county.title_province.faith
	gender_female_chance = {
		if = {
			limit = {
				scope:current_county.title_province.faith = { has_doctrine = doctrine_gender_male_dominated }
			}
			add = 0
		}
		else_if = {
			limit = {
				scope:current_county.title_province.faith = { has_doctrine = doctrine_gender_female_dominated }
			}
			add = 100
		}
		else = {
			add = 50
		}
	}
	martial = {
		min_template_decent_skill
		max_template_decent_skill
	}
}
