﻿### Create Characters for Events ###
# Use this file to add new characters when you
# want to randomly generate a new character
# for an event

maester_character = {
	age = { 30 75 }
	gender = male
	dynasty = none
	random_traits = yes
	faith = faith:fots_seven

	trait = maester

	random_culture = {
		culture:crownlander = {
			weight = { base = 5 }
		}
		culture:clawman = {
			weight = { base = 3 }
		}
		culture:reachman = {
			weight = { base = 8 }
		}
		culture:honeywiner = {
			weight = { base = 8 }
		}
		culture:vineman = {
			weight = { base = 8 }
		}
		culture:riverman_main = {
			weight = { base = 5 }
		}
		culture:stone_dornish = {
			weight = { base = 5 }
		}
		culture:salt_dornish = {
			weight = { base = 5 }
		}
		culture:sand_dornish = {
			weight = { base = 5 }
		}
		culture:stormlander_main = {
			weight = { base = 5 }
		}
		culture:marcher = {
			weight = { base = 5 }
		}
		culture:valeman_main = {
			weight = { base = 5 }
		}
		culture:valeman_upper = {
			weight = { base = 5 }
		}
		culture:valeman_finger = {
			weight = { base = 5 }
		}
		culture:westerman_main = {
			weight = { base = 5 }
		}
		culture:northman = {
			weight = { base = 5 }
		}
		culture:barrowman = {
			weight = { base = 5 }
		}
		culture:harborman = {
			weight = { base = 5 }
		}
		culture:wolfswood_clansman = {
			weight = { base = 3 }
		}
		culture:northern_clan = {
			weight = { base = 1 }
		}
		culture:crannogman = {
			weight = { base = 2 }
		}
		culture:skagosi = {
			weight = { base = 1 }
		}
		culture:ironborn = {
			weight = { base = 2 }
		}
		culture:krakenman = {
			weight = { base = 2 }
		}
	}

	learning = {
		min_guest_template_skill max_guest_template_skill
	}

	random_traits_list = {
		education_learning_1 = { weight = { base = 20 } }
		education_learning_2 = { weight = { base = 45 } }
		education_learning_3 = { weight = { base = 20 } }
		education_learning_4 = { weight = { base = 15 } }
	}

	random_traits_list = {
		count = { 0 1 }
		lifestyle_physician = {}
	}

	random_traits_list = {
		count = { 0 1 }
		scholar = {}
		theologian = {}
		whole_of_body = {}
		lifestyle_mystic = {}
		lifestyle_herbalist = {}
		lifestyle_gardener = {}
		architect = {}
		diplomat = {}
		administrator = {}
		torturer = {}
		shrewd = {}
		journaller = {}
		schemer = {}
	}

	#maester type personality
	random_traits_list = {
		count = 1
		chaste = {}
		diligent = {}
		patient = {}
		calm = {}
		humble = {}
		shy = {}
		content = {}
		cynical = {}
		lazy = {}
		eccentric = {}
	}

	after_creation = {
		set_interesting_traits_and_modifiers_effect = yes
		if = {
			limit = { has_trait = lifestyle_mystic }
			add_random_tiered_trait_xp_effect = {
				TRAIT = lifestyle_mystic
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}
		if = {
			limit = { has_trait = lifestyle_physician }
			add_random_tiered_trait_xp_effect = {
				TRAIT = lifestyle_physician
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}
		if = {
			limit = {
				has_culture = culture:ironborn
			}
			random_list = {
				25 = { set_character_faith = faith:fots_seven }
				75 = { set_character_faith = faith:drowned_god }
			}
		}
		if = {
			limit = {
				has_culture = culture:harborman
			}
			random_list = {
				70 = { set_character_faith = faith:fots_seven}
				30 = { set_Character_faith = faith:old_gods_wnw }
			}
		}
		if = {
			limit = {
				OR = {
					culture = culture:northman
					culture = culture:barrowman
					culture = culture:wolfswood_clansman
					culture = culture:northern_clan
					culture = culture:crannogman
					culture = culture:skagosi
				}
			}
			random_list = {
			  75 = { set_character_faith = faith:old_gods_wnw }
			  15 = { set_character_faith = faith:fots_seven  }
			}
		}
		if = {
			limit = {
				culture = culture:krakenman
			}
			random_list = {
				60 = {set_character_faith = faith:old_gods_wnw }
				20 = {set_character_faith = faith:old_gods_wnw }
				20 = {set_character_faith = faith:drowned_god }
			}
		}
		#fun flavour stuff
		random_list = {
			80 = { }
			1 = { add_trait = physique_good_3}
			1 = { add_trait = beauty_good_3 }
			1 = { add_trait = beauty_bad_3 }
			5 = { add_trait = intellect_good_1 }
			2 = { add_trait = intellect_good_2 }
			1 = { add_trait = intellect_good_3 }
			5 = { add_trait = disfigured }
			5 = {add_trait = one_eyed}
			5 = { add_trait = one_legged }
			5 = { add_trait = weak }
			5 = { add_trait = drunkard }
			1 = { add_secret = { type = secret_cannibal } }
			2 = { add_secret = { type = secret_witch } }
			5 = { add_secret = { type = secret_non_believer } }
			5 = { add_secret = { type = secret_deviant } }
			5 = { # warrior maester because why not
				add_trait = scarred
				add_trait = education_martial_prowess_3
				add_trait = lifestyle_blademaster
				add_trait = brave
			}
			5 = { add_trait = eunuch_1 }
			5 = { add_trait = lunatic_1 }
			5 = { add_trait = fashionable } #AGOT To Do - Make his hair crazy lookin
			3 = { add_trait = seducer }
			1 = { add_trait = giant }
			1 = { add_trait = intellect_bad_3 } # lol get dumb maester'd
			2 = { add_trait = lifestyle_reveler }
			2 = { add_trait = hashishiyah } #Poppy Addict
		}
		random_list = {
			200 = {
				# Character is of average weight, nothing happens
			}
			25 = {
				change_current_weight = -25
			}
			25 = {
				change_current_weight = -75
			}
			25 = {
				change_current_weight = 25
			}
			25 = {
				change_current_weight = 75
			}
		}
		trigger_event = agot_maester.0004
		create_story = story_maester
	}
}

#Same as above, but we give archmaester trait before chain
archmaester_character = {
	age = { 40 75 }
	gender = male
	dynasty = none
	random_traits = yes
	faith = faith:fots_seven

	trait = maester

	random_culture = {
		culture:crownlander = {
			weight = { base = 5 }
		}
		culture:clawman = {
			weight = { base = 3 }
		}
		culture:reachman = {
			weight = { base = 8 }
		}
		culture:honeywiner = {
			weight = { base = 8 }
		}
		culture:vineman = {
			weight = { base = 8 }
		}
		culture:riverman_main = {
			weight = { base = 5 }
		}
		culture:stone_dornish = {
			weight = { base = 5 }
		}
		culture:salt_dornish = {
			weight = { base = 5 }
		}
		culture:sand_dornish = {
			weight = { base = 5 }
		}
		culture:stormlander_main = {
			weight = { base = 5 }
		}
		culture:marcher = {
			weight = { base = 5 }
		}
		culture:valeman_main = {
			weight = { base = 5 }
		}
		culture:valeman_upper = {
			weight = { base = 5 }
		}
		culture:valeman_finger = {
			weight = { base = 5 }
		}
		culture:westerman_main = {
			weight = { base = 5 }
		}
		culture:northman = {
			weight = { base = 5 }
		}
		culture:barrowman = {
			weight = { base = 5 }
		}
		culture:harborman = {
			weight = { base = 5 }
		}
		culture:wolfswood_clansman = {
			weight = { base = 3 }
		}
		culture:northern_clan = {
			weight = { base = 1 }
		}
		culture:crannogman = {
			weight = { base = 2 }
		}
		culture:skagosi = {
			weight = { base = 1 }
		}
		culture:ironborn = {
			weight = { base = 2 }
		}
		culture:krakenman = {
			weight = { base = 2 }
		}
	}

	learning = {
		min_guest_template_skill max_guest_template_skill
	}

	random_traits_list = {
		education_learning_1 = { weight = { base = 20 } }
		education_learning_2 = { weight = { base = 45 } }
		education_learning_3 = { weight = { base = 20 } }
		education_learning_4 = { weight = { base = 15 } }
	}

	random_traits_list = {
		count = { 0 1 }
		lifestyle_physician = {}
	}

	random_traits_list = {
		count = { 0 1 }
		scholar = {}
		theologian = {}
		whole_of_body = {}
		lifestyle_mystic = {}
		lifestyle_herbalist = {}
		lifestyle_gardener = {}
		architect = {}
		diplomat = {}
		administrator = {}
		torturer = {}
		shrewd = {}
		journaller = {}
		schemer = {}
	}

	#maester type personality
	random_traits_list = {
		count = 1
		chaste = {}
		diligent = {}
		patient = {}
		calm = {}
		humble = {}
		shy = {}
		content = {}
		cynical = {}
		lazy = {}
		eccentric = {}
	}

	after_creation = {
		set_interesting_traits_and_modifiers_effect = yes
		if = {
			limit = { has_trait = lifestyle_mystic }
			add_random_tiered_trait_xp_effect = {
				TRAIT = lifestyle_mystic
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}
		if = {
			limit = { has_trait = lifestyle_physician }
			add_random_tiered_trait_xp_effect = {
				TRAIT = lifestyle_physician
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}
		if = {
			limit = {
				has_culture = culture:ironborn
			}
			random_list = {
				25 = { set_character_faith = faith:fots_seven }
				75 = { set_character_faith = faith:drowned_god }
			}
		}
		if = {
			limit = {
				has_culture = culture:harborman
			}
			random_list = {
				70 = { set_character_faith = faith:fots_seven}
				30 = { set_Character_faith = faith:old_gods_wnw }
			}
		}
		if = {
			limit = {
				OR = {
					culture = culture:northman
					culture = culture:barrowman
					culture = culture:wolfswood_clansman
					culture = culture:northern_clan
					culture = culture:crannogman
					culture = culture:skagosi
				}
			}
			random_list = {
			  75 = { set_character_faith = faith:old_gods_wnw }
			  15 = { set_character_faith = faith:fots_seven  }
			}
		}
		if = {
			limit = {
				culture = culture:krakenman
			}
			random_list = {
				60 = {set_character_faith = faith:old_gods_wnw }
				20 = {set_character_faith = faith:old_gods_wnw }
				20 = {set_character_faith = faith:drowned_god }
			}
		}
		#fun flavour stuff
		random_list = {
			80 = { }
			1 = { add_trait = physique_good_3}
			1 = { add_trait = beauty_good_3 }
			1 = { add_trait = beauty_bad_3 }
			5 = { add_trait = intellect_good_1 }
			2 = { add_trait = intellect_good_2 }
			1 = { add_trait = intellect_good_3 }
			5 = { add_trait = disfigured }
			5 = {add_trait = one_eyed}
			5 = { add_trait = one_legged }
			5 = { add_trait = weak }
			5 = { add_trait = drunkard }
			1 = { add_secret = { type = secret_cannibal } }
			2 = { add_secret = { type = secret_witch } }
			5 = { add_secret = { type = secret_non_believer } }
			5 = { add_secret = { type = secret_deviant } }
			5 = { # warrior maester because why not
				add_trait = scarred
				add_trait = education_martial_prowess_3
				add_trait = lifestyle_blademaster
				add_trait = brave
			}
			5 = { add_trait = eunuch_1 }
			5 = { add_trait = lunatic_1 }
			5 = { add_trait = fashionable } #AGOT To Do - Make his hair crazy lookin
			3 = { add_trait = seducer }
			1 = { add_trait = giant }
			1 = { add_trait = intellect_bad_3 } # lol get dumb maester'd
			2 = { add_trait = lifestyle_reveler }
			2 = { add_trait = hashishiyah } #Poppy Addict
		}
		random_list = {
			200 = {
				# Character is of average weight, nothing happens
			}
			25 = {
				change_current_weight = -25
			}
			25 = {
				change_current_weight = -75
			}
			25 = {
				change_current_weight = 25
			}
			25 = {
				change_current_weight = 75
			}
		}
		#Make maester chain
		save_scope_as = archmaester_candidate
		agot_progress_to_archmaester_effect = { ARCHMAESTER_CANDIDATE = scope:archmaester_candidate }
		trigger_event = agot_maester.0004
		# Add story cycle
		create_story = story_maester
	}
}

disgraced_maester_character = {
	age = { 30 75 }
	gender = male
	dynasty = none
	random_traits = yes
	faith = faith:fots_seven

	trait = disgraced_maester

	random_culture = {
		culture:crownlander = {
			weight = { base = 5 }
		}
		culture:clawman = {
			weight = { base = 3 }
		}
		culture:reachman = {
			weight = { base = 8 }
		}
		culture:honeywiner = {
			weight = { base = 8 }
		}
		culture:vineman = {
			weight = { base = 8 }
		}
		culture:riverman_main = {
			weight = { base = 5 }
		}
		culture:stone_dornish = {
			weight = { base = 5 }
		}
		culture:salt_dornish = {
			weight = { base = 5 }
		}
		culture:sand_dornish = {
			weight = { base = 5 }
		}
		culture:stormlander_main = {
			weight = { base = 5 }
		}
		culture:marcher = {
			weight = { base = 5 }
		}
		culture:valeman_main = {
			weight = { base = 5 }
		}
		culture:valeman_upper = {
			weight = { base = 5 }
		}
		culture:valeman_finger = {
			weight = { base = 5 }
		}
		culture:westerman_main = {
			weight = { base = 5 }
		}
		culture:northman = {
			weight = { base = 5 }
		}
		culture:barrowman = {
			weight = { base = 5 }
		}
		culture:harborman = {
			weight = { base = 5 }
		}
		culture:wolfswood_clansman = {
			weight = { base = 3 }
		}
		culture:northern_clan = {
			weight = { base = 1 }
		}
		culture:crannogman = {
			weight = { base = 2 }
		}
		culture:skagosi = {
			weight = { base = 1 }
		}
		culture:ironborn = {
			weight = { base = 2 }
		}
		culture:krakenman = {
			weight = { base = 2 }
		}
	}

	learning = {
		min_guest_template_skill max_guest_template_skill
	}

	random_traits_list = {
		education_learning_1 = { weight = { base = 20 } }
		education_learning_2 = { weight = { base = 45 } }
		education_learning_3 = { weight = { base = 20 } }
		education_learning_4 = { weight = { base = 15 } }
	}

	random_traits_list = {
		count = { 0 1 }
		lifestyle_physician = {}
	}

	random_traits_list = {
		count = { 0 1 }
		scholar = {}
		theologian = {}
		whole_of_body = {}
		lifestyle_mystic = {}
		lifestyle_herbalist = {}
		lifestyle_gardener = {}
		architect = {}
		diplomat = {}
		administrator = {}
		torturer = {}
		shrewd = {}
		journaller = {}
		schemer = {}
	}

	#maester type personality
	random_traits_list = {
		count = 1
		chaste = {}
		diligent = {}
		patient = {}
		calm = {}
		humble = {}
		shy = {}
		content = {}
		cynical = {}
		lazy = {}
		eccentric = {}
	}

	random_traits_list = {
		count = 1
		greedy = {}
		deceitful = {}
		paranoid = {}
		sadistic = {}
		impatient = {}
		ambitious = {}
		vengeful = {}
		lustful = {}
	}

	after_creation = {
		set_interesting_traits_and_modifiers_effect = yes
		if = {
			limit = { has_trait = lifestyle_mystic }
			add_random_tiered_trait_xp_effect = {
				TRAIT = lifestyle_mystic
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}
		if = {
			limit = { has_trait = lifestyle_physician }
			add_random_tiered_trait_xp_effect = {
				TRAIT = lifestyle_physician
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}
		if = {
			limit = {
				has_culture = culture:ironborn
			}
			random_list = {
				25 = { set_character_faith = faith:fots_seven }
				75 = { set_character_faith = faith:drowned_god }
			}
		}
		if = {
			limit = {
				has_culture = culture:harborman
			}
			random_list = {
				70 = { set_character_faith = faith:fots_seven}
				30 = { set_Character_faith = faith:old_gods_wnw }
			}
		}
		if = {
			limit = {
				OR = {
					culture = culture:northman
					culture = culture:barrowman
					culture = culture:wolfswood_clansman
					culture = culture:northern_clan
					culture = culture:crannogman
					culture = culture:skagosi
				}
			}
			random_list = {
			  75 = { set_character_faith = faith:old_gods_wnw }
			  15 = { set_character_faith = faith:fots_seven  }
			}
		}
		if = {
			limit = {
				culture = culture:krakenman
			}
			random_list = {
				60 = {set_character_faith = faith:old_gods_wnw }
				20 = {set_character_faith = faith:old_gods_wnw }
				20 = {set_character_faith = faith:drowned_god }
			}
		}
		#fun flavour stuff
		random_list = {
			80 = { }
			1 = { add_trait = physique_good_3}
			1 = { add_trait = beauty_good_3 }
			1 = { add_trait = beauty_bad_3 }
			5 = { add_trait = intellect_good_1 }
			2 = { add_trait = intellect_good_2 }
			1 = { add_trait = intellect_good_3 }
			5 = { add_trait = disfigured }
			5 = {add_trait = one_eyed}
			5 = { add_trait = one_legged }
			5 = { add_trait = weak }
			5 = { add_trait = drunkard }
			1 = { add_secret = { type = secret_cannibal } }
			2 = { add_secret = { type = secret_witch } }
			5 = { add_secret = { type = secret_non_believer } }
			5 = { add_secret = { type = secret_deviant } }
			5 = { # warrior maester because why not
				add_trait = scarred
				add_trait = education_martial_prowess_3
				add_trait = lifestyle_blademaster
				add_trait = brave
			}
			5 = { add_trait = eunuch_1 }
			5 = { add_trait = lunatic_1 }
			5 = { add_trait = fashionable } #AGOT To Do - Make his hair crazy lookin
			3 = { add_trait = seducer }
			1 = { add_trait = giant }
			1 = { add_trait = intellect_bad_3 } # lol get dumb maester'd
			2 = { add_trait = lifestyle_reveler }
			2 = { add_trait = hashishiyah } #Poppy Addict
		}
		random_list = {
			200 = {
				# Character is of average weight, nothing happens
			}
			25 = {
				change_current_weight = -25
			}
			25 = {
				change_current_weight = -75
			}
			25 = {
				change_current_weight = 25
			}
			25 = {
				change_current_weight = 75
			}
		}
	}
}

acolyte_character = {

	age = { 18 40 }
	gender = male
	dynasty = none
	random_traits = yes
	faith = faith:fots_seven

	trait = maester

	random_culture = {
		culture:crownlander = {
			weight = { base = 5 }
		}
		culture:clawman = {
			weight = { base = 3 }
		}
		culture:reachman = {
			weight = { base = 8 }
		}
		culture:honeywiner = {
			weight = { base = 8 }
		}
		culture:vineman = {
			weight = { base = 8 }
		}
		culture:riverman_main = {
			weight = { base = 5 }
		}
		culture:stone_dornish = {
			weight = { base = 5 }
		}
		culture:salt_dornish = {
			weight = { base = 5 }
		}
		culture:sand_dornish = {
			weight = { base = 5 }
		}
		culture:stormlander_main = {
			weight = { base = 5 }
		}
		culture:marcher = {
			weight = { base = 5 }
		}
		culture:valeman_main = {
			weight = { base = 5 }
		}
		culture:valeman_upper = {
			weight = { base = 5 }
		}
		culture:valeman_finger = {
			weight = { base = 5 }
		}
		culture:westerman_main = {
			weight = { base = 5 }
		}
		culture:northman = {
			weight = { base = 5 }
		}
		culture:barrowman = {
			weight = { base = 5 }
		}
		culture:harborman = {
			weight = { base = 5 }
		}
		culture:wolfswood_clansman = {
			weight = { base = 3 }
		}
		culture:northern_clan = {
			weight = { base = 1 }
		}
		culture:crannogman = {
			weight = { base = 2 }
		}
		culture:skagosi = {
			weight = { base = 1 }
		}
		culture:ironborn = {
			weight = { base = 2 }
		}
		culture:krakenman = {
			weight = { base = 2 }
		}
	}

	learning = {
		min_guest_template_skill max_guest_template_skill
	}

	random_traits_list = {
		education_learning_1 = { weight = { base = 20 } }
		education_learning_2 = { weight = { base = 45 } }
		education_learning_3 = { weight = { base = 20 } }
		education_learning_4 = { weight = { base = 15 } }
	}

	random_traits_list = {
		count = { 0 1 }
		lifestyle_physician = {}
	}

	#maester type personality
	random_traits_list = {
		count = 1
		chaste = {}
		diligent = {}
		patient = {}
		calm = {}
		humble = {}
		shy = {}
		content = {}
		cynical = {}
		lazy = {}
		eccentric = {}
	}

	after_creation = {
		set_interesting_traits_and_modifiers_effect = yes
		if = {
			limit = { has_trait = lifestyle_physician }
			add_random_tiered_trait_xp_effect = {
				TRAIT = lifestyle_physician
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}
		if = {
			limit = {
				has_culture = culture:ironborn
			}
			random_list = {
				25 = { set_character_faith = faith:fots_seven }
				75 = { set_character_faith = faith:drowned_god }
			}
		}
		if = {
			limit = {
				has_culture = culture:harborman
			}
			random_list = {
				70 = { set_character_faith = faith:fots_seven}
				30 = { set_Character_faith = faith:old_gods_wnw }
			}
		}
		if = {
			limit = {
				OR = {
					culture = culture:northman
					culture = culture:barrowman
					culture = culture:wolfswood_clansman
					culture = culture:northern_clan
					culture = culture:crannogman
					culture = culture:skagosi
				}
			}
			random_list = {
			  75 = { set_character_faith = faith:old_gods_wnw }
			  15 = { set_character_faith = faith:fots_seven  }
			}
		}
		if = {
			limit = {
				culture = culture:krakenman
			}
			random_list = {
				60 = {set_character_faith = faith:old_gods_wnw }
				20 = {set_character_faith = faith:old_gods_wnw }
				20 = {set_character_faith = faith:drowned_god }
			}
		}
		#fun flavour stuff
		random_list = {
			80 = { }
			1 = { add_trait = physique_good_3 }
			1 = { add_trait = beauty_good_3 }
			1 = { add_trait = beauty_bad_3 }
			5 = { add_trait = intellect_good_1 }
			2 = { add_trait = intellect_good_2 }
			1 = { add_trait = intellect_good_3 }
			5 = { add_trait = disfigured }
			5 = { add_trait = one_eyed }
			5 = {
				add_trait = half_blind
				make_trait_inactive = halfblind_scar
			}
			5 = { add_trait = one_legged }
			5 = { add_trait = weak }
			5 = { add_trait = drunkard }
			1 = { add_secret = { type = secret_cannibal } }
			2 = { add_secret = { type = secret_witch } }
			5 = { add_secret = { type = secret_non_believer } }
			5 = { add_secret = { type = secret_deviant } }
			5 = { # warrior maester because why not
				add_trait = scarred
				add_trait = education_martial_prowess_3
				add_trait = lifestyle_blademaster
				add_trait = brave
			}
			5 = { add_trait = eunuch_1 }
			5 = { add_trait = lunatic_1 }
			5 = { add_trait = fashionable } #AGOT To Do - Make his hair crazy lookin
			3 = { add_trait = seducer }
			1 = { add_trait = giant }
			1 = { add_trait = intellect_bad_3 } # lol get dumb maester'd
			2 = { add_trait = lifestyle_reveler }
			2 = { add_trait = hashishiyah } #Poppy Addict
		}
		random_list = {
			200 = {
				# Character is of average weight, nothing happens
			}
			25 = {
				change_current_weight = -25
			}
			25 = {
				change_current_weight = -75
			}
			25 = {
				change_current_weight = 25
			}
			25 = {
				change_current_weight = 75
			}
		}

		#Make maester links
		#Will take away for appropriate purposes
		trigger_event = agot_maester.0009
		create_story = story_maester
	}
}

pyromancer_character = {
	age = { 30 70 }
	gender = male
	dynasty = none
	random_traits = yes

	random_faith = { #Few weird religions in here cause pyromancers are an odd bunch
		faith:rhllor_asshai = {
			weight = { base = 60 }
		}
		faith:rhllor_fc = {
			weight = { base = 60 }
		}
		faith:rhllor_fots = {
			weight = { base = 60 }
		}
		faith:valyrian_pan_dragon = {
			weight = { base = 60 }
		}
		faith:valyrian_pan_freehold = {
			weight = { base = 20 }
		}
		faith:fots_seven = {
			weight = { base = 20 }
		}
	}

	random_culture = {
		culture:crownlander = {
			weight = { base = 5 }
		}
		culture:clawman = {
			weight = { base = 3 }
		}
		culture:reachman = {
			weight = { base = 8 }
		}
		culture:honeywiner = {
			weight = { base = 8 }
		}
		culture:vineman = {
			weight = { base = 8 }
		}
		culture:riverman_main = {
			weight = { base = 5 }
		}
		culture:stone_dornish = {
			weight = { base = 5 }
		}
		culture:salt_dornish = {
			weight = { base = 5 }
		}
		culture:sand_dornish = {
			weight = { base = 5 }
		}
		culture:stormlander_main = {
			weight = { base = 5 }
		}
		culture:marcher = {
			weight = { base = 5 }
		}
		culture:valeman_main = {
			weight = { base = 5 }
		}
		culture:valeman_upper = {
			weight = { base = 5 }
		}
		culture:valeman_finger = {
			weight = { base = 5 }
		}
		culture:westerman_main = {
			weight = { base = 5 }
		}
		culture:northman = {
			weight = { base = 5 }
		}
		culture:barrowman = {
			weight = { base = 5 }
		}
		culture:harborman = {
			weight = { base = 5 }
		}
		culture:wolfswood_clansman = {
			weight = { base = 3 }
		}
		culture:northern_clan = {
			weight = { base = 1 }
		}
		culture:crannogman = {
			weight = { base = 2 }
		}
		culture:skagosi = {
			weight = { base = 1 }
		}
		culture:ironborn = {
			weight = { base = 2 }
		}
		culture:krakenman = {
			weight = { base = 2 }
		}
	}

	learning = {
		min_guest_template_skill max_guest_template_skill
	}

	trait = fire_obsessed
	trait = lifestyle_mystic

	random_traits_list = {
		education_learning_2 = { weight = { base = 35 } }
		education_learning_3 = { weight = { base = 20 } }
		education_learning_4 = { weight = { base = 15 } }

		education_intrigue_2 = { weight = { base = 35 } }
		education_intrigue_3 = { weight = { base = 20 } }
		education_intrigue_4 = { weight = { base = 15 } }
	}

	random_traits_list = { #Something sneaky
		count = 1
		arrogant = {}
		impatient = {}
		ambitious = {}
		cynical = {}
		zealous = {}
		vengeful = {}
		callous = {}
		sadistic = {}
		arbitrary = {}
		deceitful = {}
	}
	after_creation = {
		random_list = {
			200 = {
				# Character is of average weight, nothing happens
			}
			25 = {
				change_current_weight = -25
			}
			25 = {
				change_current_weight = -75
			}
			25 = {
				change_current_weight = 25
			}
			25 = {
				change_current_weight = 75
			}
		}
		add_trait_xp = {
			trait = lifestyle_mystic
			value = {
				integer_range = {
					min = medium_lifestyle_random_xp_low
					max = medium_lifestyle_random_xp_high
				}
			}
		}
		#AGOT HF ADDED
		agot_hf_new_house_effect = yes
	}
}

agot_hedgeknight_character = {
	age = { 16 60 }
	random_culture = {
		culture:crownlander = {
			weight = { base = 10 }
		}
		culture:clawman = {
			weight = { base = 3 }
		}
		culture:reachman = {
			weight = { base = 10 }
		}
		culture:honeywiner = {
			weight = { base = 5 }
		}
		culture:vineman = {
			weight = { base = 5 }
		}
		culture:riverman_main = {
			weight = { base = 5 }
		}
		culture:stone_dornish = {
			weight = { base = 5 }
		}
		culture:salt_dornish = {
			weight = { base = 5 }
		}
		culture:sand_dornish = {
			weight = { base = 5 }
		}
		culture:stormlander_main = {
			weight = { base = 10 }
		}
		culture:marcher = {
			weight = { base = 5 }
		}
		culture:valeman_main = {
			weight = { base = 10 }
		}
		culture:valeman_upper = {
			weight = { base = 5 }
		}
		culture:valeman_finger = {
			weight = { base = 5 }
		}
		culture:westerman_main = {
			weight = { base = 10 }
		}
		culture:harborman = {
			weight = { base = 5 }
		}
		#Tiny chance for non knightly cultures
		culture:northman = {
			weight = { base = 1 }
		}
		culture:barrowman = {
			weight = { base = 1 }
		}
		culture:wolfswood_clansman = {
			weight = { base = 1 }
		}
		culture:northern_clan = {
			weight = { base = 1 }
		}
		culture:crannogman = {
			weight = { base = 1 }
		}
		culture:skagosi = {
			weight = { base = 1 }
		}
		culture:ironborn = {
			weight = { base = 1 }
		}
		culture:krakenman = {
			weight = { base = 1 }
		}
	}

	faith = faith:fots_seven #Needs to be for knighthood
	gender = male
	dynasty = none
	trait = knight #Or so he claims...
	# education
	random_traits_list = {
		count = 1
		education_martial_1 = {
			weight = { base = 30 }
		}
		education_martial_2 = {
			weight = { base = 50 }
		}
		education_martial_3 = {
			weight = { base = 15 }
		}
		education_martial_4 = {
			weight = { base = 5 }
		}
	}
	random_traits_list = {
		count = 1
		education_martial_prowess_1 = {
			weight = { base = 19 }
		}
		education_martial_prowess_2 = {
			weight = { base = 70 }
		}
		education_martial_prowess_3 = {
			weight = { base = 10 }
		}
		education_martial_prowess_4 = {
			weight = { base = 1 }
		}
	}

	# personality
	random_traits_list = { #Something nice
		count = 1
		honest = {}
		gregarious = {}
		trusting = {}
		compassionate = {}
		generous = {}
		humble = {}
		calm = {}
		brave = {}
		just = {}
		chaste = {}
		forgiving = {}
		diligent = {}
		patient = {}
	}
	random_traits_list = { #Something less nice
		count = 1
		lustful = {}
		wrathful = {}
		arrogant = {}
		impatient = {}
		ambitious = {}
		cynical = {}
		zealous = {}
		stubborn = {}
		vengeful = {}
		callous = {}
		arbitrary = {}
		deceitful = {}
	}
	random_traits_list = {
		count = { 0 1 }
		lifestyle_blademaster = {}
		lifestyle_hunter = {}
		strategist = {}
		gallant = {}
		torturer = {}
		drunkard = {}
		irritable = {}
		athletic = {}
		strong = {}
		shrewd = {}
		clubfooted = {}
		hunchbacked = {}
		lisping = {}
		stuttering = {}
		giant = {}
		dull = {}
		spindly = {}
		scaly = {}
		albino = {}
		wheezing = {}
		beauty_bad_1 = {}
		beauty_bad_2 = {}
		beauty_bad_3 = {}
		beauty_good_1 = {}
		intellect_bad_1 = {}
		intellect_bad_2 = {}
		intellect_good_1 = {}
		intellect_good_2 = {}
		physique_good_1 = {}
		physique_good_2 = {}
		physique_good_3 = {}
	}
	#Commander
	after_creation = {
		#Chance of receiving an extra commander trait
		random = {
			chance = 25
			give_random_commander_trait_effect = yes
		}

		if = {
			limit = { has_trait = lifestyle_blademaster }
			add_random_tiered_trait_xp_effect = {
				TRAIT = lifestyle_blademaster
				LEVEL_1 = yes
				LEVEL_3 = no
			}
		}

		if = {
			limit = { has_trait = lifestyle_hunter }
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = lifestyle_hunter
				TRACK = hunter
				LEVEL_1 = yes
				LEVEL_3 = no
			}
		}
		#AGOT HF ADDED
		agot_hf_new_house_effect = yes
	}
}

agot_potential_kingsguard_character = {
	age = { 16 40 }
	random_culture = {
		culture:crownlander = {
			weight = { base = 10 }
		}
		culture:clawman = {
			weight = { base = 3 }
		}
		culture:reachman = {
			weight = { base = 10 }
		}
		culture:honeywiner = {
			weight = { base = 5 }
		}
		culture:vineman = {
			weight = { base = 5 }
		}
		culture:riverman_main = {
			weight = { base = 5 }
		}
		culture:stone_dornish = {
			weight = { base = 5 }
		}
		culture:salt_dornish = {
			weight = { base = 5 }
		}
		culture:sand_dornish = {
			weight = { base = 5 }
		}
		culture:stormlander_main = {
			weight = { base = 10 }
		}
		culture:marcher = {
			weight = { base = 5 }
		}
		culture:valeman_main = {
			weight = { base = 10 }
		}
		culture:valeman_upper = {
			weight = { base = 5 }
		}
		culture:valeman_finger = {
			weight = { base = 5 }
		}
		culture:westerman_main = {
			weight = { base = 10 }
		}
		culture:harborman = {
			weight = { base = 5 }
		}
	}

	faith = faith:fots_seven #Needs to be for knighthood
	gender = male
	dynasty = none
	trait = knight #Or so he claims...
	# education
	random_traits_list = {
		count = 1
		education_martial_3 = {
			weight = { base = 15 }
		}
		education_martial_4 = {
			weight = { base = 5 }
		}
	}
	random_traits_list = {
		count = 1
		education_martial_prowess_3 = {
			weight = { base = 10 }
		}
	}

	# personality
	random_traits_list = { #Something nice
		count = 1
		honest = {}
		gregarious = {}
		trusting = {}
		compassionate = {}
		generous = {}
		humble = {}
		calm = {}
		brave = {}
		just = {}
		chaste = {}
		forgiving = {}
		diligent = {}
		patient = {}
	}
	random_traits_list = { #Something less nice
		count = 1
		lustful = {}
		wrathful = {}
		arrogant = {}
		impatient = {}
		ambitious = {}
		cynical = {}
		zealous = {}
		stubborn = {}
		vengeful = {}
		callous = {}
		arbitrary = {}
		deceitful = {}
	}
	random_traits_list = {
		count = { 0 1 }
		lifestyle_blademaster = {}
		lifestyle_hunter = {}
		strategist = {}
		gallant = {}
		athletic = {}
		strong = {}
		shrewd = {}
		giant = {}
		beauty_good_1 = {}
		intellect_good_1 = {}
		intellect_good_2 = {}
		physique_good_1 = {}
		physique_good_2 = {}
		physique_good_3 = {}
	}
	prowess = {
		min_template_very_high_skill
		max_template_very_high_skill
	}
	#Commander
	after_creation = {
		#Chance of receiving an extra commander trait
		random = {
			chance = 25
			give_random_commander_trait_effect = yes
		}

		if = {
			limit = { has_trait = lifestyle_blademaster }
			add_random_tiered_trait_xp_effect = {
				TRAIT = lifestyle_blademaster
				LEVEL_1 = yes
				LEVEL_3 = no
			}
		}

		if = {
			limit = { has_trait = lifestyle_hunter }
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = lifestyle_hunter
				TRACK = hunter
				LEVEL_1 = yes
				LEVEL_3 = no
			}
		}
	}
}


agot_black_brother_character = {
	age = { 12 60 }
	random_faith = {
		faith:drowned_god = {
		   weight = { base = 4 }
		}
		faith:old_gods_wnw = { # TODO Change when new religion
			weight = { base = 16 }
		}
		faith:fots_seven = {
			weight = { base = 80 }
		}
	}
	random_culture = {
		culture:crownlander = {
			weight = { base = 5 }
		}
		culture:reachman = {
			weight = { base = 5 }
		}
		culture:riverman_main = {
			weight = { base = 5 }
		}
		culture:stone_dornish = {
			weight = { base = 5 }
		}
		culture:stormlander_main = {
			weight = { base = 5 }
		}
		culture:valeman_main = {
			weight = { base = 5 }
		}
		culture:westerman_main = {
			weight = { base = 5 }
		}
		culture:northman = {
			weight = { base = 5 }
		}
		culture:skagosi = {
			weight = { base = 3 }
		}
		culture:ironborn = {
			weight = { base = 5 }
		}
	}
	gender = male
	dynasty = generate
	random_traits = yes
	trait = nightswatch
}

agot_wildling_character = {
	faith = faith:old_gods_btw_fnf
	random_culture = {
		culture:forestman = {}
		culture:thenn = {}
		culture:fangman = {}
		culture:hornfoot = {}
	}
	dynasty = none
	gender_female_chance = 50

	#AGOT HF ADDED
	after_creation = {
		agot_hf_new_house_effect = yes
	}
}

beautiful_siren_character = {
	age = { 18 22 }
	random_traits_list = {
		count = 1
		beauty_good_2 = {}
		beauty_good_3 = {}
	}
	dynasty = none
	random_traits = yes
	faith = this.faith
	culture = this.culture
	diplomacy = {
		min_template_decent_skill
		max_template_decent_skill
	}
}

agot_pirate_character = {  # Normal Pirate Goon
	#General
	age = { 20 40 }
	dynasty = none
	faith = faith:valyrian_pan_freehold
	random_culture = {
		culture:tyroshi = { }
		culture:myrish = { }
		culture:lyseni = { }
		culture:stone_dornish = { }
		culture:stormlander_main = { }
		culture:valeman_main = { }
	}
	#Education
	random_traits_list = {
		count = 1
		education_martial_1 = {
			weight = { base = 20 }
		}
		education_martial_2 = {
			weight = { base = 50 }
		}
		education_martial_3 = {
			weight = { base = 20 }
		}
		education_martial_4 = {
			weight = { base = 10 }
		}
	}
	random_traits_list = {
		count = 1
		education_martial_prowess_1 = {
			weight = { base = 50 }
		}
		education_martial_prowess_2 = {
			weight = { base = 30 }
		}
		education_martial_prowess_3 = {
			weight = { base = 5 }
		}
	}

	#Personality
	trait = deceitful
	random_traits_list = {
		count = 2
		fickle = {}
		arbitrary = {}
		lazy = {}
		impatient = {}
		arrogant = {}
		craven = {}
		content = {}
		gregarious = {}
		greedy = {}
		brave = {}
		sadistic = {}
	}
	#Misc
	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 }

	#AGOT HF ADDED
	after_creation = {
		agot_hf_new_house_effect = yes
	}
}

agot_pirate_character_leader = { #Pirate Captain stronger variant
	#General
	age = { 20 40 }
	faith = faith:valyrian_pan_freehold
	random_culture = {
		culture:tyroshi = {
			weight = { base = 5 }
		}
		culture:myrish = {
			weight = { base = 5 }
		}
		culture:lyseni = {
			weight = { base = 5 }
		}
		culture:stone_dornish = {
			weight = { base = 5 }
		}
		culture:stormlander_main = {
			weight = { base = 5 }
		}
		culture:valeman_main = {
			weight = { base = 5 }
		}
	}
	dynasty = none
	#Education
	random_traits_list = {
		count = 1
		education_martial_prowess_2 = {
			weight = { base = 50 }
		}
		education_martial_prowess_3 = {
			weight = { base = 30 }
		}
		education_martial_prowess_4 = {
			weight = { base = 10 }
		}
	}
	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 = 50 }
		}
	}
	#Personality
	trait = ambitious
	random_traits_list = {
		count = 2
		fickle = {}
		deceitful = {}
		arbitrary = {}
		brave = {}
		ambitious = {}
		diligent = {}
		arrogant = {}
		greedy = {}
		gregarious = {}
		sadistic = {}
	}
	#Misc
	gender_female_chance = 50
	#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 }

	#AGOT HF ADDED
	after_creation = {
		agot_hf_new_house_effect = yes
	}
}

agot_summer_islander_character = {  # Normal Pirate Goon
	#General
	age = { 20 40 }
	dynasty = none
	faith = faith:summer_gods_pan
	random_culture = {
		culture:jhalai = { }
		culture:moluuni = { }
		culture:naathi = { }
		culture:omborui = { }
		culture:walanoi = { }
	}
	#Education
	random_traits_list = {
		count = 1
		education_martial_1 = {
			weight = { base = 20 }
		}
		education_martial_2 = {
			weight = { base = 50 }
		}
		education_martial_3 = {
			weight = { base = 20 }
		}
		education_martial_4 = {
			weight = { base = 10 }
		}
	}
	random_traits_list = {
		count = 1
		education_martial_prowess_1 = {
			weight = { base = 50 }
		}
		education_martial_prowess_2 = {
			weight = { base = 30 }
		}
		education_martial_prowess_3 = {
			weight = { base = 5 }
		}
	}

	#Personality
	trait = deceitful
	random_traits_list = {
		count = 2
		fickle = {}
		arbitrary = {}
		lazy = {}
		impatient = {}
		arrogant = {}
		craven = {}
		content = {}
		gregarious = {}
		greedy = {}
		brave = {}
		sadistic = {}
	}
	#Misc
	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 }

	#AGOT HF ADDED
	after_creation = {
		agot_hf_new_house_effect = yes
	}
}

