###########################################################
# FEE Heir Education
###########################################################

# namespace = heir_education

# # Education for the Heir?
# country_event = {
# 	id = heir_education.1
# 	title = heir_education.1.T
# 	desc = heir_education.1.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	immediate = { set_heir_flag = heir_has_been_prompted }

# 	trigger = {
# 		has_heir = yes
# 		is_lesser_in_union = no
# 		has_global_flag = FEE_Heir_Education_Active
# 		NOT = {
# 			OR = {
# 				has_heir_flag = in_education_excellent
# 				has_heir_flag = in_education_good
# 				has_heir_flag = in_education_average
# 				has_heir_flag = in_education_but_not_learning
# 				has_heir_flag = heir_is_a_genius
# 				has_heir_flag = heir_has_been_prompted
# 			}
# 		}
# 		heir_age = 5
# 		NOT = { heir_age = 14 }
# 	}

# 	mean_time_to_happen = {
# 		months = 1
# 		modifier = {
# 			factor = 0.8
# 			legitimacy = 75
# 		}
# 		modifier = {
# 			factor = 1.5
# 			NOT = { legitimacy = 50 }
# 	}
# 	}

# 	option = {
# 		name = heir_education.1.OPT1
# 		set_heir_flag = in_education_excellent
# 		custom_tooltip = heir_education.1.OPT1.tt
# 		add_adm_power = -50
# 		add_dip_power = -50
# 		add_mil_power = -50
# 		add_years_of_income = -1.3
# 	}

# 	option = {
# 		name = heir_education.1.OPT2
# 		set_heir_flag = in_education_good
# 		custom_tooltip = heir_education.1.OPT2.tt
# 		add_adm_power = -50
# 		add_dip_power = -50
# 		add_mil_power = -50
# 		add_years_of_income = -0.5
# 	}

# 	option = {
# 		name = heir_education.1.OPT3
# 		set_heir_flag = in_education_average
# 		custom_tooltip = heir_education.1.OPT3.tt
# 		add_adm_power = -25
# 		add_dip_power = -25
# 		add_mil_power = -25
# 		add_years_of_income = -0.25
# 	}

# 	option = {
# 		name = heir_education.1.e
# 		set_heir_flag = in_education_but_not_learning
# 		custom_tooltip = heir_education.1.e.tt
# 		add_country_modifier = {
# 			name = neglected_heir_education
# 			duration = 1825
# 		}
# 	}
# 	option = {
# 		name = heir_education.1.f
# 		trigger = {
# 			heir_adm = 6
# 			heir_dip = 6
# 			heir_mil = 6
# 		}
# 		custom_tooltip = heir_education.1.f.tt
# 		set_heir_flag = heir_is_a_genius
# 		add_prestige_or_monarch_power = { amount = 20 }
# 	}
# }

# # The Artist's Canvas
# country_event = {
# 	id = heir_education.2
# 	title = heir_education.2.T
# 	desc = heir_education.2.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	trigger = {
# 		has_heir = yes
# 		has_heir_flag = in_education_but_not_learning
# 		NOT = {
# 			has_heir_flag = educated_by_artist
# 			has_heir_flag = educated_by_natural_scientist
# 			has_heir_flag = educated_by_inquisitor
# 			has_heir_flag = educated_by_trader
# 			has_heir_flag = educated_by_spymaster
# 			has_heir_flag = educated_by_colonial_governor
# 			has_heir_flag = educated_by_army_reformer
# 			has_heir_flag = educated_by_fortification_expert
# 			has_heir_flag = educated_by_grand_captain
# 		}
# 		NOT = { heir_age = 14 }
# 		advisor = artist
# 	}

# 	mean_time_to_happen = {
# 		months = 48
# 		modifier = {
# 			factor = 0.8
# 			legitimacy = 75
# 		}
# 		modifier = {
# 			factor = 1.2
# 			NOT = { legitimacy = 50 }
# 		}
# 		modifier = {
# 			factor = 1.5
# 			NOT = { prestige = 50 }
# 		}
# 		modifier = {
# 			factor = 0.5
# 			artist = 3
# 		}
# 		modifier = {
# 			factor = 0.7
# 			artist = 2
# 		}
# 	}

# 	option = {
# 		name = heir_education.2.OPT1
# 		set_heir_flag = educated_by_artist
# 		custom_tooltip = heir_is_being_educated_by_artist
# 		add_adm_power = -25
# 	}

# 	option = {
# 		name = heir_education.2.OPT2
# 		add_prestige = -5
# 	}
# }

