
genghis_khan_character_template = { # (history database char id 125501)
	age = 36 # Temujin's age around 1198
	gender = male
	dynasty_house = house:house_borjigin
	martial = 15
	diplomacy = 12
	intrigue = 9
	stewardship = 12
	prowess = 20
	faith = faith:tengri_pagan
	culture = culture:mongol
	trait = ambitious
	trait = diligent
	trait = vengeful
	trait = lifestyle_hunter
	trait = education_martial_5
	trait = flexible_leader
	trait = open_terrain_expert
	trait = shrewd
	random_traits = no
	after_creation = {
		copy_inheritable_appearance_from = character:dynamic_mongol_1
		
		if = {
			limit = { has_dlc_feature = tours_and_tournaments }
			add_trait = tourney_participant
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = lifestyle_hunter
				TRACK = hunter
				LEVEL_1 = yes
				LEVEL_3 = no
			}
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = tourney_participant
				TRACK = horse
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = tourney_participant
				TRACK = bow
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}
	}
}

borte_character_template = { # (history database char id 172004)
	age = 37
	gender = female
	dynasty_house = house:house_onggirat
	faith = faith:tengri_pagan
	culture = culture:mongol
	trait = calm
	trait = callous
	trait = gregarious
	trait = education_martial_3
	martial = {
		min_template_high_skill
		max_template_high_skill
	}
	prowess = 15
	diplomacy = 9
	intrigue = 12
	stewardship = 10
	random_traits = no
	after_creation = {
		copy_inheritable_appearance_from = character:dynamic_mongol_2
	}
}

jochi_character_template = {  # (history database char id 125502)
	age = 17
	gender = male
	dynasty_house = house:house_borjigin
	faith = faith:tengri_pagan
	culture = culture:mongol
	trait = calm
	trait = callous
	trait = vengeful
	trait = education_martial_3
	trait = lifestyle_hunter
	random_traits = no
	prowess = 20
	after_creation = {
		if = {
			limit = { has_dlc_feature = tours_and_tournaments }
			add_trait = tourney_participant
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = lifestyle_hunter
				TRACK = hunter
				LEVEL_1 = yes
				LEVEL_3 = no
			}
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = tourney_participant
				TRACK = horse
				LEVEL_1 = yes
				LEVEL_3 = no
			}
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = tourney_participant
				TRACK = bow
				LEVEL_1 = yes
				LEVEL_3 = no
			}
		}	
	}
}

tolui_character_template = { # (history database char id 125520)
	age = 6
	gender = male
	dynasty_house = house:house_borjigin
	faith = faith:tengri_pagan
	culture = culture:mongol
	trait = rowdy
	random_traits = no
	prowess = 20
}

chagatai_character_template = { # (history database char id 93062)
	age = 15
	gender = male
	dynasty_house = house:house_borjigin
	faith = faith:tengri_pagan
	culture = culture:mongol
	trait = wrathful
	trait = impatient
	trait = just
	trait = rowdy
	random_traits = no
	prowess = 20
	after_creation = {
		if = {
			limit = { has_dlc_feature = tours_and_tournaments }
			add_trait = tourney_participant
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = tourney_participant
				TRACK = horse
				LEVEL_1 = yes
				LEVEL_3 = no
			}
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = tourney_participant
				TRACK = bow
				LEVEL_1 = yes
				LEVEL_3 = no
			}
		}
	}
}

ogodei_character_template = { # (history database char id 172005)
	age = 12
	gender = male
	dynasty_house = house:house_borjigin
	faith = faith:tengri_pagan
	culture = culture:mongol
	trait = gregarious
	trait = just
	trait = rowdy
	random_traits = no
	martial = 14
	diplomacy = 12
	intrigue = 10
	stewardship = 16
	prowess = 20
}

altun_begi_character_template = { # (history database char id 217227)
	age = 7
	gender = female
	dynasty_house = house:house_borjigin
	faith = faith:tengri_pagan
	culture = culture:mongol
	trait = curious
	random_traits = no
}


subutai_character_template = { # (history database char id 34850
	age = 23
	gender = male
	dynasty_house = house:house_uriankhai
	faith = faith:tengri_pagan
	culture = culture:mongol
	martial = 17
	diplomacy = 6
	intrigue = 9
	stewardship = 9
	prowess = 30
	trait = brave
	trait = diligent
	trait = patient
	trait = strong
	trait = intellect_good_2
	trait = education_martial_4
	trait = organizer
	trait = flexible_leader
	trait = loyal
	random_traits = no
	after_creation = {
		if = {
			limit = { has_dlc_feature = tours_and_tournaments }
			add_trait = tourney_participant
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = tourney_participant
				TRACK = horse
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = tourney_participant
				TRACK = bow
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = tourney_participant
				TRACK = wit
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}
	}
}