agot_friendly_pirate_character_leader = {
	#General
	age = { 20 40 }
	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 = 50 }
		}
	}
	#Personality
	trait = ambitious
	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 }

	#AGOT HF ADDED
	after_creation = {
		agot_hf_new_house_effect = yes
	}
}

agot_red_priest_character = {
	age = { 20 40 }
	gender_female_chance = {
		if = {
			limit = { faith:rhllor_asshai = { has_doctrine = doctrine_gender_male_dominated } }
			add = 0
		}
		else_if = {
			limit = { faith:rhllor_asshai = { has_doctrine = doctrine_gender_female_dominated } }
			add = 100
		}
		else = {
			add = 50
		}
	}
	random_culture = {
		culture:pentoshi = { }
		culture:lyseni = { }
		culture:myrish = { }
		culture:tyroshi = { }
		culture:braavosi = { }
		culture:volantene = { }
		culture:qohorik = { }
		culture:lorathi = { }
	}
	faith = faith:rhllor_asshai
	dynasty = none
	random_traits_list = {
		count = 1
		education_learning_1 = {}
		education_learning_2 = {}
		education_learning_3 = {}
		education_learning_4 = {}
	}
	trait = red_priest
	random_traits = yes

	#AGOT HF ADDED
	after_creation = {
		agot_hf_new_house_effect = yes
	}
}