# # The Scientist's Experiment
# country_event = {
# 	id = heir_education.3
# 	title = heir_education.3.T
# 	desc = heir_education.3.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	trigger = {
# 		has_heir = yes
# 		has_heir_flag = in_education_but_not_learning
# 		NOT = {
# 			has_heir_flag = educated_by_artist
# 			has_heir_flag = educated_by_natural_scientist
# 			has_heir_flag = educated_by_inquisitor
# 			has_heir_flag = educated_by_trader
# 			has_heir_flag = educated_by_spymaster
# 			has_heir_flag = educated_by_colonial_governor
# 			has_heir_flag = educated_by_army_reformer
# 			has_heir_flag = educated_by_fortification_expert
# 			has_heir_flag = educated_by_grand_captain
# 		}
# 		NOT = { heir_age = 14 }
# 		advisor = natural_scientist
# 	}

# 	mean_time_to_happen = {
# 		months = 48
# 		modifier = {
# 			factor = 0.8
# 			legitimacy = 75
# 		}
# 		modifier = {
# 			factor = 1.2
# 			NOT = { legitimacy = 50 }
# 		}
# 		modifier = {
# 			factor = 1.5
# 			NOT = { prestige = 50 }
# 		}
# 		modifier = {
# 			factor = 0.5
# 			natural_scientist = 3
# 		}
# 		modifier = {
# 			factor = 0.7
# 			natural_scientist = 2
# 		}
# 	}

# 	option = {
# 		name = heir_education.3.OPT1
# 		set_heir_flag = educated_by_natural_scientist
# 		custom_tooltip = heir_is_being_educated_by_natural_scientist
# 		add_adm_power = -25
# 	}

# 	option = {
# 		name = heir_education.3.OPT2
# 		add_prestige = -5
# 	}
# }

# # The Inquisitor's Apprentice
# country_event = {
# 	id = heir_education.4
# 	title = heir_education.4.T
# 	desc = heir_education.4.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	trigger = {
# 		has_heir = yes
# 		has_heir_flag = in_education_but_not_learning
# 		NOT = {
# 			has_heir_flag = educated_by_artist
# 			has_heir_flag = educated_by_natural_scientist
# 			has_heir_flag = educated_by_inquisitor
# 			has_heir_flag = educated_by_trader
# 			has_heir_flag = educated_by_spymaster
# 			has_heir_flag = educated_by_colonial_governor
# 			has_heir_flag = educated_by_army_reformer
# 			has_heir_flag = educated_by_fortification_expert
# 			has_heir_flag = educated_by_grand_captain
# 		}
# 		NOT = { heir_age = 14 }
# 		advisor = inquisitor
# 	}

# 	mean_time_to_happen = {
# 		months = 48
# 		modifier = {
# 			factor = 0.8
# 			legitimacy = 75
# 		}
# 		modifier = {
# 			factor = 1.2
# 			NOT = { legitimacy = 50 }
# 		}
# 		modifier = {
# 			factor = 1.5
# 			NOT = { religious_unity = 0.5 }
# 		}
# 		modifier = {
# 			factor = 0.5
# 			inquisitor = 3
# 		}
# 		modifier = {
# 			factor = 0.7
# 			inquisitor = 2
# 		}
# 	}

# 	option = {
# 		name = heir_education.4.OPT1
# 		set_heir_flag = educated_by_inquisitor
# 		custom_tooltip = heir_is_being_educated_by_inquisitor
# 		add_adm_power = -25
# 	}

# 	option = {
# 		name = heir_education.4.OPT2
# 		add_prestige = -5
# 	}
# }

# # The Trader's Bargain
# country_event = {
# 	id = heir_education.5
# 	title = heir_education.5.T
# 	desc = heir_education.5.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	trigger = {
# 		has_heir = yes
# 		has_heir_flag = in_education_but_not_learning
# 		NOT = {
# 			has_heir_flag = educated_by_artist
# 			has_heir_flag = educated_by_natural_scientist
# 			has_heir_flag = educated_by_inquisitor
# 			has_heir_flag = educated_by_trader
# 			has_heir_flag = educated_by_spymaster
# 			has_heir_flag = educated_by_colonial_governor
# 			has_heir_flag = educated_by_army_reformer
# 			has_heir_flag = educated_by_fortification_expert
# 			has_heir_flag = educated_by_grand_captain
# 		}
# 		NOT = { heir_age = 14 }
# 		advisor = trader
# 	}

# 	mean_time_to_happen = {
# 		months = 48
# 		modifier = {
# 			factor = 0.8
# 			legitimacy = 75
# 		}
# 		modifier = {
# 			factor = 0.8
# 			is_trade_league_leader = yes
# 		}
# 		modifier = {
# 			factor = 0.7
# 			trade_efficiency = 0.25
# 		}
# 		modifier = {
# 			factor = 0.5
# 			trade_efficiency = 0.5
# 		}
# 		modifier = {
# 			factor = 0.5
# 			trader = 3
# 		}
# 		modifier = {
# 			factor = 0.7
# 			trader = 2
# 		}
# 	}

# 	option = {
# 		name = heir_education.5.OPT1
# 		set_heir_flag = educated_by_trader
# 		custom_tooltip = heir_is_being_educated_by_trader
# 		add_dip_power = -25
# 	}