### Temujin's PARENTS (currently not in use)
hoelun_character_template = { # (history database char id 172003)
	name = "Hoelun" # Mother of Genghis Khan
	age = 59
	gender = female
	dynasty_house = house:house_olkhunut
	faith = faith:tengri_pagan
	culture = culture:mongol
	martial = 8
	diplomacy = 10
	intrigue = 12
	stewardship = 10
	trait = compassionate
	trait = patient
	trait = diligent
	trait = education_intrigue_4
}


yesu_gei_character_template = { # (history database char id 93055)
	name = "YesU_gei" # Father of Genghis Khan
	age = 88 # if alive at the spawning of 36 year old Temujin
	gender = female
	dynasty_house = house:house_borjigin
	faith = faith:tengri_pagan
	culture = culture:mongol
	martial = 9
	diplomacy = 6
	intrigue = 6
	stewardship = 6
	trait = stubborn
	trait = diligent
	trait = wrathful
	trait = education_martial_1
}

dynamic_genghis_character_template = {
	age = { 30 42 } # Temujin's age around 1198
	gender_female_chance = {
		if = {
			limit = { faith:tengri_pagan = { has_doctrine = doctrine_gender_male_dominated } }
			add = 0
		}
		else_if = {
			limit = { faith:tengri_pagan = { has_doctrine = doctrine_gender_female_dominated } }
			add = 100
		}
		else = {
			add = 50
		}
	}
	martial = { 10 20 }
	diplomacy = { 8 16 }
	intrigue = { 4 14 }
	stewardship = { 8 16 }
	prowess = { 15 25 }
	faith = faith:tengri_pagan
	culture = culture:mongol
	random_traits = no
	random_traits_list = {
		count = 3
		# Personality traits
		lustful = {}
		gluttonous = {}
		greedy = {}
		diligent = {}
		wrathful = {}
		impatient = {}
		arrogant = {}
		deceitful = {}
		brave = {}
		gregarious = {}
		ambitious = {}
		arbitrary = {}
		zealous = {}
		callous = {}
		sadistic = {}
		stubborn = {}
		vengeful = {}
		just = {}
		honest = {}
	}
	random_traits_list = {
		count = 1
		# Commander traits
		logistician = {}
		aggressive_attacker = {}
		unyielding_defender = {}
		forder = {}
		flexible_leader = {}
		desert_warrior = {}
		reckless = {}
		organizer = {}
	}
	trait = lifestyle_hunter
	trait = education_martial_5
	trait = open_terrain_expert
	after_creation = {
		set_interesting_traits_and_modifiers_effect = yes
		if = {
			limit = { has_dlc_feature = tours_and_tournaments }
			add_trait = tourney_participant
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = lifestyle_hunter
				TRACK = hunter
				LEVEL_1 = yes
				LEVEL_3 = no
			}
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = tourney_participant
				TRACK = horse
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = tourney_participant
				TRACK = bow
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}
		change_current_weight = 25
	}
}

dynamic_genghis_spouse_template = {
	age = { 26 42 }
	faith = faith:tengri_pagan
	culture = culture:mongol
	random_traits = no
	random_traits_list = {
		count = 3
		# Personality traits
		lustful = {}
		gluttonous = {}
		greedy = {}
		diligent = {}
		wrathful = {}
		impatient = {}
		arrogant = {}
		deceitful = {}
		brave = {}
		gregarious = {}
		ambitious = {}
		arbitrary = {}
		zealous = {}
		callous = {}
		sadistic = {}
		stubborn = {}
		vengeful = {}
		calm = {}
		patient = {}
		cynical = {}
		just = {}
		honest = {}
	}
	random_traits_list = {
		count = 1
		education_learning_4 = {}
		education_learning_3 = {}
		education_diplomacy_4 = {}
		education_diplomacy_3 = {}
		education_stewardship_4 = {}
		education_stewardship_3 = {}
		education_intrigue_4 = {}
		education_intrigue_3 = {}
		education_martial_4 = {}
		education_martial_3 = {}
	}
	martial = {
		min_template_decent_skill
		max_template_decent_skill
	}
	stewardship = {
		min_template_decent_skill
		max_template_decent_skill
	}
	diplomacy = {
		min_template_decent_skill
		max_template_decent_skill
	}
	intrigue = {
		min_template_decent_skill
		max_template_decent_skill
	}
	learning = {
		min_template_decent_skill
		max_template_decent_skill
	}
	prowess = { 8 16 }
}

dynamic_genghis_child_template = {
	age = { 2 14 }
	gender_female_chance = {
		add = 50
	}
	faith = faith:tengri_pagan
	culture = culture:mongol
	dynasty_house = scope:temujin.house
	random_traits = yes
	intrigue = {
		min_template_decent_skill
		max_template_decent_skill
	}
	after_creation = {
		set_interesting_traits_and_modifiers_effect = yes
	}
}
