default_mystic_character = {
	age = { 30 80 }
	dynasty = none
	trait = lifestyle_mystic
	random_traits = yes
	faith = root.faith
	gender_female_chance = {
		if = {
			limit = { root.faith = { has_doctrine = doctrine_gender_male_dominated } }
			add = 0
		}
		else_if = {
			limit = { root.faith = { has_doctrine = doctrine_gender_female_dominated } }
			add = 100
		}
		else = {
			add = 50
		}
	}
	learning = max_template_high_skill
	after_creation = {
		if = {
			limit = { has_trait = lifestyle_mystic }
			add_trait_xp = {
				trait = lifestyle_mystic
				value = {
					integer_range = {
						min = small_lifestyle_random_xp_low
						max = small_lifestyle_random_xp_high
					}
				}
			}
		}
	}
}

local_saint_template = {
	age = { 30 80 }
	faith = root.faith
	culture = root.culture
	dynasty = none
	gender_female_chance = {
		if = {
			limit = { root.faith = { has_doctrine = doctrine_gender_male_dominated } }
			add = 0
		}
		else_if = {
			limit = { root.faith = { has_doctrine = doctrine_gender_female_dominated } }
			add = 100
		}
		else = {
			add = 50
		}
	}
	trait = lifestyle_mystic
	#Education
	random_traits_list = {
		count = 1
		education_learning_1 = {}
		education_learning_2 = {}
		education_learning_3 = {}
		education_learning_4 = {}
	}
	#Virtue Personality
	#Give them traits which are considered virtuous in their faith. Traits which would be the opposite of a neutral personality are omitted.
	random_traits_list = {
		count = 3
		lustful = {
			trigger = {
				root.faith = { trait_is_virtue = lustful }
			}
		}
		chaste = {
			trigger = {
				root.faith = { trait_is_virtue = chaste }
			}
		}
		gluttonous = {
			trigger = {
				root.faith = { trait_is_virtue = gluttonous }
			}
		}
		temperate = {
			trigger = {
				root.faith = { trait_is_virtue = temperate }
			}
		}
		greedy = {
			trigger = {
				root.faith = { trait_is_virtue = greedy }
			}
		}
		generous = {
			trigger = {
				root.faith = { trait_is_virtue = generous }
			}
		}
		wrathful = {
			trigger = {
				root.faith = { trait_is_virtue = wrathful }
			}
		}
		calm = {
			trigger = {
				root.faith = { trait_is_virtue = calm }
			}
		}
		patient = {
			trigger = {
				root.faith = { trait_is_virtue = patient }
			}
		}
		impatient = {
			trigger = {
				root.faith = { trait_is_virtue = impatient }
			}
		}
		arrogant = {
			trigger = {
				root.faith = { trait_is_virtue = arrogant }
			}
		}
		humble = {
			trigger = {
				root.faith = { trait_is_virtue = humble }
			}
		}
		deceitful = {
			trigger = {
				root.faith = { trait_is_virtue = deceitful }
			}
		}
		honest = {
			trigger = {
				root.faith = { trait_is_virtue = honest }
			}
		}
		craven = {
			trigger = {
				root.faith = { trait_is_virtue = craven }
			}
		}
		brave = {
			trigger = {
				root.faith = { trait_is_virtue = brave }
			}
		}
		ambitious = {
			trigger = {
				root.faith = { trait_is_virtue = ambitious }
			}
		}
		content = {
			trigger = {
				root.faith = { trait_is_virtue = content }
			}
		}
		arbitrary = {
			trigger = {
				root.faith = { trait_is_virtue = arbitrary }
			}
		}
		just = {
			trigger = {
				root.faith = { trait_is_virtue = just }
			}
		}
		paranoid = {
			trigger = {
				root.faith = { trait_is_virtue = paranoid }
			}
		}
		trusting = {
			trigger = {
				root.faith = { trait_is_virtue = trusting }
			}
		}
		compassionate = {
			trigger = {
				root.faith = { trait_is_virtue = compassionate }
			}
		}
		callous = {
			trigger = {
				root.faith = { trait_is_virtue = callous }
			}
		}
		sadistic = {
			trigger = {
				root.faith = { trait_is_virtue = sadistic }
			}
		}
		stubborn = {
			trigger = {
				root.faith = { trait_is_virtue = stubborn }
			}
		}
		fickle = {
			trigger = {
				root.faith = { trait_is_virtue = fickle }
			}
		}
		vengeful = {
			trigger = {
				root.faith = { trait_is_virtue = vengeful }
			}
		}
		forgiving = {
			trigger = {
				root.faith = { trait_is_virtue = forgiving }
			}
		}
	}
	#"Special" Personality
	random_traits_list = {
		count = 1
		drunkard = {}
		contrite = {}
		reclusive = {}
		irritable = {}
		flagellant = {}
		improvident = {}
		inappetetic = {}
	}
	#Some extra flavor
	random_traits_list = {
		count = { 0 1 }
		lunatic_1 = {}
		possessed_1 = {}
		disfigured = {}
		eunuch_1 = {}
		beardless_eunuch = {}
		blind = {}
		physique_good_3 = {}
		spindly = {}
	}
	after_creation = {
		add_random_tiered_trait_xp_effect = {
			TRAIT = lifestyle_mystic
			LEVEL_1 = yes
			LEVEL_3 = yes
		}
	}
}