agot_red_warrior_character = {
	age = { 20 55 }
	gender_female_chance = {
		if = {
			limit = { faith:rhllor_fc = { has_doctrine = doctrine_gender_male_dominated } }
			add = 0
		}
		else_if = {
			limit = { faith:rhllor_fc = { has_doctrine = doctrine_gender_female_dominated } }
			add = 100
		}
		else = {
			add = 50
		}
	}
	random_traits_list = {
		count = 1
		education_martial_1 = {}
		education_martial_2 = {}
		education_martial_3 = {}
		education_martial_4 = {}
	}
	random_traits_list = {
		count = 1
		education_martial_prowess_3 = {
			weight = { base = 85 }
		}
		education_martial_prowess_4 = {
			weight = { base = 15 }
		}
	}
	random_traits_list = { #Something nice
		count = 2
		brave = {}
		honest = {}
		gregarious = {}
		trusting = {}
		compassionate = {}
		generous = {}
		humble = {}
		calm = {}
	}
	random_traits_list = {
		count = 1
		lustful = {}
		chaste = {}
		wrathful = {}
		arrogant = {}
		impatient = {}
		patient = {}
		impatient = {}
		ambitious = {}
		cynical = {}
		zealous = {}
		stubborn = {}
	}

	trait = red_priest
	trait = lifestyle_blademaster

	random_traits = no

	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_decent_skill max_template_high_skill }

	random_culture = {
		culture:pentoshi = {
			weight = { base = 5 }
		}
		culture:lyseni = {
			weight = { base = 5 }
		}
		culture:myrish = {
			weight = { base = 5 }
		}
		culture:tyroshi = {
			weight = { base = 5 }
		}
		culture:braavosi = {
			weight = { base = 5 }
		}
		culture:volantene = {
			weight = { base = 5 }
		}
		culture:qohorik = {
			weight = { base = 5 }
		}
		culture:lorathi = {
			weight = { base = 5 }
		}
	}

	faith = faith:rhllor_fc

	dynasty = none
	after_creation = {
		add_gold = { minor_gold_value medium_gold_value }
		add_prestige = { minor_prestige_gain medium_prestige_gain }
		add_piety = { minor_piety_gain medium_piety_gain }
		add_random_tiered_trait_xp_effect = {
			TRAIT = lifestyle_blademaster
			LEVEL_1 = yes
			LEVEL_3 = no
		}
		#AGOT HF ADDED
		agot_hf_new_house_effect = yes
	}
}