# 	option = {
# 		name = heir_education.5.OPT2
# 		add_prestige = -5
# 	}
# }

# # The Spymaster's Secrets
# country_event = {
# 	id = heir_education.6
# 	title = heir_education.6.T
# 	desc = heir_education.6.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	trigger = {
# 		has_heir = yes
# 		has_heir_flag = in_education_but_not_learning
# 		NOT = {
# 			has_heir_flag = educated_by_artist
# 			has_heir_flag = educated_by_natural_scientist
# 			has_heir_flag = educated_by_inquisitor
# 			has_heir_flag = educated_by_trader
# 			has_heir_flag = educated_by_spymaster
# 			has_heir_flag = educated_by_colonial_governor
# 			has_heir_flag = educated_by_army_reformer
# 			has_heir_flag = educated_by_fortification_expert
# 			has_heir_flag = educated_by_grand_captain
# 		}
# 		NOT = { heir_age = 14 }
# 		advisor = spymaster
# 	}

# 	mean_time_to_happen = {
# 		months = 48
# 		modifier = {
# 			factor = 0.8
# 			legitimacy = 75
# 		}
# 		modifier = {
# 			factor = 1.2
# 			is_at_war = yes
# 		}
# 		modifier = {
# 			factor = 0.7
# 			stability = 1
# 		}
# 		modifier = {
# 			factor = 0.5
# 			stability = 3
# 		}
# 		modifier = {
# 			factor = 0.5
# 			spymaster = 3
# 		}
# 		modifier = {
# 			factor = 0.7
# 			spymaster = 2
# 		}
# 	}

# 	option = {
# 		name = heir_education.6.OPT1
# 		set_heir_flag = educated_by_spymaster
# 		custom_tooltip = heir_is_being_educated_by_spymaster
# 		add_dip_power = -25
# 	}

# 	option = {
# 		name = heir_education.6.OPT2
# 		add_prestige = -5
# 	}
# }

# # The Governor's Expeditions
# country_event = {
# 	id = heir_education.7
# 	title = heir_education.7.T
# 	desc = heir_education.7.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	trigger = {
# 		has_heir = yes
# 		has_heir_flag = in_education_but_not_learning
# 		NOT = {
# 			has_heir_flag = educated_by_artist
# 			has_heir_flag = educated_by_natural_scientist
# 			has_heir_flag = educated_by_inquisitor
# 			has_heir_flag = educated_by_trader
# 			has_heir_flag = educated_by_spymaster
# 			has_heir_flag = educated_by_colonial_governor
# 			has_heir_flag = educated_by_army_reformer
# 			has_heir_flag = educated_by_fortification_expert
# 			has_heir_flag = educated_by_grand_captain
# 		}
# 		NOT = { heir_age = 14 }
# 		advisor = colonial_governor
# 	}

# 	mean_time_to_happen = {
# 		months = 48
# 		modifier = {
# 			factor = 0.8
# 			legitimacy = 75
# 		}
# 		modifier = {
# 			factor = 1.5
# 			NOT = { colony = 3 }
# 		}
# 		modifier = {
# 			factor = 0.7
# 			num_of_colonists = 1
# 		}
# 		modifier = {
# 			factor = 0.5
# 			num_of_colonists = 3
# 		}
# 		modifier = {
# 			factor = 0.5
# 			colonial_governor = 3
# 		}
# 		modifier = {
# 			factor = 0.7
# 			colonial_governor = 2
# 		}
# 	}

# 	option = {
# 		name = heir_education.7.OPT1
# 		set_heir_flag = educated_by_colonial_governor
# 		custom_tooltip = heir_is_being_educated_by_colonial_governor
# 		add_dip_power = -25
# 	}

# 	option = {
# 		name = heir_education.7.OPT2
# 		add_prestige = -5
# 	}
# }

# # The Reformer's Tactics
# country_event = {
# 	id = heir_education.8
# 	title = heir_education.8.T
# 	desc = heir_education.8.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	trigger = {
# 		has_heir = yes
# 		has_heir_flag = in_education_but_not_learning
# 		NOT = {
# 			has_heir_flag = educated_by_artist
# 			has_heir_flag = educated_by_natural_scientist
# 			has_heir_flag = educated_by_inquisitor
# 			has_heir_flag = educated_by_trader
# 			has_heir_flag = educated_by_spymaster
# 			has_heir_flag = educated_by_colonial_governor
# 			has_heir_flag = educated_by_army_reformer
# 			has_heir_flag = educated_by_fortification_expert
# 			has_heir_flag = educated_by_grand_captain
# 		}
# 		NOT = { heir_age = 14 }
# 		advisor = army_reformer
# 	}