mendicant_mystic_character = {
	age = { 30 80 }
	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 }
		}
	}
	# Mystical Education
	trait = lifestyle_mystic
	trait = devoted
	trait = zealous
	random_traits = yes
	culture = root.culture
	faith = root.faith
	gender_female_chance = {
		if = {
			limit = { root.faith = { has_doctrine = doctrine_gender_male_dominated } }
			add = 0
		}
		else_if = {
			limit = { root.faith = { has_doctrine = doctrine_gender_female_dominated } }
			add = 100
		}
		else = {
			add = 50
		}
	}
	learning = max_template_high_skill
	prowess = {
		min_template_high_skill
		max_template_high_skill
	}
	after_creation = {
		add_random_tiered_trait_xp_effect = {
			TRAIT = lifestyle_mystic
			LEVEL_1 = yes
			LEVEL_3 = yes
		}
	}
}

wise_woman_character = {
	age = { 30 80 }
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_intrigue_2  = {}
		education_intrigue_3  = {}
		education_intrigue_4  = {}
		education_learning_2  = {}
		education_learning_3  = {}
		education_learning_4  = {}
		education_diplomacy_2  = {}
		education_diplomacy_3  = {}
		education_diplomacy_4  = {}
	}
	# Mystical Education
	random_traits_list = {
		count = 1
		witch = {
			weight = { base = 70 }
		}
		lifestyle_mystic = {
			weight = { base = 40 }
		}
	}
	random_traits_list = {
		count = 1
		beauty_good_1 = {}
		beauty_good_2 = {}
		beauty_good_3 = {}
		beauty_bad_1 = {}
		beauty_bad_2 = {}
		beauty_bad_3 = {}
		intellect_good_1 = {}
		intellect_good_2 = {}
		intellect_good_3 = {}
		shrewd  = {}
		fecund = {}
		dwarf = {}
		giant = {}
		albino = {}
		bleeder = {}
		lunatic_1 = {}
		possessed_1 = {}
	}
	random_traits_list = {
		count = 1
		lifestyle_herbalist = {}
		schemer = {}
		seducer = {}
		torturer = {}
		whole_of_body = {}
		scholar = {}
		lifestyle_physician = {}
	}
	random_traits = yes
	faith = root.faith
	gender_female_chance = {
		if = { # Higher chance for non-dominant gender
			limit = { root.faith = { has_doctrine = doctrine_gender_male_dominated } }
			add = 90
		}
		else_if = {
			limit = { root.faith = { has_doctrine = doctrine_gender_female_dominated } }
			add = 10
		}
		else = {
			add = 50
		}
	}
	learning = max_template_high_skill
	after_creation = {
		add_random_tiered_trait_xp_effect = {
			TRAIT = lifestyle_mystic
			LEVEL_1 = yes
			LEVEL_3 = yes
		}
	}
}

stylite_saint_character = {
	age = { 30 80 }
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_learning_2  = {}
		education_learning_3  = {}
		education_learning_4  = {}
	}
	random_traits_list = {
		count = { 0 1 }
		lifestyle_mystic = {}
		zealous = {}
		whole_of_body = {}
		disfigured = {}
		eunuch_1 = {}
		beardless_eunuch = {}
		blind = {}
	}
	trait = eccentric
	random_traits = yes
	gender_female_chance = {
		if = {
			limit = { faith:orthodox = { has_doctrine_parameter = clergy_must_be_male } }
			add = 0
		}
		else_if = {
			limit = { faith:orthodox = { has_doctrine_parameter = clergy_must_be_female } }
			add = 100
		}
		else = {
			add = 50
		}
	}
	learning = max_template_high_skill
	after_creation = {
		if = {
			limit = {
				has_trait = lifestyle_mystic
			}
			add_random_tiered_trait_xp_effect = {
				TRAIT = lifestyle_mystic
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}
	}
}

ancient_forest_traveler_character = {
	age = { 60 90 }
	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 }
		}
	}
	# Mystical Education
	trait = lifestyle_mystic
	trait = lifestyle_traveler
	random_traits = yes
	culture = root.culture
	faith = root.faith
	learning = max_template_high_skill
	prowess = {
		min_template_average_skill
		max_template_average_skill
	}
	after_creation = {
		add_random_tiered_trait_xp_effect = {
			TRAIT = lifestyle_mystic
			LEVEL_1 = yes
			LEVEL_3 = yes
		}
		add_random_tiered_trait_track_xp_effect = {
			TRAIT = lifestyle_traveler
			TRACK = travel
			LEVEL_1 = yes
			LEVEL_3 = no
		}
	}
}

scammer_template = {
	age = { 20 75 }
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_intrigue_2  = {}
		education_intrigue_3  = {}
		education_intrigue_4  = {}
	}
	random_traits_list = {
		count = 1
		lifestyle_mystic = {}
		zealous = {}
		whole_of_body = {}
		deceitful = {}
		eccentric = {}
	}
	random_traits = yes
	gender_female_chance = {
		if = { 
			limit = { root.faith = { has_doctrine = doctrine_gender_male_dominated } }
			add = 0
		}
		else_if = {
			limit = { root.faith = { has_doctrine = doctrine_gender_female_dominated } }
			add = 100
		}
		else = {
			add = 50
		}
	}
	faith = root.faith
	culture = root.culture
	intrigue = {
		min_template_high_skill
		max_template_high_skill
	}
}