#hot lady template
agot_succubus = {
	#General
	age = { 18 28 }
	faith = root.faith
	culture = root.culture # Ensure they have the same ethnicity as root
	dynasty = none
	#Misc
	random_traits = yes
	trait = lustful
	random_traits_list = {
		count = 1
		beauty_good_3 = {}
		beauty_good_2 = {}
		beauty_good_1 = {}
	}
	random_traits_list = {
		rakish = {}
		deviant = {}
		flagellant = {}
		fornicator = {}
		adulterer = {}
	}
	gender_female_chance = root_attraction_based_female_chance

	after_creation = {
		set_sexuality = bisexual
		random_list = {
			50 = {}
			25 = { add_trait = fecund }
			25 = { add_trait = athletic }
		}
		#AGOT HF ADDED
		agot_hf_new_house_effect = yes
	}
}

agot_northman_character = {
	age = { 20 40 }
	gender_female_chance = 0
	culture = culture:northman
	dynasty = none
	faith = faith:old_gods_wnw

	#AGOT HF ADDED
	after_creation = {
		agot_hf_new_house_effect = yes
	}
}

agot_peasant_character = {
	culture = root.culture
	faith = root.faith
	dynasty = none
	random_traits_list = {
		count = 1
		education_martial_1 = {}
		education_diplomacy_1 = {}
		education_stewardship_1 = {}
		education_intrigue_1 = {}
	}

	#AGOT HF ADDED
	after_creation = {
		agot_hf_new_house_effect = yes
	}
}