# 	mean_time_to_happen = {
# 		months = 48
# 		modifier = {
# 			factor = 0.8
# 			legitimacy = 75
# 		}
# 		modifier = {
# 			factor = 0.8
# 			is_at_war = yes
# 		}
# 		modifier = {
# 			factor = 0.7
# 			mil = 5
# 		}
# 		modifier = {
# 			factor = 0.5
# 			mil = 6
# 		}
# 		modifier = {
# 			factor = 0.5
# 			army_reformer = 3
# 		}
# 		modifier = {
# 			factor = 0.7
# 			army_reformer = 2
# 		}
# 	}

# 	option = {
# 		name = heir_education.8.OPT1
# 		set_heir_flag = educated_by_army_reformer
# 		custom_tooltip = heir_is_being_educated_by_army_reformer
# 		add_mil_power = -25
# 	}

# 	option = {
# 		name = heir_education.8.OPT2
# 		add_prestige = -5
# 	}
# }

# # The Fortifier's Defence
# country_event = {
# 	id = heir_education.9
# 	title = heir_education.9.T
# 	desc = heir_education.9.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	trigger = {
# 		has_heir = yes
# 		has_heir_flag = in_education_but_not_learning
# 		NOT = {
# 			has_heir_flag = educated_by_artist
# 			has_heir_flag = educated_by_natural_scientist
# 			has_heir_flag = educated_by_inquisitor
# 			has_heir_flag = educated_by_trader
# 			has_heir_flag = educated_by_spymaster
# 			has_heir_flag = educated_by_colonial_governor
# 			has_heir_flag = educated_by_army_reformer
# 			has_heir_flag = educated_by_fortification_expert
# 			has_heir_flag = educated_by_grand_captain
# 		}
# 		NOT = { heir_age = 14 }
# 		advisor = fortification_expert
# 	}

# 	mean_time_to_happen = {
# 		months = 48
# 		modifier = {
# 			factor = 0.8
# 			legitimacy = 75
# 		}
# 		modifier = {
# 			factor = 0.8
# 			is_at_war = yes
# 		}
# 		modifier = {
# 			factor = 0.7
# 			mil = 5
# 		}
# 		modifier = {
# 			factor = 0.5
# 			mil = 6
# 		}
# 		modifier = {
# 			factor = 0.5
# 			fortification_expert = 3
# 		}
# 		modifier = {
# 			factor = 0.7
# 			fortification_expert = 2
# 		}
# 	}

# 	option = {
# 		name = heir_education.9.OPT1
# 		set_heir_flag = educated_by_fortification_expert
# 		custom_tooltip = heir_is_being_educated_by_fortification_expert
# 		add_mil_power = -25
# 	}

# 	option = {
# 		name = heir_education.9.OPT2
# 		add_prestige = -5
# 	}
# }

# # The Grand Captain's Men
# country_event = {
# 	id = heir_education.10
# 	title = heir_education.10.T
# 	desc = heir_education.10.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	trigger = {
# 		has_heir = yes
# 		has_heir_flag = in_education_but_not_learning
# 		NOT = {
# 			has_heir_flag = educated_by_artist
# 			has_heir_flag = educated_by_natural_scientist
# 			has_heir_flag = educated_by_inquisitor
# 			has_heir_flag = educated_by_trader
# 			has_heir_flag = educated_by_spymaster
# 			has_heir_flag = educated_by_colonial_governor
# 			has_heir_flag = educated_by_army_reformer
# 			has_heir_flag = educated_by_fortification_expert
# 			has_heir_flag = educated_by_grand_captain
# 		}
# 		NOT = { heir_age = 14 }
# 		advisor = grand_captain
# 	}

# 	mean_time_to_happen = {
# 		months = 48
# 		modifier = {
# 			factor = 0.8
# 			legitimacy = 75
# 		}
# 		modifier = {
# 			factor = 0.8
# 			is_at_war = yes
# 		}
# 		modifier = {
# 			factor = 0.7
# 			mil = 5
# 		}
# 		modifier = {
# 			factor = 0.5
# 			mil = 6
# 		}
# 		modifier = {
# 			factor = 0.5
# 			grand_captain = 3
# 		}
# 		modifier = {
# 			factor = 0.7
# 			grand_captain = 2
# 		}
# 	}

# 	option = {
# 		name = heir_education.10.OPT1
# 		set_heir_flag = educated_by_grand_captain
# 		custom_tooltip = heir_is_being_educated_by_grand_captain
# 		add_mil_power = -25
# 	}

# 	option = {
# 		name = heir_education.10.OPT2
# 		add_prestige = -5
# 	}
# }