agot_diplomacy_character = {
	culture = root.culture
	faith = root.faith
	dynasty = none
	random_traits_list = {
		count = 1
		education_diplomacy_1 = {}
		education_diplomacy_2 = {}
		education_diplomacy_3 = {}
		education_diplomacy_4 = {}
	}

	#AGOT HF ADDED
	after_creation = {
		agot_hf_new_house_effect = yes
	}
}

agot_merchant_character = {
	age = { 25 60 }
	culture = root.culture
	faith = root.faith
	dynasty = none
	gender_female_chance = 50

	random_traits = yes
	random_traits_list = {
		count = 1
		education_stewardship_1 = {}
		education_stewardship_2 = {}
		education_stewardship_3 = {}
		education_stewardship_4 = {}
	}

	#AGOT HF ADDED
	after_creation = {
		agot_hf_new_house_effect = yes
	}
}

agot_ruin_warrior = {
	age = { 20 45 }
	gender_female_chance = root_soldier_female_chance
	random_traits_list = {
		count = 1
		education_martial_1 = {}
		education_martial_2 = {}
		education_martial_3 = {}
		education_martial_4 = {}
	}
	random_traits_list = {
		count = 1
		education_martial_prowess_3 = {}
		education_martial_prowess_4 = {}
	}
	random_traits_list = {
		count = 1
		lifestyle_blademaster = {}
		lifestyle_hunter = {}
	}
	random_traits_list = {
		count = { 1 2 }
		brave = {}
		vengeful = {}
		wrathful = {}
		ambitious = {}
		diligent = {}
		greedy = {}
		arrogant = {}
		gluttonous = {}
		sadistic = {}
		irritable = {}
		cannibal = {}
	}
	random_traits_list = { #Something strong
		strong = {}
		athletic = {}
		physique_good_1 = {}
		physique_good_2 = {}
		physique_good_3 = {}
		giant = {}
	}

	prowess = { min_template_decent_skill max_template_high_skill }

	culture = root.culture
	dynasty = none
	faith = root.faith

	after_creation = {
		if = {
			limit = { has_trait = lifestyle_blademaster }
			add_random_tiered_trait_xp_effect = {
				TRAIT = lifestyle_blademaster
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}

		if = {
			limit = { has_trait = lifestyle_hunter }
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = lifestyle_hunter
				TRACK = hunter
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}
		#AGOT HF ADDED
		agot_hf_new_house_effect = yes
	}
}

agot_essosi_warrior = {
	age = { 20 45 }
	gender_female_chance = gender_female_chance_kingsguard
	random_traits_list = {
		count = 1
		education_martial_1 = {}
		education_martial_2 = {}
		education_martial_3 = {}
		education_martial_4 = {}
	}
	random_traits_list = {
		count = 1
		education_martial_prowess_3 = {}
		education_martial_prowess_4 = {}
	}
	random_traits_list = {
		count = 1
		lifestyle_blademaster = {}
		lifestyle_hunter = {}
	}
	random_traits_list = {
		count = { 1 2 }
		brave = {}
		vengeful = {}
		wrathful = {}
		ambitious = {}
		diligent = {}
		greedy = {}
		arrogant = {}
		gluttonous = {}
		sadistic = {}
		irritable = {}
		cannibal = {}
	}
	random_traits_list = { #Something strong
		strong = {}
		athletic = {}
		physique_good_1 = {}
		physique_good_2 = {}
		physique_good_3 = {}
		giant = {}
	}

	prowess = { min_template_decent_skill max_template_high_skill }

	faith = faith:rhllor_fc

	random_culture = {
		culture:pentoshi = { }
		culture:lyseni = { }
		culture:myrish = { }
		culture:tyroshi = { }
		culture:braavosi = { }
		culture:volantene = { }
		culture:qohorik = { }
		culture:lorathi = { }
	}

	after_creation = {
		add_gold = { minor_gold_value medium_gold_value }
		add_prestige = { minor_prestige_gain major_prestige_gain }
		add_piety = { minor_piety_gain medium_piety_gain }
		random = {
			chance = 25
			give_random_commander_trait_effect = yes
		}

		if = {
			limit = { has_trait = lifestyle_blademaster }
			add_random_tiered_trait_xp_effect = {
				TRAIT = lifestyle_blademaster
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}

		if = {
			limit = { has_trait = lifestyle_hunter }
			add_random_tiered_trait_track_xp_effect = {
				TRAIT = lifestyle_hunter
				TRACK = hunter
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}

		set_interesting_traits_and_modifiers_effect = yes
		if = {
			limit = {
				has_culture = culture:pentoshi
			}
			set_character_faith = faith:fc_pan_pentos
		}
		if = {
			limit = {
				has_culture = culture:lyseni
			}
			set_character_faith = faith:fc_pan_lys
		}
		if = {
			limit = {
				has_culture = culture:myrish
			}
			set_character_faith = faith:fc_pan_myr
		}
		if = {
			limit = {
				has_culture = culture:braavosi
			}
			set_character_faith = faith:fc_pan_braavos
		}
		if = {
			limit = {
				has_culture = culture:qohorik
			}
			set_character_faith = faith:fc_pan_blackgoat
		}
		if = {
			limit = {
				has_culture = culture:lorathi
			}
			set_character_faith = faith:fc_pan_lorath
		}
		#add more when essos faiths are expanded upon

		random_list = {
			60 = { add_trait = scarred }
			15 = { add_trait = disfigured }
			15 = {add_trait = one_eyed}
			10 = { add_trait = eunuch_1 }
			5 = { add_trait = torturer }
			5 = { add_trait = gallant }
			5 = { add_trait = drunkard }
			5 = { add_trait = lunatic_1 }
			5 = { add_trait = seducer }
			5 = { add_trait = lifestyle_reveler }
		}
		#AGOT HF ADDED
		agot_hf_new_house_effect = yes
	}
}

agot_essosi_bride = {
	age = { 16 20 } #young enough for young child bethrothal
	gender_female_chance = 100

	faith = faith:rhllor_fc

	random_faith = {
		faith:rhllor_fc = {
			weight = { base = 5 }
		}
		faith:fc_pan_pentos = {
			weight = { base = 5 }
		}
		faith:fc_pan_lys = {
			weight = { base = 5 }
		}
	}

	random_culture = {
		culture:pentoshi = { }
		culture:lyseni = { }
		culture:myrish = { }
		culture:tyroshi = { }
		culture:braavosi = { }
		culture:volantene = { }
		culture:norvoshi = { }
		culture:qohorik = { }
		culture:lorathi = { }
	}

	after_creation = {
		add_gold = { medium_gold_value major_gold_value }
		add_prestige = { medium_prestige_gain major_prestige_gain }
		add_piety = { medium_piety_gain major_piety_gain }

		make_trait_inactive = cool_silver_hair
		make_trait_inactive = purple_eyes_1

		add_character_flag = silver_spouse
		#AGOT HF ADDED
		agot_hf_new_house_effect = yes
	}

}

silent_sister_character = {
	age = { 18 65 }
	gender = female
	dynasty = none
	random_traits = yes
	faith = faith:fots_seven

	random_culture = {
		culture:crownlander = {
			weight = { base = 8 }
		}
		culture:clawman = {
			weight = { base = 6 }
		}
		culture:reachman = {
			weight = { base = 6 }
		}
		culture:honeywiner = {
			weight = { base = 6 }
		}
		culture:vineman = {
			weight = { base = 6 }
		}
		culture:riverman_main = {
			weight = { base = 6 }
		}
		culture:stormlander_main = {
			weight = { base = 6 }
		}
		culture:valeman_main = {
			weight = { base = 6 }
		}
		culture:valeman_upper = {
			weight = { base = 6 }
		}
		culture:valeman_finger = {
			weight = { base = 6 }
		}
		culture:westerman_main = {
			weight = { base = 6 }
		}
		culture:stone_dornish = {
			weight = { base = 4 }
		}
		culture:salt_dornish = {
			weight = { base = 4 }
		}
		culture:sand_dornish = {
			weight = { base = 4 }
		}
		culture:marcher = {
			weight = { base = 4 }
		}
		culture:northman = {
			weight = { base = 2 }
		}
		culture:barrowman = {
			weight = { base = 2 }
		}
		culture:harborman = {
			weight = { base = 2 }
		}
		culture:wolfswood_clansman = {
			weight = { base = 1 }
		}
		culture:northern_clan = {
			weight = { base = 1 }
		}
		culture:crannogman = {
			weight = { base = 1 }
		}
		culture:skagosi = {
			weight = { base = 1 }
		}
		culture:ironborn = {
			weight = { base = 1 }
		}
		culture:krakenman = {
			weight = { base = 1 }
		}
	}

	learning = {
		min_guest_template_skill max_guest_template_skill
	}

	trait = silent_sister
	trait = lifestyle_physician
	random_traits_list = {
		# 50% chance to have learning
		education_learning_1 = { weight = { base = 10 } }
		education_learning_2 = { weight = { base = 25 } }
		education_learning_3 = { weight = { base = 10 } }
		education_learning_4 = { weight = { base = 5 } }
		# 26% chance to have intrigue
		education_intrigue_1 = { weight = { base = 5 } }
		education_intrigue_2 = { weight = { base = 15 } }
		education_intrigue_3 = { weight = { base = 5 } }
		education_intrigue_4 = { weight = { base = 1 } }
		# 24% chance everything else 1-2
		education_diplomacy_1 = { weight = { base = 3 } }
		education_diplomacy_2 = { weight = { base = 1 } }
		education_martial_1 = { weight = { base = 6 } }
		education_martial_2 = { weight = { base = 4 } }
		education_stewardship_1 = { weight = { base = 6 } }
		education_stewardship_2 = { weight = { base = 4 } }
	}

	random_traits_list = {
		count = { 0 1 }
		scholar = {}
		theologian = {}
		whole_of_body = {}
		lifestyle_mystic = {}
		lifestyle_herbalist = {}
		shrewd = {}
		journaller = {}
		schemer = {}
	}

	#SS type personality
	random_traits_list = {
		count = 1
		chaste = {}
		shy = {}
		content = {}
		reclusive = {}
		widowed = {}
	}

	after_creation = {
		set_interesting_traits_and_modifiers_effect = yes
		if = {
			limit = { has_trait = lifestyle_physician }
			add_random_tiered_trait_xp_effect = {
				TRAIT = lifestyle_physician
				LEVEL_1 = yes
				LEVEL_3 = yes
			}
		}
		#fun flavour stuff
		random_list = {
			70 = { }
			30 = {
				random_list = {
					3 = { add_trait = physique_good_1}
					2 = { add_trait = physique_good_2}
					1 = { add_trait = physique_good_3}
					3 = { add_trait = beauty_good_1 }
					2 = { add_trait = beauty_good_2 }
					1 = { add_trait = beauty_good_3 }
					3 = { add_trait = beauty_bad_1 }
					2 = { add_trait = beauty_bad_2 }
					1 = { add_trait = beauty_bad_3 }
					3 = { add_trait = intellect_good_1 }
					2 = { add_trait = intellect_good_2 }
					1 = { add_trait = intellect_good_3 }
					1 = { add_trait = intellect_bad_1 }
					2 = { add_trait = intellect_bad_2 }
					3 = { add_trait = intellect_bad_3 }
					4 = { add_trait = disfigured }
					4 = { add_trait = one_eyed}
					4 = { add_trait = one_legged }
					3 = { add_trait = weak }
					3 = { add_trait = spindly }
					3 = { add_trait = bleeder }
					1 = { add_secret = { type = secret_cannibal } }
					2 = { add_secret = { type = secret_witch } }
					2 = { add_secret = { type = secret_deviant } }
					3 = { add_trait = lunatic_1 }
					1 = { add_trait = giant }
				}
			}
		}
		#AGOT HF ADDED
		agot_hf_new_house_effect = yes
	}
}

brothel_character_template = {
	age = { 18 40 }
	gender_female_chance = root_sexuality_female_chance
	dynasty = none
	random_traits = yes
	culture = root.location.culture
	faith = root.location.faith

	trait = lustful
	trait = fornicator

	random_traits_list = {
		# 50% chance to have learning
		education_diplomacy_1 = { weight = { base = 10 } }
		education_diplomacy_2 = { weight = { base = 25 } }
		education_diplomacy_3 = { weight = { base = 10 } }
		education_diplomacy_4 = { weight = { base = 5 } }
		# 50% chance to have learning
		education_intrigue_1 = { weight = { base = 10 } }
		education_intrigue_2 = { weight = { base = 25 } }
		education_intrigue_3 = { weight = { base = 10 } }
		education_intrigue_4 = { weight = { base = 5 } }
	}

	random_traits_list = {
		count = 1
		gregarious = {}
		seducer = {}
		rakish = {}
		beauty_good_1 = {}
		beauty_good_2 = {}
		beauty_good_3 = {}
		athletic = {}
	}

	after_creation = {
		random_list = {
			50 = {
				if = {
					limit = {
						OR = {
							AND = {
								is_female = yes
								root = { is_male = yes }
							}
							AND = {
								is_male = yes
								root = { is_female = yes }
							}
						}
					}
					set_sexuality = heterosexual
				}
				else_if = {
					limit = {
						OR = {
							AND = {
								is_female = yes
								root = { is_female = yes }
							}
							AND = {
								is_male = yes
								root = { is_male = yes }
							}
						}
					}
					set_sexuality = homosexual
				}
			}
			50 = {
				set_sexuality = bisexual
			}
		}
		#AGOT HF ADDED
		agot_hf_new_house_effect = yes
	}
}

agot_martial_wildling_template = {
	gender = male
	age = { 22 38 }
	faith = faith:old_gods_btw_fnf
	random_culture = {
		culture:forestman = {}
		culture:thenn = {}
		culture:fangman = {}
		culture:hornfoot = {}
	}
	trait = reaver
	random_traits_list = {
		count = 1
		education_martial_2 = { weight = { base = 15 } }
		education_martial_3 = { weight = { base = 60 } }
		education_martial_4 = { weight = { base = 25 } }
	}
	random_traits_list = {
		count = 1
		sadistic = {}
		ambitious = {}
		brave = {}
	}

	#AGOT HF ADDED
	after_creation = {
		agot_hf_new_house_effect = yes
	}
}

stepstones_warrior_character = {
	#General
	age = { 30 60 }
	faith = scope:stepstones_county.faith
	culture = scope:stepstones_county.culture
	#Education
	random_traits_list = {
		education_martial_2 = {
			weight = { base = 30 }
		}
		education_martial_3 = {
			weight = { base = 20 }
		}
		education_martial_4 = {
			weight = { base = 10 }
		}
	}
	random_traits_list = {
		education_martial_prowess_3 = {
			weight = { base = 20 }
		}
		education_martial_prowess_4 = {
			weight = { base = 10 }
		}
	}
	#Personality
	random_traits_list = {
		count = 4
		wrathful = {}
		impatient = {}
		arrogant = {}
		brave = {}
		ambitious = {}
		diligent = {}
		gregarious = {}
		stubborn = {}
		fickle = {}
		vengeful = {}
	}
	#Misc
	trait = adventurer
	random_traits = yes
	gender_female_chance = {
		if = {
			limit = {
				scope:stepstones_county.faith = { has_doctrine = doctrine_gender_male_dominated }
			}
			add = 0
		}
		else_if = {
			limit = {
				scope:stepstones_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 }

	#AGOT HF ADDED
	after_creation = {
		agot_hf_new_house_effect = yes
	}
}

canon_child_male = {
	age = 0
	random_traits = no
	gender_female_chance = { value = agot_canon_children_male_female_chance }
}

canon_child_female = {
	age = 0
	random_traits = no
	gender_female_chance = { value = agot_canon_children_female_female_chance }
}

qohorik_master_smith_character = { #Prowess/Martial
	# Can reforge Valyrian Steel Swords, spawned every 10 yrs in: agot_qohorik_weaponsmith_pulse
	age = { 35 65 }

	dynasty = none
	faith = faith:fc_pan_blackgoat
	culture = culture:qohorik

	prowess = {
		min_template_high_skill
		max_template_high_skill
	}
	stewardship = {
		min_template_high_skill
		max_template_high_skill
	}
	random_traits_list = {
		count = 1
		education_martial_1 = {
			weight = { base = 30 }
		}
		education_martial_2 = {
			weight = { base = 50 }
		}
		education_martial_3 = {
			weight = { base = 15 }
		}
		education_martial_4 = {
			weight = { base = 5 }
		}
	}
	random_traits_list = {
		count = 1
		education_martial_prowess_1 = {
			weight = { base = 19 }
		}
		education_martial_prowess_2 = {
			weight = { base = 70 }
		}
		education_martial_prowess_3 = {
			weight = { base = 10 }
		}
		education_martial_prowess_4 = {
			weight = { base = 1 }
		}
	}
	random_traits_list = {
		count = 1
		athletic = {}
		strong = {}
		physique_good_1 = {}
		physique_good_2 = {}
		physique_good_3 = {}
	}
	random_traits_list = {
		count = 1
		diligent = {}
		shy = {}
	}

	after_creation = {
		add_character_flag = ai_will_not_convert
		add_character_flag = can_reforge_valyrian_steel
		move_to_pool = yes
	}
	gender_female_chance = 0
}

divine_plots_assassin = {
	age = { 18 45 }

	dynasty = none
	faith = this.faith
	culture = this.culture

	intrigue = {
		min_template_high_skill
		max_template_high_skill
	}
	prowess = {
		min_template_high_skill
		max_template_high_skill
	}
	random_traits_list = {
		count = 1
		education_intrigue_3 = {
			weight = { base = 15 }
		}
		education_intrigue_4 = {
			weight = { base = 5 }
		}
	}
	random_traits_list = {
		count = 1
		education_martial_prowess_2 = {
			weight = { base = 40 }
		}
		education_martial_prowess_3 = {
			weight = { base = 50 }
		}
		education_martial_prowess_4 = {
			weight = { base = 10 }
		}
	}

	trait = deceitful
	trait = schemer
	trait = refusing_marriage
	random_traits_list = {
		count = 1
		sadistic = {}
		callous = {}
		patient = {}
	}
	random_traits_list = {
		count = 2
		sadistic = {}
		callous = {}
		patient = {}
		brave = {}
		arbitrary = {}
	}
	random_traits_list = {
		count = { 0 1 }
		calm = {}
		wrathful = {}
		chaste = {}
		lustful = {}
		content = {}
		ambitious = {}
		diligent = {}
		vengeful = {}
		greedy = {}
		gregarious = {}
		shy = {}
		humble = {}
		arrogant = {}
		temperate = {}
		gluttonous = {}
		paranoid = {}
		zealous = {}
		fickle = {}
		stubborn = {}
		eccentric = {}
		rude = {}
		authoritative = {}
	}
	gender_female_chance = 50

	after_creation = {
		add_character_flag = divine_plots_assassin
	}
}

agot_faceless_character = {
	age = { 16 80 }

	faith = faith:fc_pan_faceless
	culture = culture:braavosi
	dynasty = none
	random_traits = yes
	gender_female_chance = 50

	random_traits_list = {
		education_intrigue_3 = { weight = { base = 10 } }
		education_intrigue_4 = { weight = { base = 5 } }
	}
}

generic_noble_character = {
	age = { 18 50 }
	random_traits = yes
	culture = root.culture
	faith = root.faith
	gender_female_chance = 50
	martial = {
		min_template_low_skill
		max_template_high_skill
	}
	stewardship = {
		min_template_low_skill
		max_template_high_skill
	}
	diplomacy = {
		min_template_low_skill
		max_template_high_skill
	}
	intrigue = {
		min_template_low_skill
		max_template_high_skill
	}
	learning = {
		min_template_low_skill
		max_template_high_skill
	}
}

agot_free_city_administrator_character = {
	age = { 25 40 }
	culture = scope:magister_winner.culture
	faith = scope:magister_winner.faith
	gender_female_chance = 50

	random_traits = yes
	random_traits_list = {
		count = 1
		education_stewardship_2 = {}
		education_stewardship_3 = {}
		education_stewardship_4 = {}
	}
	random_traits_list = {
		count = 1
		education_republican_knowledge_2 = {}
		education_republican_knowledge_3 = {}
		education_republican_knowledge_4 = {}
	}
	#AGOT HF ADDED
	after_creation = {
		agot_hf_new_house_effect = yes
	}
}


agot_pirate_character_leader_02 = { #Used in start up effect, not lowborn like other
	#General
	age = { 20 40 }
	faith = faith:valyrian_pan_freehold
	random_culture = {
		culture:tyroshi = {
			weight = { base = 5 }
		}
		culture:myrish = {
			weight = { base = 5 }
		}
		culture:lyseni = {
			weight = { base = 5 }
		}
		culture:stone_dornish = {
			weight = { base = 5 }
		}
		culture:stormlander_main = {
			weight = { base = 5 }
		}
		culture:valeman_main = {
			weight = { base = 5 }
		}
		culture:salt_dornish = {
			weight = { base = 5 }
		}
	}
	dynasty = generate
	#Education
	random_traits_list = {
		count = 1
		education_martial_prowess_2 = {
			weight = { base = 50 }
		}
		education_martial_prowess_3 = {
			weight = { base = 30 }
		}
		education_martial_prowess_4 = {
			weight = { base = 10 }
		}
	}
	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 = 50 }
		}
	}
	#Personality
	trait = ambitious
	random_traits_list = {
		count = 2
		fickle = {}
		deceitful = {}
		arbitrary = {}
		brave = {}
		ambitious = {}
		diligent = {}
		arrogant = {}
		greedy = {}
		gregarious = {}
		sadistic = {}
	}
	#Misc
	gender_female_chance = 50
	#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 }

	#AGOT HF ADDED
	after_creation = {
		agot_hf_new_house_effect = yes
	}
}