# # Heir's Education has Finished ( Excellent Education )
# country_event = {
# 	id = heir_education.11
# 	title = heir_education.11.T
# 	desc = heir_education.11.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	trigger = {
# 		has_heir = yes
# 		has_heir_flag = in_education_excellent
# 		heir_age = 14
# 	}

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	immediate = {
# 		hidden_effect = {
# 		clr_heir_flag = in_education_excellent
# 		clr_heir_flag = in_education_good
# 		clr_heir_flag = in_education_average
# 		clr_heir_flag = in_education_but_not_learning }
# 	}

# 	option = {
# 		name = heir_education.11.OPT1
#  		hidden_effect = {
# 			random_list = {
# 				20 = {
# 					country_event = {
# 						id = heir_education.101 #Heir add 1 adm and 1 dip and 1 mil AKA Respected Scholar
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.102 #Heir plus 2 dip but minus 1 mil AKA Shadow Mastermind
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.103 #Heir plus 2 mil and 2 adm AKA Military Mathematician
# 						days = 1
# 					}
# 				}
# 				13 = {
# 					country_event = {
# 						id = heir_education.104 #Heir plus 3 adm but minus 2 dip AKA Gullible Genius
# 						days = 1
# 					}
# 				}
# 				15 = {
# 					country_event = {
# 						id = heir_education.105 #Heir plus 3 mil but minus 1 adm AKA Master of the Sword
# 						days = 1
# 					}
# 				}
# 				13 = {
# 					country_event = {
# 						id = heir_education.106 #Heir plus 2 adm and 2 dip AKA Pragmatic Jury
# 						days = 1
# 					}
# 				}
# 				5 = {
# 					country_event = {
# 						id = heir_education.107 #Heir minus 1 adm and 1 dip and 1 mil AKA Dim Pupil
# 						days = 1
# 					}
# 				}
# 				2 = {
# 					country_event = {
# 						id = heir_education.108 #Heir minus 3 adm and 3 mil but plus 3 dip AKA Merry Drunkard
# 						days = 1
# 					}
# 				}
# 				2 = {
# 					country_event = {
# 						id = heir_education.109 #Heir minus 3 adm and 3 dip but plus 3 mil AKA Not-so-Bright Warrior
# 						days = 1
# 					}
# 				}
# 				5 = {
# 					country_event = {
# 						id = heir_education.110 #Heir plus 1 adm and 1 mil but minus 1 dip AKA Pious Zealot
# 						days = 1
# 					}
# 				}
# 				5 = {
# 					country_event = {
# 						id = heir_education.111 #Heir plus 2 adm AKA Curious Skeptic
# 						days = 1
# 					}
# 				}
# 			}
# 		}
# 	}
# }

# # Heir's Education has Finished ( Good Education )
# country_event = {
# 	id = heir_education.12
# 	title = heir_education.12.T
# 	desc = heir_education.12.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	trigger = {
# 		has_heir = yes
# 		has_heir_flag = in_education_good
# 		heir_age = 14
# 	}

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	immediate = {
# 		hidden_effect = {
# 		clr_heir_flag = in_education_excellent
# 		clr_heir_flag = in_education_good
# 		clr_heir_flag = in_education_average
# 		clr_heir_flag = in_education_but_not_learning }
# 	}

# 	option = {
# 		name = heir_education.12.OPT1
#  		hidden_effect = {
# 			random_list = {
# 				10 = {
# 					country_event = {
# 						id = heir_education.101 #Heir add 1 adm and 1 dip and 1 mil AKA Respected Scholar
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.102 #Heir plus 2 dip but minus 1 mil AKA Shadow Mastermind
# 						days = 1
# 					}
# 				}
# 				5 = {
# 					country_event = {
# 						id = heir_education.103 #Heir plus 2 mil and 2 adm AKA Military Mathematician
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.104 #Heir plus 3 adm but minus 2 dip AKA Gullible Genius
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.105 #Heir plus 3 mil but minus 1 adm AKA Master of the Sword
# 						days = 1
# 					}
# 				}
# 				5 = {
# 					country_event = {
# 						id = heir_education.106 #Heir plus 2 adm and 2 dip AKA Pragmatic Jury
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.107 #Heir minus 1 adm and 1 dip and 1 mil AKA Dim Pupil
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.108 #Heir minus 3 adm and 3 mil but plus 3 dip AKA Merry Drunkard
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.109 #Heir minus 3 adm and 3 dip but plus 3 mil AKA Not-so-Bright Warrior
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.110 #Heir plus 1 adm and 1 mil but minus 1 dip AKA Pious Zealot
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.111 #Heir plus 2 adm AKA Curious Skeptic
# 						days = 1
# 					}
# 				}
# 			}
# 		}
# 	}
# }

# # Heir's Education has Finished ( Average Education )
# country_event = {
# 	id = heir_education.13
# 	title = heir_education.13.T
# 	desc = heir_education.13.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	trigger = {
# 		has_heir = yes
# 		has_heir_flag = in_education_average
# 		heir_age = 14
# 	}

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	immediate = {
# 		hidden_effect = {
# 		clr_heir_flag = in_education_excellent
# 		clr_heir_flag = in_education_good
# 		clr_heir_flag = in_education_average
# 		clr_heir_flag = in_education_but_not_learning }
# 	}
# 	option = {
# 		name = heir_education.13.OPT1
#  		hidden_effect = {
# 			random_list = {
# 				15 = {
# 					country_event = {
# 						id = heir_education.101 #Heir add 1 adm and 1 dip and 1 mil AKA Respected Scholar
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.112 #Heir minus 1 adm and 1 dip AKA Unfortunate Gambler
# 						days = 1
# 					}
# 				}
# 				5 = {
# 					country_event = {
# 						id = heir_education.103 #Heir plus 2 mil and 2 adm AKA Military Mathematician
# 						days = 1
# 					}
# 				}
# 				5 = {
# 					country_event = {
# 						id = heir_education.104 #Heir plus 3 adm but minus 2 dip AKA Gullible Genius
# 						days = 1
# 					}
# 				}
# 				5 = {
# 					country_event = {
# 						id = heir_education.115 #Heir plus 1 adm and 1 dip but minus 3 mil AKA Jolly Performer
# 						days = 1
# 					}
# 				}
# 				5 = {
# 					country_event = {
# 						id = heir_education.106 #Heir plus 2 adm and 2 dip AKA Pragmatic Jury
# 						days = 1
# 					}
# 				}
# 				20 = {
# 					country_event = {
# 						id = heir_education.107 #Heir minus 1 adm and 1 dip and 1 mil AKA Dim Pupil
# 						days = 1
# 					}
# 				}
# 				5 = {
# 					country_event = {
# 						id = heir_education.108 #Heir minus 3 adm and 3 mil but plus 3 dip AKA Merry Drunkard
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.114 #Heir plus 2 dip AKA Mercantile Maestro
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.110 #Heir plus 1 adm and 1 mil but minus 1 dip AKA Pious Zealot
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.111 #Heir plus 2 adm AKA Curious Skeptic
# 						days = 1
# 					}
# 				}
# 			}
# 		}
# 	}
# }

# # Heir's Education has Finished ( No Education )
# country_event = {
# 	id = heir_education.14
# 	title = heir_education.14.T
# 	desc = heir_education.14.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	trigger = {
# 		has_heir = yes
# 		has_heir_flag = in_education_but_not_learning
# 		heir_age = 14
# 	}

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	immediate = {
# 		hidden_effect = {
# 		clr_heir_flag = in_education_excellent
# 		clr_heir_flag = in_education_good
# 		clr_heir_flag = in_education_average
# 		clr_heir_flag = in_education_but_not_learning }
# 	}

# 	option = {
# 		name = heir_education.14.OPT1
#  		hidden_effect = {
# 			random_list = {
# 				5 = {
# 					country_event = {
# 						id = heir_education.102 #Heir plus 2 dip but minus 1 mil AKA Shadow Mastermind
# 						days = 1
# 					}
# 				}
# 				20 = {
# 					country_event = {
# 						id = heir_education.108 #Heir minus 3 adm and 3 mil but plus 3 dip AKA Merry Drunkard
# 						days = 1
# 					}
# 				}
# 				15 = {
# 					country_event = {
# 						id = heir_education.109 #Heir minus 3 adm and 3 dip but plus 3 mil AKA Not-so-Bright Warrior
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.111 #Heir plus 2 adm AKA Curious Skeptic
# 						days = 1
# 					}
# 				}
# 				15 = {
# 					country_event = {
# 						id = heir_education.112 #Heir minus 1 adm and 1 dip AKA Unfortunate Gambler
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.113 #Heir plus 1 adm but minus 1 mil AKA Believer of the Occult
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.114 #Heir plus 2 dip AKA Mercantile Maestro
# 						days = 1
# 					}
# 				}
# 				10 = {
# 					country_event = {
# 						id = heir_education.115 #Heir plus 1 adm and 1 dip but minus 3 mil AKA Jolly Performer
# 						days = 1
# 					}
# 				}
# 			}
# 		}
# 	}
# }

# # Respected Scholar
# country_event = {
# 	id = heir_education.101
# 	title = heir_education.101.T
# 	desc = heir_education.101.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.101.OPT1
# 		if = {
# 			limit = {
# 				heir_adm = 6
# 			}
# 			add_adm_power = 100
# 		}
# 		else = {
# 			change_heir_adm = 1
# 		}
# 		if = {
# 			limit = {
# 				heir_dip = 6
# 			}
# 			add_dip_power = 100
# 		}
# 		else = {
# 			change_heir_dip = 1
# 		}
# 		if = {
# 			limit = {
# 				heir_mil = 6
# 			}
# 			add_mil_power = 100
# 		}
# 		else = {
# 			change_heir_mil = 1
# 		}
# 		add_prestige_or_monarch_power = { amount = 5 }
# 	}
# }

# # Shadow Mastermind
# country_event = {
# 	id = heir_education.102
# 	title = heir_education.102.T
# 	desc = heir_education.102.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.102.OPT1
# 		if = {
# 			limit = {
# 				heir_dip = 6
# 			}
# 			add_dip_power = 200
# 		}
# 		else = {
# 			change_heir_dip = 2
# 		}
# 		if = {
# 			limit = {
# 				heir_mil = 6
# 			}
# 			add_mil_power = 100
# 		}
# 		else = {
# 			change_heir_mil = 1
# 		}
# 		add_prestige_or_monarch_power = { amount = 5 }
# 	}
# }

# # Military Mathematician
# country_event = {
# 	id = heir_education.103
# 	title = heir_education.103.T
# 	desc = heir_education.103.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.103.OPT1
# 		if = {
# 			limit = {
# 				heir_adm = 5
# 			}
# 			add_adm_power = 200
# 		}
# 		else = {
# 			change_heir_adm = 2
# 		}
# 		if = {
# 			limit = {
# 				heir_mil = 5
# 			}
# 			add_mil_power = 200
# 		}
# 		else = {
# 			change_heir_mil = 2
# 		}
# 		add_prestige_or_monarch_power = { amount = 5 }
# 	}
# }

# # Gullible Genius
# country_event = {
# 	id = heir_education.104
# 	title = heir_education.104.T
# 	desc = heir_education.104.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.104.OPT1
# 		if = {
# 			limit = {
# 				heir_adm = 4
# 			}
# 			add_adm_power = 300
# 		}
# 		else = {
# 			change_heir_adm = 3
# 		}
# 		change_heir_dip = -2
# 		add_prestige_or_monarch_power = { amount = 5 }
# 	}
# }

# # Master of the Sword
# country_event = {
# 	id = heir_education.105
# 	title = heir_education.105.T
# 	desc = heir_education.105.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.105.OPT1
# 		if = {
# 			limit = {
# 				heir_mil = 4
# 			}
# 			add_mil_power = 300
# 		}
# 		else = {
# 			change_heir_mil = 3
# 		}
# 		change_heir_adm = -1
# 		add_prestige_or_monarch_power = { amount = 5 }
# 	}
# }

# # Pragmatic Jury
# country_event = {
# 	id = heir_education.106
# 	title = heir_education.106.T
# 	desc = heir_education.106.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.106.OPT1
# 		if = {
# 			limit = {
# 				heir_dip = 5
# 			}
# 			add_dip_power = 200
# 		}
# 		else = {
# 			change_heir_dip = 2
# 		}
# 		if = {
# 			limit = {
# 				heir_adm = 5
# 			}
# 			add_adm_power = 200
# 		}
# 		else = {
# 			change_heir_adm = 2
# 		}
# 		add_prestige_or_monarch_power = { amount = 5 }
# 	}
# }

# # Dim Pupil
# country_event = {
# 	id = heir_education.107
# 	title = heir_education.107.T
# 	desc = heir_education.107.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.107.OPT1
# 		change_heir_dip = -1
# 		change_heir_adm = -1
# 		change_heir_mil = -1
# 		add_prestige = -5
# 	}
# }

# # Merry Drunkard
# country_event = {
# 	id = heir_education.108
# 	title = heir_education.108.T
# 	desc = heir_education.108.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.108.OPT1
# 		if = {
# 			limit = {
# 				heir_dip = 4
# 			}
# 			add_dip_power = 300
# 		}
# 		else = {
# 			change_heir_mil = 3
# 		}
# 		change_heir_adm = -2
# 		change_heir_mil = -2
# 		add_prestige = -5
# 	}
# }

# # Not-so-bright Warrior
# country_event = {
# 	id = heir_education.109
# 	title = heir_education.109.T
# 	desc = heir_education.109.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.109.OPT1
# 		change_heir_dip = -3
# 		change_heir_adm = -3
# 		if = {
# 			limit = {
# 				heir_mil = 3
# 			}
# 			add_mil_power = 400
# 		}
# 		else = {
# 			change_heir_mil = 4
# 		}
# 		add_prestige = -5
# 	}
# }

# # Pious Zealot
# country_event = {
# 	id = heir_education.110
# 	title = heir_education.110.T
# 	desc = heir_education.110.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.110.OPT1
# 		if = {
# 			limit = {
# 				heir_adm = 6
# 			}
# 			add_adm_power = 100
# 		}
# 		else = {
# 			change_heir_adm = 1
# 		}
# 		if = {
# 			limit = {
# 				heir_mil = 6
# 			}
# 			add_mil_power = 100
# 		}
# 		else = {
# 			change_heir_mil = 1
# 		}
# 		change_heir_dip = -1
# 		add_prestige_or_monarch_power = { amount = 5 }
# 		change_religious_influence_equivalent_fee = { add = 5 }
# 	}
# }

# # Curious Skeptic
# country_event = {
# 	id = heir_education.111
# 	title = heir_education.111.T
# 	desc = heir_education.111.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.111.OPT1
# 		if = {
# 			limit = {
# 				heir_adm = 6
# 			}
# 			add_adm_power = 100
# 		}
# 		else = {
# 			change_heir_adm = 1
# 		}
# 		if = {
# 			limit = {
# 				heir_mil = 6
# 			}
# 			add_mil_power = 100
# 		}
# 		else = {
# 			change_heir_mil = 1
# 		}
# 		change_heir_dip = -1
# 		add_prestige_or_monarch_power = { amount = 5 }
# 		change_religious_influence_equivalent_fee = { remove = 5 }
# 	}
# }

# # Unfortunate Gambler
# country_event = {
# 	id = heir_education.112
# 	title = heir_education.112.T
# 	desc = heir_education.112.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.112.OPT1
# 		change_heir_dip = -1
# 		change_heir_adm = -1
# 		add_years_of_income = -0.5
# 		add_prestige = -5
# 	}
# }

# # Believer of the Occult
# country_event = {
# 	id = heir_education.113
# 	title = heir_education.113.T
# 	desc = heir_education.113.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.113.OPT1
# 		change_heir_mil = -1
# 		change_heir_adm = -1
# 		add_prestige = -5
# 		change_religious_influence_equivalent_fee = { remove = 5 }
# 	}
# }

# # Mercantile Maestro
# country_event = {
# 	id = heir_education.114
# 	title = heir_education.114.T
# 	desc = heir_education.114.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.114.OPT1
# 		if = {
# 			limit = {
# 				heir_dip = 6
# 			}
# 			add_dip_power = 100
# 		}
# 		else_if = {
# 			limit = {
# 				heir_dip = 5
# 			}
# 			add_dip_power = 200
# 			}
# 		else = {
# 			change_heir_dip = 2
# 		}
# 		add_prestige_or_monarch_power = { amount = 5 }
# 	}
# }

# # Jolly Performer
# country_event = {
# 	id = heir_education.115
# 	title = heir_education.115.T
# 	desc = heir_education.115.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	is_triggered_only = yes

# 	mean_time_to_happen = {
# 		days = 1
# 	}

# 	option = {
# 		name = heir_education.115.OPT1
# 		if = {
# 			limit = {
# 				heir_adm = 6
# 			}
# 			add_adm_power = 100
# 		}
# 		else = {
# 			change_heir_adm = 1
# 		}
# 		if = {
# 			limit = {
# 				heir_dip = 6
# 			}
# 			add_dip_power = 100
# 		}
# 		else = {
# 			change_heir_dip = 1
# 		}
# 		change_heir_mil = -3
# 		add_prestige_or_monarch_power = { amount = 5 }
# 	}
# }

# # Extra Lessons?
# country_event = {
# 	id = heir_education.200
# 	title = heir_education.200.T
# 	desc = heir_education.200.D
# 	picture = HEIR_EDUCATION_eventPicture

# 	immediate = { set_heir_flag = Extra_Lessons_Fired }
# 	trigger = {
# 		heir_age = 7
# 		NOT = { heir_age = 14 }
# 		OR = {
# 			has_heir_flag = in_education_excellent
# 			has_heir_flag = in_education_good
# 			has_heir_flag = in_education_average
# 		}
# 		NOT = {
# 			OR = {
# 				has_heir_flag = more_homework
# 				has_heir_flag = more_etiquette
# 				has_heir_flag = more_fencing
# 				has_heir_flag = extra_lessons_declined
# 				has_heir_flag = Extra_Lessons_Fired
# 			}
# 		}
# 	}

# 	mean_time_to_happen = {
# 		days = 360
# 	}

# 	option = {
# 		name = heir_education.200.OPT1	#Homework!
# 		if = {
# 			limit = {
# 				heir_adm = 6
# 			}
# 			add_adm_power = 100
# 		}
# 		else = {
# 			change_heir_adm = 1
# 		}
# 		set_heir_flag = more_homework
# 		add_years_of_income = -0.5
# 	}

# 	option = {
# 		name = heir_education.200.OPT2	#Etiquette!
# 		if = {
# 			limit = {
# 				heir_dip = 6
# 			}
# 			add_dip_power = 100
# 		}
# 		else = {
# 			change_heir_dip = 1
# 		}
# 		set_heir_flag = more_etiquette
# 		add_years_of_income = -0.5
# 	}

# 	option = {
# 		name = heir_education.200.OPT3	#Fencing!
# 		if = {
# 			limit = {
# 				heir_mil = 6
# 			}
# 			add_mil_power = 100
# 		}
# 		else = {
# 			change_heir_mil = 1
# 		}
# 		set_heir_flag = more_fencing
# 		add_years_of_income = -0.5
# 	}

# 	option = {
# 		name = heir_education.200.e	#Leave them some space.
# 		set_heir_flag = extra_lessons_declined
# 	}
# }
