namespace = cato_education_events_education_progress
###0001-0999 General Education Events
###1000-1999 Clerical Education Events
###2000-2999 Administrative Education Events
###3000-3999 Scholastic Education Events
###4000-4999 Diplomacy Education Events
###5000-5999 Intrigue Education Events
###6000-6999 Trade Education Events
###7000-7999 Martial AND Logistics Education Events (They share most modifiers)
###8000-8999 Naval Education Events
############
### General Events
############
country_event = {
	id = cato_education_events_education_progress.0001 ###The AI randomly selects an event to give you
	title = cato_education_events_education_progress.0001.title
	desc = cato_education_events_education_progress.0001.desc
	picture = ECONOMY_eventPicture
	
	hidden = yes
	trigger = {
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		NOT = {
			check_variable = {
				which = heir_education_event_number
				value = 16
			}
		}
		OR = {
			NOT = { has_country_flag = recent_education_event }
			had_country_flag = {
				flag = recent_education_event
				days = 180
			}
		}
	}
	immediate = {
		change_variable = {
			which = heir_education_event_number
			value = 1
		}
		clr_country_flag = recent_education_event
		set_country_flag = recent_education_event
	}
	option = {
		name = cato_education_events_education_progress.0002.title
		trigger = {
			any_ally = { #Must be ally and at least be on tech parity or better
				NOT = {
					tech_difference = 1
					has_opinion_modifier = {
						who = ROOT
						modifier = he_opinion_tutoring_heir
					}
				}
			}
		}
		country_event = { id = cato_education_events_education_progress.0002 }
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0.1
				any_ally = {
					has_opinion_modifier = {
						who = ROOT
						modifier = he_opinion_tutoring_heir
					}
				}
			}
		}
	}
	option = {
		name = cato_education_events_education_progress.0003.title
		country_event = { id = cato_education_events_education_progress.0003 }
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				has_heir_flag = heir_chose_education_category
			}
			modifier = {
				factor = 0.25
				has_heir_flag = heir_chose_education_subcategory
			}
		}
	}
	option = {
		name = cato_education_events_education_progress.0004.title
		country_event = { id = cato_education_events_education_progress.0004 }
		ai_chance = {
			factor = 0.5
			modifier = {
				factor = 0
				has_heir_flag = started_adm_education
				heir_adm = 3
			}
			modifier = {
				factor = 0
				has_heir_flag = started_dip_education
				heir_dip = 3
			}
			modifier = {
				factor = 0
				has_heir_flag = started_mil_education
				heir_mil = 3
			}
			modifier = {
				factor = 4
				has_heir_flag = started_adm_education
				NOT = { heir_adm = 1 }
			}
			modifier = {
				factor = 4
				has_heir_flag = started_dip_education
				NOT = { heir_dip = 1 }
			}
			modifier = {
				factor = 4
				has_heir_flag = started_mil_education
				NOT = { heir_mil = 1 }
			}
		}
	}
	option = {
		name = cato_education_events_education_progress.0005.title
		country_event = { id = cato_education_events_education_progress.0005 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.0006.title
		country_event = { id = cato_education_events_education_progress.0006 }
		ai_chance = { factor = 0.5 }
	}
	option = {
		name = cato_education_events_education_progress.0007.title
		country_event = { id = cato_education_events_education_progress.0007 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.0008.title
		country_event = { id = cato_education_events_education_progress.0008 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.0009.title
		country_event = { id = cato_education_events_education_progress.0009 }
		ai_chance = {
			factor = 0.2
			modifier = {
				factor = 0
				has_heir_flag = tutor_fraud
			}
		}
	}
	option = {
		name = cato_education_events_education_progress.0010.title
		trigger = {
			NOT = {
				has_heir_flag = tutored_by_rulers_tutor
			}
		}
		country_event = { id = cato_education_events_education_progress.0010 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.0011.title
		trigger = {
			NOT = {
				has_heir_flag = decadent_heir
			}
		}
		country_event = { id = cato_education_events_education_progress.0011 }
		ai_chance = { factor = 0.1 }
	}
	option = {
		name = cato_education_events_education_progress.0012.title
		trigger = {
			NOT = {
				has_heir_flag = heir_chose_education_category
			}
		}
		country_event = { id = cato_education_events_education_progress.0012 }
		ai_chance = {
			factor = 0.1
			modifier = {
				factor = 0.5
				has_heir_flag = heir_chose_education_subcategory
			}
		}
	}
	option = {
		name = cato_education_events_education_progress.1000.title
		trigger = {
			has_heir_flag = clerical_education
			OR = {
				has_idea_group = religious_ideas
				has_idea_group = humanist_ideas
			}
		}
		country_event = { id = cato_education_events_education_progress.1000 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.1001.title
		trigger = {
			has_heir_flag = clerical_education
			capital_scope = {
				OR = {
					has_building = temple
					has_building = cathedral
				}
			}
		}
		country_event = { id = cato_education_events_education_progress.1001 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.1002.title
		trigger = {
			has_heir_flag = clerical_education
			OR = {
				advisor = theologian
				advisor = inquisitor
			}
		}
		country_event = { id = cato_education_events_education_progress.1002 }
		ai_chance = { factor = 1 }
	}
	option = { ###Visit same religion neighbor
		name = cato_education_events_education_progress.1003.title
		trigger = {
			has_heir_flag = clerical_education
			any_neighbor_country = {
				NOT = { war_with = ROOT }
				religion = ROOT
			}
		}
		country_event = { id = cato_education_events_education_progress.1003 }
		ai_chance = { factor = 1 }
	}
	option = { ###Visit different religion ally
		name = cato_education_events_education_progress.1006.title
		trigger = {
			has_heir_flag = clerical_education
			any_ally = {
				NOT = {
					religion = ROOT
				}
			}
		}
		country_event = { id = cato_education_events_education_progress.1006 }
		ai_chance = { factor = 1 }
	}
	option = { ###Heir Becomes Zealous
		name = cato_education_events_education_progress.1009.title
		trigger = {
			has_heir_flag = clerical_education
			heir_has_personality_trait = no
			NOT = { has_idea_group = humanist_ideas }
		}
		country_event = { id = cato_education_events_education_progress.1009 }
		ai_chance = { factor = 0.5 }
	}
	option = { ###Heir Becomes Tolerant
		name = cato_education_events_education_progress.1010.title
		trigger = {
			has_heir_flag = clerical_education
			heir_has_personality_trait = no
			NOT = { has_idea_group = religious_ideas }
		}
		country_event = { id = cato_education_events_education_progress.1010 }
		ai_chance = { factor = 0.5 }
	}
	option = { ###Heir Helps convert province
		name = cato_education_events_education_progress.1011.title
		trigger = {
			has_heir_flag = clerical_education
			any_owned_province = {
				NOT = { religion = ROOT }
			}
		}
		country_event = { id = cato_education_events_education_progress.1011 }
		ai_chance = { factor = 0.5 }
	}
	option = { ###Heir secludes themselves in a religous place
		name = cato_education_events_education_progress.1014.title
		trigger = {
			has_heir_flag = clerical_education
		}
		country_event = { id = cato_education_events_education_progress.1014 }
		ai_chance = { factor = 1 }
	}
	option = { ### Clergy Assist Education
		name = cato_education_events_education_progress.1017.title
		trigger = {
			has_heir_flag = clerical_education
			if = {
				limit = {
					religion = hinduism
					has_estate = estate_brahmins
				}
				estate_loyalty = {
					estate = estate_brahmins
					loyalty = 60
				}
			}
			else_if = {
				limit = {
					has_estate = estate_church
				}
				estate_loyalty = {
					estate = estate_church
					loyalty = 60
				}
			}
		}
		country_event = { id = cato_education_events_education_progress.1017 }
		ai_chance = { factor = 1 }
	}
	option = { ### Heir interacts with religious minority
		name = cato_education_events_education_progress.1018.title
		trigger = {
			has_heir_flag = clerical_education
			any_owned_province = {
				NOT = {
					religion = ROOT
				}
			}
		}
		country_event = { id = cato_education_events_education_progress.1018 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.2000.title
		trigger = {
			has_heir_flag = administrative_education
			OR = {
				has_idea_group = economic_ideas
				has_idea_group = administrative_ideas
				has_idea_group = expansion_ideas
			}
		}
		country_event = { id = cato_education_events_education_progress.2000 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.2001.title
		trigger = {
			has_heir_flag = administrative_education
			capital_scope = {
				OR = {
					has_building = courthouse
					has_building = town_hall
				}
			}
		}
		country_event = { id = cato_education_events_education_progress.2001 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.2002.title
		trigger = {
			has_heir_flag = administrative_education
			OR = {
				advisor = treasurer
				advisor = master_of_mint
			}
		}
		country_event = { id = cato_education_events_education_progress.2002 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.2003.title
		trigger = {
			has_heir_flag = administrative_education
			OR = {
				NOT = { has_heir_flag = rewrote_capital_tax_code }
				had_heir_flag = {
					flag = rewrote_capital_tax_code
					days = 3650
				}
			}
		}
		country_event = { id = cato_education_events_education_progress.2003 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.2006.title
		trigger = {
			has_heir_flag = administrative_education
			heir_has_personality_trait = no
		}
		country_event = { id = cato_education_events_education_progress.2006 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.2007.title
		trigger = {
			has_heir_flag = administrative_education
			heir_has_personality_trait = no
		}
		country_event = { id = cato_education_events_education_progress.2007 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.2008.title
		trigger = {
			has_heir_flag = administrative_education
			heir_has_personality_trait = no
		}
		country_event = { id = cato_education_events_education_progress.2008 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.2009.title
		trigger = {
			has_heir_flag = administrative_education
			NOT = { has_country_modifier = HE_administrative_global_tax_boost }
			NOT = { has_country_modifier = HE_administrative_global_tax_malus }
		}
		country_event = { id = cato_education_events_education_progress.2009 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.2010.title
		trigger = {
			has_heir_flag = administrative_education
			NOT = { has_country_modifier = HE_administrative_global_tax_boost }
			NOT = { has_country_modifier = HE_administrative_global_tax_malus }
		}
		country_event = { id = cato_education_events_education_progress.2010 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.2011.title
		trigger = {
			has_heir_flag = administrative_education
			NOT = { has_country_modifier = HE_efficient_state_management }
			NOT = { has_country_modifier = HE_inefficient_state_management }
		}
		country_event = { id = cato_education_events_education_progress.2011 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.2012.title
		trigger = {
			has_heir_flag = administrative_education
			NOT = { has_country_modifier = HE_efficient_state_management }
			NOT = { has_country_modifier = HE_inefficient_state_management }
		}
		country_event = { id = cato_education_events_education_progress.2012 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.3000.title
		trigger = {
			has_heir_flag = scholastic_education
			has_idea_group = innovativeness_ideas
		}
		country_event = { id = cato_education_events_education_progress.3000 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.3001.title
		trigger = {
			has_heir_flag = scholastic_education
			capital_scope = {
				has_building = university
			}
		}
		country_event = { id = cato_education_events_education_progress.3001 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.3002.title
		trigger = {
			has_heir_flag = scholastic_education
			OR = {
				advisor = natural_scientist
				advisor = philosopher
			}
		}
		country_event = { id = cato_education_events_education_progress.3002 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.3003.title
		trigger = {
			has_heir_flag = scholastic_education
			NOT = {
				has_heir_flag = literacy_choice
			}
		}
		country_event = { id = cato_education_events_education_progress.3003 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.3004.title
		trigger = {
			has_heir_flag = scholastic_education
			NOT = {
				has_heir_flag = glasses_choice
			}
		}
		country_event = { id = cato_education_events_education_progress.3004 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.4000.title
		trigger = {
			has_heir_flag = diplomacy_education
			OR = {
				has_idea_group = diplomatic_ideas
				has_idea_group = influence_ideas
			}
		}
		country_event = { id = cato_education_events_education_progress.4000 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.4001.title
		trigger = {
			has_heir_flag = diplomacy_education
			OR = {
				advisor = diplomat
				advisor = statesman
			}
		}
		country_event = { id = cato_education_events_education_progress.4001 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.5000.title
		trigger = {
			has_heir_flag = intrigue_education
			has_idea_group = spy_ideas
		}
		country_event = { id = cato_education_events_education_progress.5000 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.5001.title
		trigger = {
			has_heir_flag = intrigue_education
			advisor = spymaster
		}
		country_event = { id = cato_education_events_education_progress.5001 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.6000.title
		trigger = {
			has_heir_flag = trade_education
			OR = {
				has_idea_group = trade_ideas
				has_idea_group = economic_ideas
				has_idea_group = maritime_ideas
			}
		}
		country_event = { id = cato_education_events_education_progress.6000 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.6001.title
		trigger = {
			has_heir_flag = trade_education
			capital_scope = {
				OR = {
					has_building = marketplace
					has_building = trade_depot
					has_building = stock_exchange
				}
			}
		}
		country_event = { id = cato_education_events_education_progress.6001 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.6002.title
		trigger = {
			has_heir_flag = trade_education
			advisor = trader
		}
		country_event = { id = cato_education_events_education_progress.6002 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.7000.title
		trigger = {
			OR = {
				has_heir_flag = martial_education
				has_heir_flag = logistics_education
			}
			OR = {
				has_idea_group = quality_ideas
				has_idea_group = quantity_ideas
				has_idea_group = offensive_ideas
				has_idea_group = defensive_ideas
				has_idea_group = aristocracy_ideas
				has_idea_group = plutocracy_ideas
			}
		}
		country_event = { id = cato_education_events_education_progress.7000 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.7001.title
		trigger = {
			OR = {
				has_heir_flag = martial_education
				has_heir_flag = logistics_education
			}
			capital_scope = {
				OR = {
					has_building = barracks
					has_building = training_fields
					has_building = regimental_camp
					has_building = conscription_center
					has_building = fort_15th
					has_building = fort_16th
					has_building = fort_17th
					has_building = fort_18th
				}
			}
		}
		country_event = { id = cato_education_events_education_progress.7001 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.7002.title
		trigger = {
			has_heir_flag = martial_education
			OR = {
				advisor = commandant
				advisor = army_reformer
				advisor = recruitmaster
			}
		}
		country_event = { id = cato_education_events_education_progress.7002 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.8003.title
		trigger = {
			has_heir_flag = logistics_education
			OR = {
				advisor = quartermaster
				advisor = grand_captain
				advisor = army_organiser
				advisor = fortification_expert
			}
		}
		country_event = { id = cato_education_events_education_progress.8003 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.9000.title
		trigger = {
			has_heir_flag = naval_education
			OR = {
				has_idea_group = naval_ideas
				has_idea_group = maritime_ideas
				has_idea_group = aristocracy_ideas
				has_idea_group = plutocracy_ideas
				has_idea_group = exploration_ideas
			}
		}
		country_event = { id = cato_education_events_education_progress.9000 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.9001.title
		trigger = {
			has_heir_flag = naval_education
			capital_scope = {
				OR = {
					has_building = shipyard
					has_building = grand_shipyard
					has_building = dock
					has_building = drydock
					has_building = coastal_defence
					has_building = naval_battery
				}
			}
		}
		country_event = { id = cato_education_events_education_progress.9001 }
		ai_chance = { factor = 1 }
	}
	option = {
		name = cato_education_events_education_progress.9002.title
		trigger = {
			has_heir_flag = naval_education
			OR = {
				advisor = navigator
				advisor = naval_reformer
			}
		}
		country_event = { id = cato_education_events_education_progress.9002 }
		ai_chance = { factor = 1 }
	}
}
country_event = {
	id = cato_education_events_education_progress.0002 ###Heir Studies Abroad
	title = cato_education_events_education_progress.0002.title
	desc = cato_education_events_education_progress.0002.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		heir_can_recieve_education_events = yes
		is_lesser_in_union = no
		any_ally = { #Must be ally and at least be on tech parity or better
			NOT = {
				tech_difference = 1
				has_opinion_modifier = {
					who = ROOT
					modifier = he_opinion_tutoring_heir
				}
			}
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.0002.a
		random_ally = {
			limit = {
				NOT = {
					tech_difference = 1
					has_opinion_modifier = {
						who = ROOT
						modifier = he_opinion_tutoring_heir
					}
				}
			}
			add_opinion = {
				who = ROOT
				modifier = he_opinion_tutoring_heir
			}
		}
		add_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.0003 ###Heir Lacks interest in subject
	title = cato_education_events_education_progress.0003.title
	desc = cato_education_events_education_progress.0003.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		heir_can_recieve_education_events = yes
		NOT = {
			has_heir_flag = heir_chose_education_category
		}
		is_lesser_in_union = no
	}
	
	
	option = {
		name = cato_education_events_education_progress.0003.a
		subtract_education_progress_small = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.0003.b
		random = {
			chance = 50
			subtract_education_progress_large = yes
		}
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.0004 ###Heir Struggles to comprehend the material
	title = cato_education_events_education_progress.0004.title
	desc = cato_education_events_education_progress.0004.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		heir_can_recieve_education_events = yes
		is_lesser_in_union = no
		if = {
			limit = {
				has_heir_flag = started_adm_education
			}
			NOT = {
				heir_adm = 3
			}
		}
		if = {
			limit = {
				has_heir_flag = started_dip_education
			}
			NOT = {
				heir_dip = 3
			}
		}
		if = {
			limit = {
				has_heir_flag = started_mil_education
			}
			NOT = {
				heir_mil = 3
			}
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.0004.a ### He'll figure it out, I'm sure...
		subtract_education_progress_small = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.0004.b ### Buy more material
		if = {
			limit = {
				NOT = {
					monthly_income = 4
				}
			}
			add_treasury = -50
		}
		else_if = {
			limit = {
				monthly_income = 4
				NOT = {
					monthly_income = 42
				}
			}
			add_years_of_income = -1
		}
		else = {
			add_treasury = -500
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.0004.c ### I shall personally tutor him
		highlight = yes
		trigger = {
			if = {
				limit = {
					has_heir_flag = started_adm_education
				}
				OR = {
					adm = 4
					ruler_has_good_adm_education = yes
				}
			}
			if = {
				limit = {
					has_heir_flag = started_dip_education
				}
				OR = {
					dip = 4
					ruler_has_good_dip_education = yes
				}
			}
			if = {
				limit = {
					has_heir_flag = started_mil_education
				}
				OR = {
					mil = 4
					ruler_has_good_mil_education = yes
				}
			}
		}
		ai_chance = {
			factor = 100
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.0005 ###Heir Making Progress
	title = cato_education_events_education_progress.0005.title
	desc = cato_education_events_education_progress.0005.desc
	picture = ECONOMY_eventPicture
	is_triggered_only = yes
	###hidden = yes
	trigger = {
		heir_can_recieve_education_events = yes
		is_lesser_in_union = no
	}
	
	
	option = {
		name = cato_education_events_education_progress.0005.a
		add_education_progress_tiny = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.0006 ###Heir fights with tutor
	title = cato_education_events_education_progress.0006.title
	desc = cato_education_events_education_progress.0006.desc
	picture = ECONOMY_eventPicture
	is_triggered_only = yes
	
	trigger = {
		heir_can_recieve_education_events = yes
		is_lesser_in_union = no
	}
	
	
	option = {
		name = cato_education_events_education_progress.0006.a ###Support the Tutor
		add_heir_claim = -10
		add_mandate = -3
		add_meritocracy = 5
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.0006.b ###Support the Heir
		subtract_education_progress_tiny = yes
		add_meritocracy = -5
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.0006.c ###Find a compromise
		if = {
			limit = {
				has_heir_flag = started_adm_education
			}
			add_adm_power = -50
		}
		else_if = {
			limit = {
				has_heir_flag = started_dip_education
			}
			add_dip_power = -50
		}
		else_if = {
			limit = {
				has_heir_flag = started_mil_education
			}
			add_mil_power = -50
		}
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.0007 ###Heir Studies Hard
	title = cato_education_events_education_progress.0007.title
	desc = cato_education_events_education_progress.0007.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	###hidden = yes
	
	trigger = {
		heir_can_recieve_education_events = yes
		is_lesser_in_union = no
	}
	
	
	option = {
		name = cato_education_events_education_progress.0007.a
		add_education_progress_small = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.0008 ###Heir Fails to Grasp Concepts
	title = cato_education_events_education_progress.0008.title
	desc = cato_education_events_education_progress.0008.desc
	picture = ECONOMY_eventPicture
	hidden = yes
	is_triggered_only = yes
	
	trigger = {
		heir_can_recieve_education_events = yes
		is_lesser_in_union = no
	}
	
	
	option = {
		name = cato_education_events_education_progress.0008.a
		subtract_education_progress_tiny = yes	
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.0009 ###Tutor is a Fraud
	title = cato_education_events_education_progress.0009.title
	desc = cato_education_events_education_progress.0009.desc
	picture = ECONOMY_eventPicture
	is_triggered_only = yes
	
	trigger = {
		heir_can_recieve_education_events = yes
		is_lesser_in_union = no
	}
	
	
	option = {
		name = cato_education_events_education_progress.0009.a
		if = {
			limit = {
				has_heir_flag = started_adm_education
			}
			add_adm_power = -15
		}
		else_if = {
			limit = {
				has_heir_flag = started_dip_education
			}
			add_dip_power = -15
		}
		else_if = {
			limit = {
				has_heir_flag = started_mil_education
			}
			add_mil_power = -15
		}
		if = {
			limit = {
				NOT = {
					monthly_income = 1
				}
			}
			add_treasury = -25
		}
		else_if = {
			limit = {
				monthly_income = 1
				NOT = {
					monthly_income = 42
				}
			}
			add_years_of_income = -0.5
		}
		else = {
			add_treasury = -250
		}
		add_prestige = -10
		set_heir_flag = tutor_fraud
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.0009.b
		subtract_education_progress_large = yes
		set_heir_flag = tutor_fraud
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.0010 ###Monarch's old tutor offers assistance
	title = cato_education_events_education_progress.0010.title
	desc = cato_education_events_education_progress.0010.desc
	picture = ECONOMY_eventPicture
	is_triggered_only = yes
	
	trigger = {
		heir_can_recieve_education_events = yes
		is_lesser_in_union = no
	}
	
	
	option = {
		name = cato_education_events_education_progress.0010.a
		add_education_progress_medium = yes
		if = {
			limit = {
				NOT = {
					monthly_income = 21
				}
			}
			add_years_of_income = -1
		}
		else = {
			add_treasury = -250
		}
		set_heir_flag = tutored_by_rulers_tutor
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.0010.b
		set_heir_flag = tutored_by_rulers_tutor
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.0011 ###Heir Grows Decadent
	title = cato_education_events_education_progress.0011.title
	desc = cato_education_events_education_progress.0011.desc
	picture = ECONOMY_eventPicture
	is_triggered_only = yes
	
	trigger = {
		heir_can_recieve_education_events = yes
		is_lesser_in_union = no
	}
	
	
	option = {
		name = cato_education_events_education_progress.0011.a
		subtract_education_progress_medium = yes
		add_heir_claim = -10
		set_heir_flag = decadent_heir
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.0012 ###Heir Wishes to Change Education
	title = cato_education_events_education_progress.0012.title
	desc = cato_education_events_education_progress.0012.desc
	picture = ECONOMY_eventPicture
	is_triggered_only = yes
	
	trigger = {
		heir_can_recieve_education_events = yes
		is_lesser_in_union = no
	}
	
	
	option = {
		name = cato_education_events_education_progress.0012.a
		subtract_education_progress_huge = yes
		ai_chance = {
			factor = 0
		}
	}
	option = {
		name = cato_education_events_education_progress.0012.b
		subtract_education_progress_small = yes
		custom_tooltip = HEIR_CHANGE_EDUCATION_SUBCATEGORY
		hidden_effect = {
			if = {
				limit = {
					OR = {
						has_heir_flag = clerical_education
						has_heir_flag = administrative_education
						has_heir_flag = scholastic_education
					}
				}
				country_event = {
					id = cato_education_events_education_progress.0014
				}
			}
			else_if = {
				limit = {
					OR = {
						has_heir_flag = diplomacy_education
						has_heir_flag = intrigue_education
						has_heir_flag = trade_education
					}
				}
				country_event = {
					id = cato_education_events_education_progress.0015
				}
			}
			else = {
				country_event = {
					id = cato_education_events_education_progress.0016
				}
			}
			set_heir_flag = heir_chose_education_subcategory
		}
		ai_chance = {
			factor = 0
		}
	}
	option = {
		name = cato_education_events_education_progress.0012.c
		custom_tooltip = HEIR_CHANGE_EDUCATION_CATEGORY
		hidden_effect = {
			clr_heir_flag = heir_chose_education_subcategory
			country_event = {
				id = cato_education_events_education_progress.0013
			}
			set_heir_flag = heir_chose_education_category
		}
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.0013 ###Heir Changes Education Major Category Hidden Event
	title = cato_education_events_education_progress.0013.title
	desc = cato_education_events_education_progress.0013.desc
	picture = ECONOMY_eventPicture
	hidden = yes
	is_triggered_only = yes
	
	trigger = {
		heir_can_recieve_education_events = yes
		is_lesser_in_union = no
	}
	
	
	option = {
		name = cato_education_events_setup_hereditary.1.a
		trigger = {
			NOT = { has_heir_flag = clerical_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = clerical_education
		set_heir_flag = started_adm_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = religious_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = humanist_ideas
			}
		}
	}
	option = {
		name = cato_education_events_setup_hereditary.1.b
		trigger = {
			NOT = { has_heir_flag = administrative_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = administrative_education
		set_heir_flag = started_adm_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = economic_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = expansion_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = administrative_ideas
			}
		}
	}
	option = {
		name = cato_education_events_setup_hereditary.1.c
		trigger = {
			NOT = { has_heir_flag = scholastic_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = scholastic_education
		set_heir_flag = started_adm_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = innovativeness_ideas
			}
		}
	}
	option = {
		name = cato_education_events_setup_hereditary.1.a
		trigger = {
			NOT = { has_heir_flag = diplomacy_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = diplomacy_education
		set_heir_flag = started_dip_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = diplomatic_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = influence_ideas
			}
		}
	}
	option = {
		name = cato_education_events_setup_hereditary.1.b
		trigger = {
			NOT = { has_heir_flag = intrigue_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = intrigue_education
		set_heir_flag = started_dip_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = spy_ideas
			}
		}
	}
	option = {
		name = cato_education_events_setup_hereditary.1.c
		trigger = {
			NOT = { has_heir_flag = trade_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = trade_education
		set_heir_flag = started_dip_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = trade_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = economic_ideas
			}
		}
	}
	option = {
		name = cato_education_events_education_progress.1.a
		trigger = {
			NOT = { has_heir_flag = martial_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = martial_education
		set_heir_flag = started_mil_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = quality_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = quantity_ideas
			}
		}
	}
	option = {
		name = cato_education_events_education_progress.1.b
		trigger = {
			NOT = { has_heir_flag = naval_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = naval_education
		set_heir_flag = started_mil_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = maritime_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = naval_ideas
			}
		}
	}
	option = {
		name = cato_education_events_education_progress.1.c
		trigger = {
			NOT = { has_heir_flag = logistics_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = logistics_education
		set_heir_flag = started_mil_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = offensive_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = defensive_ideas
			}
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.0014 ###Hidden event where the heir picks an admin sub-category.
	title = cato_education_events_education_progress.0.title
	desc = cato_education_events_education_progress.0.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	hidden = yes
	trigger = {
		has_heir = yes
		is_lesser_in_union = no
	}
	
	option = {
		name = cato_education_events_education_progress.1.a
		trigger = {
			NOT = { has_heir_flag = clerical_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = clerical_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = religious_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = humanist_ideas
			}
		}
	}
	option = {
		name = cato_education_events_education_progress.1.b
		trigger = {
			NOT = { has_heir_flag = administrative_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = administrative_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = economic_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = expansion_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = administrative_ideas
			}
		}
	}
	option = {
		name = cato_education_events_education_progress.1.c
		trigger = {
			NOT = { has_heir_flag = scholastic_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = scholastic_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = innovativeness_ideas
			}
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.0015 ###Hidden event where the heir picks an diplomatic sub-category.
	title = cato_education_events_setup_hereditary.0.title
	desc = cato_education_events_setup_hereditary.0.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	hidden = yes
	trigger = {
		has_heir = yes
		is_lesser_in_union = no
	}
	
	option = {
		name = cato_education_events_setup_hereditary.1.a
		trigger = {
			NOT = { has_heir_flag = diplomacy_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = diplomacy_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = diplomatic_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = influence_ideas
			}
		}
	}
	option = {
		name = cato_education_events_setup_hereditary.1.b
		trigger = {
			NOT = { has_heir_flag = intrigue_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = intrigue_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = spy_ideas
			}
		}
	}
	option = {
		name = cato_education_events_setup_hereditary.1.c
		trigger = {
			NOT = { has_heir_flag = trade_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = trade_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = trade_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = economic_ideas
			}
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.0016 ###Hidden event where the heir picks an military sub-category.
	title = cato_education_events_education_progress.0.title
	desc = cato_education_events_education_progress.0.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	hidden = yes
	trigger = {
		has_heir = yes
		is_lesser_in_union = no
	}
	
	option = {
		name = cato_education_events_education_progress.1.a
		trigger = {
			NOT = { has_heir_flag = martial_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = martial_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = quality_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = quantity_ideas
			}
		}
	}
	option = {
		name = cato_education_events_education_progress.1.b
		trigger = {
			NOT = { has_heir_flag = naval_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = naval_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = maritime_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = naval_ideas
			}
		}
	}
	option = {
		name = cato_education_events_education_progress.1.c
		trigger = {
			NOT = { has_heir_flag = logistics_education }
		}
		clear_heir_education_flags = yes
		set_heir_flag = logistics_education
		ai_chance = {
			factor = 1
			modifier = {
				factor = 1.2
				has_idea_group = offensive_ideas
			}
			modifier = {
				factor = 1.2
				has_idea_group = defensive_ideas
			}
		}
	}
}
############
### Improvements for Clerical Education
############
country_event = {
	id = cato_education_events_education_progress.1000 ###Has Humanist or Religious Ideas
	title = cato_education_events_education_progress.1000.title
	desc = cato_education_events_education_progress.1000.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = clerical_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		
		OR = {
			has_idea_group = religious_ideas
			has_idea_group = humanist_ideas
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.1000.a
		add_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1001 ###Has temple or cathedral in capital
	title = cato_education_events_education_progress.1001.title
	desc = cato_education_events_education_progress.1001.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = clerical_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		capital_scope = {
			OR = {
				has_building = temple
				has_building = cathedral
			}
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.1001.a
		if = {
			limit = {
				capital_scope = {
					has_building = cathedral
				}
			}
			add_education_progress_medium = yes
		}
		else = {
			add_education_progress_small = yes
		}
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1002 ###Has Inquisitor or Theologian Advisor
	title = cato_education_events_education_progress.1002.title
	desc = cato_education_events_education_progress.1002.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = clerical_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		
		OR = {
			advisor = theologian
			advisor = inquisitor
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.1002.a
		
		add_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1003 ###Heir Visits Same Religion Neighbor(setup)
	title = cato_education_events_education_progress.1003.title
	desc = cato_education_events_education_progress.1003.desc
	picture = RELIGION_eventPicture
	
	is_triggered_only = yes
	trigger = {
		has_heir_flag = clerical_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		any_neighbor_country = {
			NOT = { war_with = ROOT }
			religion = ROOT
		}
	}
	immediate = {
		hidden_effect = {
			random_neighbor_country = {
				limit = {
					religion = ROOT
				}
				save_event_target_as = same_religion_neighbor
			}
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.1003.a
		country_event = {
			id = cato_education_events_education_progress.1004
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1003.b
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1004 ###Heir Visits Same Religion Neighbor(Choose outcome)
	title = cato_education_events_education_progress.1004.title
	desc = cato_education_events_education_progress.1004.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	hidden = yes
	immediate = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.1003.a
		set_heir_flag = he_critical_success
		country_event = {
			id = cato_education_events_education_progress.1005
		}
		ai_chance = {
			factor = 5
		}
	}
	option = {
		name = cato_education_events_education_progress.1003.a
		set_heir_flag = he_success
		country_event = {
			id = cato_education_events_education_progress.1005
		}
		ai_chance = {
			factor = 45
		}
	}
	option = {
		name = cato_education_events_education_progress.1003.a
		set_heir_flag = he_neutral
		country_event = {
			id = cato_education_events_education_progress.1005
		}
		ai_chance = {
			factor = 45
		}
	}
	option = {
		name = cato_education_events_education_progress.1003.a
		set_heir_flag = he_fail
		country_event = {
			id = cato_education_events_education_progress.1005
		}
		ai_chance = {
			factor = 5
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1005 ###Heir Visits Same Religion Neighbor(Outcome)
	title = cato_education_events_education_progress.1005.title
	desc = {
		trigger = {
			has_heir_flag = he_critical_success
		}
		desc = cato_education_events_education_progress.1005.desc_critical_success
	}
	desc = {
		trigger = {
			has_heir_flag = he_success
		}
		desc = cato_education_events_education_progress.1005.desc_success
	}
	desc = {
		trigger = {
			has_heir_flag = he_neutral
		}
		desc = cato_education_events_education_progress.1005.desc_neutral
	}
	desc = {
		trigger = {
			has_heir_flag = he_fail
		}
		desc = cato_education_events_education_progress.1005.desc_fail
	}
	picture = {
		trigger= {
			OR = {
				has_heir_flag = he_critical_success
				has_heir_flag = he_success
				has_heir_flag = he_neutral
			}
		}
		picture = RELIGION_eventPicture
	}
	picture = {
		trigger= {
			has_heir_flag = he_fail
		}
		picture = RELIGIOUS_TURMOIL_eventPicture
	}
	is_triggered_only = yes
	trigger = {
	}
	option = {
		name = cato_education_events_education_progress.1005.a
		trigger = {
			has_heir_flag = he_critical_success
		}
		add_education_progress_medium = yes
		define_advisor = {
			type = theologian
			culture = event_target:same_religion_neighbor
			skill = 2
			cost_multiplier  = 0.5
		}
		event_target:same_religion_neighbor = {
			add_opinion = {
				who = ROOT
				modifier = he_heir_religion
			}
		}
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1005.b
		trigger = {
			has_heir_flag = he_success
		}
		add_education_progress_small = yes
		event_target:same_religion_neighbor = {
			add_opinion = {
				who = ROOT
				modifier = he_heir_religion
			}
		}
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1005.c
		trigger = {
			has_heir_flag = he_neutral
		}
		add_education_progress_tiny = yes
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1005.d
		trigger = {
			has_heir_flag = he_fail
		}
		subtract_education_progress_tiny = yes
		event_target:same_religion_neighbor = {
			add_opinion = {
				who = ROOT
				modifier = he_heir_religion_offended
			}
		}
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1006 ###Heir Visits Different Religion Ally(start)
	title = cato_education_events_education_progress.1006.title
	desc = cato_education_events_education_progress.1006.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = clerical_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		any_ally = {
			NOT = {
				religion = ROOT
			}
		}
	}
	immediate = {
		hidden_effect = {
			random_ally = {
				limit = {
					NOT = { religion = ROOT }
				}
				save_event_target_as = different_religion_ally
			}
		}
	}
	
	option = {
		name = cato_education_events_education_progress.1006.a ###Allow
		country_event = {
			id = cato_education_events_education_progress.1007
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1006.b ###They'll be better at home
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1007 ###Heir Visits Different Religion Ally(Choose outcome)
	title = cato_education_events_education_progress.1007.title
	desc = cato_education_events_education_progress.1007.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	hidden = yes
	immediate = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.1003.a
		set_heir_flag = he_critical_success
		country_event = {
			id = cato_education_events_education_progress.1008
		}
		ai_chance = {
			factor = 5
		}
	}
	option = {
		name = cato_education_events_education_progress.1003.a
		set_heir_flag = he_success
		country_event = {
			id = cato_education_events_education_progress.1008
		}
		ai_chance = {
			factor = 60
		}
	}
	option = {
		name = cato_education_events_education_progress.1003.a
		set_heir_flag = he_neutral
		country_event = {
			id = cato_education_events_education_progress.1008
		}
		ai_chance = {
			factor = 30
		}
	}
	option = {
		name = cato_education_events_education_progress.1003.a
		set_heir_flag = he_fail
		country_event = {
			id = cato_education_events_education_progress.1008
		}
		ai_chance = {
			factor = 5
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1008 ###Heir Visits Different Religion Ally(Result)
	title = cato_education_events_education_progress.1008.title
	desc = {
		trigger = {
			has_heir_flag = he_critical_success
		}
		desc = cato_education_events_education_progress.1008.desc_critical_success
	}
	desc = {
		trigger = {
			has_heir_flag = he_success
		}
		desc = cato_education_events_education_progress.1008.desc_success
	}
	desc = {
		trigger = {
			has_heir_flag = he_neutral
		}
		desc = cato_education_events_education_progress.1008.desc_neutral
	}
	desc = {
		trigger = {
			has_heir_flag = he_fail
		}
		desc = cato_education_events_education_progress.1008.desc_fail
	}
	picture = {
		trigger= {
			OR = {
				has_heir_flag = he_critical_success
				has_heir_flag = he_success
				has_heir_flag = he_neutral
			}
		}
		picture = RELIGION_eventPicture
	}
	picture = {
		trigger= {
			has_heir_flag = he_fail
		}
		picture = RELIGIOUS_TURMOIL_eventPicture
	}
	
	is_triggered_only = yes
	
	trigger = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.1008.a
		trigger = {
			has_heir_flag = he_critical_success
		}
		add_education_progress_medium = yes
		define_advisor = {
			type = theologian
			culture = event_target:different_religion_ally
			religion = event_target:different_religion_ally
			skill = 2
			cost_multiplier  = 0.5
		}
		event_target:different_religion_ally = {
			add_opinion = {
				who = ROOT
				modifier = he_heir_different_religion_respect
			}
		}
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1008.b
		trigger = {
			has_heir_flag = he_success
		}
		add_education_progress_small = yes
		event_target:different_religion_ally = {
			add_opinion = {
				who = ROOT
				modifier = he_heir_different_religion_respect
			}
		}
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1008.c
		trigger = {
			has_heir_flag = he_neutral
		}
		add_education_progress_tiny = yes
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1008.d
		trigger = {
			has_heir_flag = he_fail
		}
		subtract_education_progress_tiny = yes
		event_target:different_religion_ally = {
			add_opinion = {
				who = ROOT
				modifier = he_heir_different_religion_offended
			}
		}
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1009 ###Heir Becomes Zealous
	title = cato_education_events_education_progress.1009.title
	desc = cato_education_events_education_progress.1009.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	immediate = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.1009.a
		set_heir_flag = got_trait_education
		add_heir_personality = zealot_personality
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1010 ###Heir Becomes Tolerant
	title = cato_education_events_education_progress.1010.title
	desc = cato_education_events_education_progress.1010.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	immediate = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.1010.a
		set_heir_flag = got_trait_education
		add_heir_personality = tolerant_personality
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1011 ###Heir Helps Convert Provinces(start)
	title = cato_education_events_education_progress.1011.title
	desc = cato_education_events_education_progress.1011.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = clerical_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
	}
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					NOT = { religion = ROOT }
				}
				save_event_target_as = different_religion_province
			}
		}
	}
	
	option = {
		name = cato_education_events_education_progress.1011.a ###Allow
		country_event = {
			id = cato_education_events_education_progress.1012
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1011.b ###They'll be better at home
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1012 ###Heir Helps Convert Provinces(Choose outcome)
	title = cato_education_events_education_progress.1012.title
	desc = cato_education_events_education_progress.1012.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	hidden = yes
	immediate = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.1012.a
		set_heir_flag = he_critical_success
		country_event = {
			id = cato_education_events_education_progress.1013
		}
		ai_chance = {
			factor = 5
		}
	}
	option = {
		name = cato_education_events_education_progress.1012.a
		set_heir_flag = he_success
		country_event = {
			id = cato_education_events_education_progress.1013
		}
		ai_chance = {
			factor = 60
		}
	}
	option = {
		name = cato_education_events_education_progress.1012.a
		set_heir_flag = he_neutral_1
		country_event = {
			id = cato_education_events_education_progress.1013
		}
		ai_chance = {
			factor = 30
		}
	}
	option = {
		name = cato_education_events_education_progress.1012.a
		set_heir_flag = he_neutral_2
		country_event = {
			id = cato_education_events_education_progress.1013
		}
		ai_chance = {
			factor = 30
		}
	}
	option = {
		name = cato_education_events_education_progress.1012.a
		set_heir_flag = he_fail
		country_event = {
			id = cato_education_events_education_progress.1013
		}
		ai_chance = {
			factor = 5
		}
	}
	option = {
		name = cato_education_events_education_progress.1012.a
		set_heir_flag = he_critical_fail
		country_event = {
			id = cato_education_events_education_progress.1013
		}
		ai_chance = {
			factor = 5
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1013 ###Heir Helps Convert Provinces(Result)
	title = cato_education_events_education_progress.1013.title
	desc = {
		trigger = {
			has_heir_flag = he_critical_success
		}
		desc = cato_education_events_education_progress.1013.desc_critical_success
	}
	desc = {
		trigger = {
			has_heir_flag = he_success
		}
		desc = cato_education_events_education_progress.1013.desc_success
	}
	desc = {
		trigger = {
			has_heir_flag = he_neutral_1
		}
		desc = cato_education_events_education_progress.1013.desc_neutral_1
	}
	desc = {
		trigger = {
			has_heir_flag = he_neutral_2
		}
		desc = cato_education_events_education_progress.1013.desc_neutral_2
	}
	desc = {
		trigger = {
			has_heir_flag = he_fail
		}
		desc = cato_education_events_education_progress.1013.desc_fail
	}
	desc = {
		trigger = {
			has_heir_flag = he_critical_fail
		}
		desc = cato_education_events_education_progress.1013.desc_critical_fail
	}
	picture = {
		trigger= {
			OR = {
				has_heir_flag = he_critical_success
				has_heir_flag = he_success
				has_heir_flag = he_neutral_1
				has_heir_flag = he_neutral_2
			}
		}
		picture = RELIGION_eventPicture
	}
	picture = {
		trigger= {
			OR = {
				has_heir_flag = he_fail
				has_heir_flag = he_critical_fail
			}
		}
		picture = RELIGIOUS_TURMOIL_eventPicture
	}
	
	is_triggered_only = yes
	
	trigger = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.1013.a
		trigger = {
			has_heir_flag = he_critical_success
		}
		add_education_progress_medium = yes
		event_target:different_religion_province = {
			change_religion = ROOT
		}
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1013.a
		trigger = {
			has_heir_flag = he_success
		}
		add_education_progress_small = yes
		event_target:different_religion_province = {
			add_province_modifier = {
				name = fe_education_clerical_inspired_local
				duration = 3650
			}
		}
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1013.b
		trigger = {
			has_heir_flag = he_neutral_1
		}
		add_education_progress_tiny = yes
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1013.c
		trigger = {
			has_heir_flag = he_neutral_2
		}
		add_education_progress_tiny = yes
		set_heir_religion = event_target:different_religion_province
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1013.d
		trigger = {
			has_heir_flag = he_fail
		}
		subtract_education_progress_tiny = yes
		event_target:different_religion_province = {
			add_province_modifier = {
				name = fe_education_clerical_upset_local
				duration = 3650
			}
		}
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1013.d
		trigger = {
			has_heir_flag = he_critical_fail
		}
		subtract_education_progress_tiny = yes
		event_target:different_religion_province = {
			spawn_rebels = {
				type = religious_rebels
				size = 2
			}
		}
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1014 ###Heir Secludes Themselves(start)
	title = cato_education_events_education_progress.1014.title
	desc = cato_education_events_education_progress.1014.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = clerical_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
	}
	immediate = {
	}
	
	option = {
		name = cato_education_events_education_progress.1014.a ###Allow
		country_event = {
			id = cato_education_events_education_progress.1015
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1014.b ###They'll be better at court
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1015 ###Heir Seclusion(Choose outcome)
	title = cato_education_events_education_progress.1015.title
	desc = cato_education_events_education_progress.1015.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	hidden = yes
	immediate = {
		clr_heir_flag = he_critical_fail
		clr_heir_flag = he_critical_success
		clr_heir_flag = he_success
		clr_heir_flag = he_neutral
		clr_heir_flag = he_fail
	}
	
	
	option = {
		name = cato_education_events_education_progress.1012.a
		set_heir_flag = he_critical_success
		country_event = {
			id = cato_education_events_education_progress.1016
		}
		ai_chance = {
			factor = 5
		}
	}
	option = {
		name = cato_education_events_education_progress.1012.a
		set_heir_flag = he_success
		country_event = {
			id = cato_education_events_education_progress.1016
		}
		ai_chance = {
			factor = 60
		}
	}
	option = {
		name = cato_education_events_education_progress.1012.a
		set_heir_flag = he_neutral
		country_event = {
			id = cato_education_events_education_progress.1016
		}
		ai_chance = {
			factor = 30
		}
	}
	option = {
		name = cato_education_events_education_progress.1012.a
		set_heir_flag = he_fail
		country_event = {
			id = cato_education_events_education_progress.1016
		}
		ai_chance = {
			factor = 10
		}
	}
	option = {
		name = cato_education_events_education_progress.1012.a
		set_heir_flag = he_critical_fail
		country_event = {
			id = cato_education_events_education_progress.1016
		}
		ai_chance = {
			factor = 5
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1016 ###Seculusion(Result)
	title = cato_education_events_education_progress.1016.title
	desc = {
		trigger = {
			has_heir_flag = he_critical_success
		}
		desc = cato_education_events_education_progress.1016.desc_critical_success
	}
	desc = {
		trigger = {
			has_heir_flag = he_success
		}
		desc = cato_education_events_education_progress.1016.desc_success
	}
	desc = {
		trigger = {
			has_heir_flag = he_neutral
		}
		desc = cato_education_events_education_progress.1016.desc_neutral
	}
	desc = {
		trigger = {
			has_heir_flag = he_fail
		}
		desc = cato_education_events_education_progress.1016.desc_fail
	}
	desc = {
		trigger = {
			has_heir_flag = he_critical_fail
		}
		desc = cato_education_events_education_progress.1016.desc_critical_fail
	}
	picture = {
		trigger= {
			OR = {
				has_heir_flag = he_critical_success
				has_heir_flag = he_success
				has_heir_flag = he_critical_fail
			}
		}
		picture = RELIGION_eventPicture
	}
	picture = {
		trigger= {
			OR = {
				has_heir_flag = he_fail
				has_heir_flag = he_neutral
			}
		}
		picture = RELIGIOUS_TURMOIL_eventPicture
	}
	
	is_triggered_only = yes
	
	trigger = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.1016.a
		trigger = {
			has_heir_flag = he_critical_success
		}
		add_education_progress_huge = yes
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1016.b
		trigger = {
			has_heir_flag = he_success
		}
		add_education_progress_small = yes
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1016.c
		trigger = {
			has_heir_flag = he_neutral
		}
		add_education_progress_large = yes
		add_estate_loyalty = {
			estate = estate_church
			loyalty = -20
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1016.d
		trigger = {
			has_heir_flag = he_fail
		}
		subtract_education_progress_small = yes
		add_estate_loyalty = {
			estate = estate_church
			loyalty = -10
		}
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1016.e
		trigger = {
			has_heir_flag = he_critical_fail
		}
		remove_heir = {}
		add_estate_loyalty = {
			estate = estate_church
			loyalty = 10
		}
		clear_heir_success_flag = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1017 ###Influenced by the Clergy
	title = cato_education_events_education_progress.1017.title
	desc = cato_education_events_education_progress.1017.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = clerical_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		
		if = {
			limit = {
				religion = hinduism
			}
			estate_loyalty = {
				estate = estate_brahmins
				loyalty = 60
			}
		}
		else = {
			estate_loyalty = {
				estate = estate_church
				loyalty = 60
			}
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.1017.a
		if = {
			limit = {
				religion = hinduism
				estate_influence = {
					estate = estate_brahmins
					influence = 80
				}
			}
			add_education_progress_huge = yes
		}
		else_if = {
			limit = {
				religion = hinduism
				estate_influence = {
					estate = estate_brahmins
					influence = 60
				}
			}
			add_education_progress_large = yes
		}
		else_if = {
			limit = {
				religion = hinduism
				estate_influence = {
					estate = estate_brahmins
					influence = 40
				}
			}
			add_education_progress_medium = yes
		}
		else_if = {
			limit = {
				religion = hinduism
				estate_influence = {
					estate = estate_brahmins
					influence = 20
				}
			}
			add_education_progress_small = yes
		}
		else_if = {
			limit = {
				religion = hinduism
			}
			add_education_progress_tiny = yes
		}
		else_if = {
			limit = {
				NOT = { religion = hinduism }
				estate_influence = {
					estate = estate_church
					influence = 80
				}
			}
			add_education_progress_huge = yes
		}
		else_if = {
			limit = {
				NOT = { religion = hinduism }
				estate_influence = {
					estate = estate_church
					influence = 60
				}
			}
			add_education_progress_large = yes
		}
		else_if = {
			limit = {
				NOT = { religion = hinduism }
				estate_influence = {
					estate = estate_church
					influence = 40
				}
			}
			add_education_progress_medium = yes
		}
		else_if = {
			limit = {
				NOT = { religion = hinduism }
				estate_influence = {
					estate = estate_church
					influence = 20
				}
			}
			add_education_progress_small = yes
		}
		else = {
			add_education_progress_tiny = yes
		}
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1018 ###Heir Interacts with Religious Minority Start
	title = cato_education_events_education_progress.1018.title
	desc = cato_education_events_education_progress.1018.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	hidden = yes
	trigger = {
		has_heir_flag = clerical_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		any_owned_province = {
			NOT = {
				religion = ROOT
			}
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.1018.a
		trigger = {
			any_owned_province = {
				NOT = { religion_group = ROOT }
			}
		}
		set_heir_flag = heir_appease_heathen
		country_event = {
			id = cato_education_events_education_progress.1019
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1018.b
		trigger = {
			any_owned_province = {
				NOT = { religion_group = ROOT }
			}
		}
		set_heir_flag = heir_offend_heathen
		country_event = {
			id = cato_education_events_education_progress.1019
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1018.c
		trigger = {
			any_owned_province = {
				religion_group = ROOT
				NOT = { religion = ROOT }
			}
		}
		set_heir_flag = heir_appease_heretic
		country_event = {
			id = cato_education_events_education_progress.1019
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1018.d
		trigger = {
			any_owned_province = {
				religion_group = ROOT
				NOT = { religion = ROOT }
			}
		}
		set_heir_flag = heir_offend_heretic
		country_event = {
			id = cato_education_events_education_progress.1019
		}
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.1019 ###Heir Interacts with Religious Minority End
	title = cato_education_events_education_progress.1019.title
	desc = {
		trigger = {
			has_heir_flag = heir_appease_heretic
		}
		desc = cato_education_events_education_progress.1019.desc_appease_heretic
	}
	desc = {
		trigger = {
			has_heir_flag = heir_appease_heathen
		}
		desc = cato_education_events_education_progress.1019.desc_appease_heathen
	}
	desc = {
		trigger = {
			has_heir_flag = heir_offend_heathen
		}
		desc = cato_education_events_education_progress.1019.desc_offend_heathen
	}
	desc = {
		trigger = {
			has_heir_flag = heir_offend_heretic
		}
		desc = cato_education_events_education_progress.1019.desc_offend_heretic
	}
	picture = {
		trigger= {
			OR = {
				has_heir_flag = heir_appease_heretic
				has_heir_flag = heir_appease_heathen
			}
		}
		picture = RELIGION_eventPicture
	}
	picture = {
		trigger= {
			OR = {
				has_heir_flag = heir_offend_heathen
				has_heir_flag = heir_offend_heretic
			}
		}
		picture = RELIGIOUS_TURMOIL_eventPicture
	}
	
	is_triggered_only = yes
	trigger = {
		has_heir_flag = clerical_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		any_owned_province = {
			NOT = {
				religion = ROOT
			}
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.1019.a
		trigger = {
			has_heir_flag = heir_appease_heathen
		}
		add_country_modifier = {
			name = FEE_heathens_appeased
			duration = 1825
		}
		clr_heir_flag = heir_appease_heathen
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1019.b
		trigger = {
			has_heir_flag = heir_offend_heathen
		}
		add_country_modifier = {
			name = FEE_heathens_offended
			duration = 1825
		}
		clr_heir_flag = heir_offend_heathen
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1019.a
		trigger = {
			has_heir_flag = heir_appease_heretic
		}
		add_country_modifier = {
			name = FEE_heretics_appeased
			duration = 1825
		}
		clr_heir_flag = heir_appease_heretic
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.1019.b
		trigger = {
			has_heir_flag = heir_offend_heretic
		}
		add_country_modifier = {
			name = FEE_heretics_offended
			duration = 1825
		}
		clr_heir_flag = heir_offend_heretic
		ai_chance = {
			factor = 1
		}
	}
}
############
### Improvements for Administrative Education
############
country_event = {
	id = cato_education_events_education_progress.2000 ###Has Economic, Expansion, or Administrative
	title = cato_education_events_education_progress.2000.title
	desc = cato_education_events_education_progress.2000.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = administrative_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		OR = {
			has_idea_group = economic_ideas
			has_idea_group = administrative_ideas
			has_idea_group = expansion_ideas
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.2000.a
		add_education_progress_small = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.2001 ###Has courthouse or townhall in capital
	title = cato_education_events_education_progress.2001.title
	desc = cato_education_events_education_progress.2001.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = administrative_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		
		capital_scope = {
			OR = {
				has_building = courthouse
				has_building = town_hall
			}
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.2001.a
		if = {
			limit = {
				capital_scope = {
					has_building = town_hall
				}
			}
			add_education_progress_medium = yes
		}
		else = {
			add_education_progress_small = yes
		}
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.2002 ###Treasurer or Master of Mint Advisor Advisor
	title = cato_education_events_education_progress.2002.title
	desc = cato_education_events_education_progress.2002.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = administrative_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		
		OR = {
			advisor = treasurer
			advisor = master_of_mint
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.2002.a
		add_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.2003 ###Heir helps rewrite tax code in capital(start)
	title = cato_education_events_education_progress.2003.title
	desc = cato_education_events_education_progress.2003.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = administrative_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
	}
	immediate = {
	}
	
	option = {
		name = cato_education_events_education_progress.2003.a ###Be Ambitious
		country_event = {
			id = cato_education_events_education_progress.2004
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.2003.b ###Suggest Minor Changes
		if = {
			limit = {
				check_variable = {
					which = heirEducationalLevel
					value = 50
				}
			}
			capital = {
				add_base_tax = 1
			}
		}
		capital_scope = {
			add_province_modifier = {
				name = HE_capital_tax_boost_small
				duration = 1825
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.2004 ###Heir helps rewrite tax code in capital(Ambitious)
	title = cato_education_events_education_progress.2005.title
	desc = cato_education_events_education_progress.2004.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	hidden = yes
	immediate = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.2003.a ###Capital gains +500% tax modifier for 5 years
		set_heir_flag = HE_capital_tax_boost
		country_event = {
			id = cato_education_events_education_progress.2005
		}
		ai_chance = {
			factor = 40
		}
	}
	option = {
		name = cato_education_events_education_progress.2003.a ###Capital gains +50% tax modifier for 5 years
		set_heir_flag = HE_capital_tax_boost
		country_event = {
			id = cato_education_events_education_progress.2005
		}
		ai_chance = {
			factor = 30
		}
	}
	option = {
		name = cato_education_events_education_progress.2003.a ###+3 base tax in capital
		set_heir_flag = HE_Base_Tax_Boost_large
		country_event = {
			id = cato_education_events_education_progress.2005
		}
		ai_chance = {
			factor = 5
		}
	}
	option = {
		name = cato_education_events_education_progress.2003.a ###+2 base tax in capital
		set_heir_flag = HE_Base_Tax_Boost_medium
		country_event = {
			id = cato_education_events_education_progress.2005
		}
		ai_chance = {
			factor = 10
		}
	}
	option = {
		name = cato_education_events_education_progress.2003.a ###+1 base tax in capital
		set_heir_flag = HE_Base_Tax_Boost_small
		country_event = {
			id = cato_education_events_education_progress.2005
		}
		ai_chance = {
			factor = 15
		}
	}
	option = {
		name = cato_education_events_education_progress.2003.a ###-75% local tax modifier in capital for 5 years
		set_heir_flag = HE_capital_tax_malus
		country_event = {
			id = cato_education_events_education_progress.2005
		}
		ai_chance = {
			factor = 40
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.2005 ###Heir assist tax collector with taxes (Outcome).
	title = cato_education_events_education_progress.2005.title
	desc = {
		trigger = {
			has_heir_flag = HE_capital_tax_boost
		}
		desc = cato_education_events_education_progress.2005.desc_capital_tax_boost
	}
	desc = {
		trigger = {	
			OR = {
				has_heir_flag = HE_Base_Tax_Boost_large
				has_heir_flag = HE_Base_Tax_Boost_medium
				has_heir_flag = HE_Base_Tax_Boost_small
			}
		}
		desc = cato_education_events_education_progress.2005.desc_capital_base_tax_up
	}
	desc = {
		trigger = {
			has_heir_flag = HE_capital_tax_malus
		}
		desc = cato_education_events_education_progress.2005.desc_capital_tax_malus
	}
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	immediate = {
		set_heir_flag = rewrote_capital_tax_code
	}
	
	
	option = {
		name = cato_education_events_education_progress.2005.a
		trigger = {
			has_heir_flag = HE_capital_tax_boost
		}
		capital_scope = {
			add_province_modifier = {
				name = HE_capital_tax_boost_ambitious
				duration = 1825
			}
		}
		add_education_progress_large = yes
		clr_heir_flag = HE_capital_tax_boost
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.2005.a
		trigger = {
			has_heir_flag = HE_Base_Tax_Boost_large
		}
		capital_scope = {
			add_base_tax = 4
		}
		add_education_progress_large = yes
		clr_heir_flag = HE_Base_Tax_Boost_large
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.2005.a
		trigger = {
			has_heir_flag = HE_Base_Tax_Boost_medium
		}
		capital_scope = {
			add_base_tax = 2
		}
		add_education_progress_medium = yes
		clr_heir_flag = HE_Base_Tax_Boost_medium
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.2005.a
		trigger = {
			has_heir_flag = HE_Base_Tax_Boost_small
		}
		capital_scope = {
			add_base_tax = 1
		}
		add_education_progress_medium = yes
		clr_heir_flag = HE_Base_Tax_Boost_small
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.2005.b
		trigger = {
			has_heir_flag = HE_capital_tax_malus
		}
		capital_scope = {
			add_province_modifier = {
				name = HE_capital_tax_malus_ambitious
				duration = 1825
			}
		}
		subtract_education_progress_medium = yes
		clr_heir_flag = HE_capital_tax_malus
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.2005.c
		highlight = yes
		trigger = {
			hidden_trigger = { has_heir_flag = HE_capital_tax_malus }
			has_ruler_modifier = best_administrative_education
		}
		subtract_education_progress_medium = yes
		clr_heir_flag = HE_capital_tax_malus
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.2005.d
		highlight = yes
		trigger = {
			hidden_trigger = { has_heir_flag = HE_capital_tax_malus }
			ruler_has_personality = cruel_personality
		}
		subtract_education_progress_medium = yes
		clr_heir_flag = HE_capital_tax_malus
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.2006 ###Heir Becomes Midas Touched
	title = cato_education_events_education_progress.2006.title
	desc = cato_education_events_education_progress.2006.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	immediate = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.2006.a
		set_heir_flag = got_trait_education
		add_heir_personality = midas_touched_personality
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.2007 ###Heir Becomes Greedy
	title = cato_education_events_education_progress.2007.title
	desc = cato_education_events_education_progress.2007.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	immediate = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.2007.a
		set_heir_flag = got_trait_education
		add_heir_personality = greedy_personality
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.2008 ###Heir Becomes Lawgiver
	title = cato_education_events_education_progress.2008.title
	desc = cato_education_events_education_progress.2008.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	immediate = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.2008.a
		set_heir_flag = got_trait_education
		add_heir_personality = lawgiver_personality
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.2009 ###Increase global tax modifier
	title = cato_education_events_education_progress.2009.title
	desc = cato_education_events_education_progress.2009.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	immediate = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.2008.a
		add_country_modifier = {
			name = HE_administrative_global_tax_boost
			duration = 1825
		}
		add_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.2010 ###Decrease global tax modifier
	title = cato_education_events_education_progress.2010.title
	desc = cato_education_events_education_progress.2010.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	immediate = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.2010.a
		add_country_modifier = {
			name = HE_administrative_global_tax_malus
			duration = 1825
		}
		subtract_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.2011 ###Increase governing capacity and reduce state maintenance cost
	title = cato_education_events_education_progress.2011.title
	desc = cato_education_events_education_progress.2011.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	immediate = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.2011.a
		add_country_modifier = {
			name = HE_efficient_state_management
			duration = 1825
		}
		add_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.2012 ###Decrease governing capacity and reduce state maintenance cost
	title = cato_education_events_education_progress.2012.title
	desc = cato_education_events_education_progress.2012.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	immediate = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.2012.a
		add_country_modifier = {
			name = HE_inefficient_state_management
			duration = 1825
		}
		subtract_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.2013 ###Heir Studies historical code of laws
	title = cato_education_events_education_progress.2013.title
	desc = {
		trigger = {
			capital_scope = {
				OR = {
					superregion = far_east_superregion
					superregion = china_superregion
				}
			}
		}
		desc = cato_education_events_education_progress.2013.desc_chinese_law
	}
	desc = {
		trigger = {	
			capital_scope = {
				superregion = eastern_europe_superregion
			}
		}
		desc = cato_education_events_education_progress.2013.desc_byzantine_law
	}
	desc = {
		trigger = {
			capital_scope = {
				superregion = europe_superregion
			}
		}
		desc = cato_education_events_education_progress.2013.desc_roman_law
	}
	desc = {
		trigger = {
			capital_scope = {
				OR = {
					superregion = near_east_superregion
					superregion = persia_superregion
				}
			}
		}
		desc = cato_education_events_education_progress.2013.desc_hammarubi_law
	}
	desc = {
		trigger = {
			capital_scope = {
				NOT = {
					superregion = near_east_superregion
					superregion = persia_superregion
					superregion = europe_superregion
					superregion = eastern_europe_superregion
					superregion = far_east_superregion
					superregion = china_superregion
				}
			}
		}
		desc = cato_education_events_education_progress.2013.desc_generic_old_law
	}
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	immediate = {
	}
	
	
	option = {
		name = cato_education_events_education_progress.2013.a
		add_country_modifier = {
			name = HE_administrative_looking_to_the_past
			duration = 1825
		}
		add_education_progress_large = yes
		ai_chance = {
			factor = 1
		}
	}
}

############
### Improvements for Scholastic Education
############
country_event = {
	id = cato_education_events_education_progress.3000 ###Has Innovative Ideas
	title = cato_education_events_education_progress.3000.title
	desc = cato_education_events_education_progress.3000.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = scholastic_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		has_idea_group = innovativeness_ideas
	}
	
	
	option = {
		name = cato_education_events_education_progress.3000.a
		add_education_progress_small = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.3001 ###Has University in Capital
	title = cato_education_events_education_progress.3001.title
	desc = cato_education_events_education_progress.3001.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = scholastic_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		capital_scope = {
			has_building = university
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.3001.a
		add_education_progress_small = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.3002 ###Natural Scientist or Philosopher Advisor
	title = cato_education_events_education_progress.3002.title
	desc = cato_education_events_education_progress.3002.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = scholastic_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		
		OR = {
			advisor = natural_scientist
			advisor = philosopher
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.3002.a
		
		add_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.3003 ###Heir Illterate
	title = cato_education_events_education_progress.3003.title
	desc = cato_education_events_education_progress.3003.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = scholastic_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
	}
	immediate = {
		set_heir_flag = literacy_choice
	}
	
	
	option = {
		name = cato_education_events_education_progress.3003.a
		
		add_education_progress_medium = yes
		add_adm_power = -50
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.3003.b
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.3004 ###Heir Needs Glasses
	title = cato_education_events_education_progress.3004.title
	desc = cato_education_events_education_progress.3004.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = scholastic_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
	}
	immediate = {
		set_heir_flag = glasses_choice
	}
	
	option = {
		name = cato_education_events_education_progress.3004.a
		
		add_education_progress_medium = yes
		add_treasury = -75
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = cato_education_events_education_progress.3004.b
		
		subtract_education_progress_medium = yes
		add_treasury = 75
		ai_chance = {
			factor = 1
		}
	}
}
############
### Improvements for Diplomacy Education
############
country_event = {
	id = cato_education_events_education_progress.4000 ###Has Diplomatic or Influence Ideas
	title = cato_education_events_education_progress.4000.title
	desc = cato_education_events_education_progress.4000.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = diplomacy_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		OR = {
			has_idea_group = diplomatic_ideas
			has_idea_group = influence_ideas
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.4000.a
		add_education_progress_small = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.4001 ###Diplomat or Statesman Advisor
	title = cato_education_events_education_progress.4001.title
	desc = cato_education_events_education_progress.4001.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = diplomacy_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		
		OR = {
			advisor = diplomat
			advisor = statesman
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.4001.a
		
		add_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
############
### Improvements for Intrigue Education
############
country_event = {
	id = cato_education_events_education_progress.5000 ###Has Espionage Ideas
	title = cato_education_events_education_progress.5000.title
	desc = cato_education_events_education_progress.5000.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = intrigue_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		has_idea_group = spy_ideas
	}
	
	
	option = {
		name = cato_education_events_education_progress.5000.a
		add_education_progress_small = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.5001 ###Spymaster advisor
	title = cato_education_events_education_progress.5001.title
	desc = cato_education_events_education_progress.5001.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = intrigue_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		advisor = spymaster
	}
	
	
	option = {
		name = cato_education_events_education_progress.5001.a
		
		add_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
############
### Improvements for Trade Education
############
country_event = {
	id = cato_education_events_education_progress.6000 ###Has Trade, Economic, or Maritime ideas
	title = cato_education_events_education_progress.6000.title
	desc = cato_education_events_education_progress.6000.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = trade_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		OR = {
			has_idea_group = trade_ideas
			has_idea_group = economic_ideas
			has_idea_group = maritime_ideas
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.6000.a
		add_education_progress_small = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.6001 ###Has Marketplace, Trade Depot, or Stock Exchange
	title = cato_education_events_education_progress.6001.title
	desc = cato_education_events_education_progress.6001.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = trade_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		capital_scope = {
			OR = {
				has_building = marketplace
				has_building = trade_depot
				has_building = stock_exchange
			}
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.6001.a
		add_education_progress_small = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.6002 ###Trader advisor
	title = cato_education_events_education_progress.6002.title
	desc = cato_education_events_education_progress.6002.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = trade_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		advisor = trader
	}
	
	
	option = {
		name = cato_education_events_education_progress.6002.a
		add_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
############
### Improvements for Martial(Idea Group and Building Bonuses also apply to Logistics Education)
############
country_event = {
	id = cato_education_events_education_progress.7000 ###Has any military idea except for naval, 
	title = cato_education_events_education_progress.7000.title
	desc = cato_education_events_education_progress.7000.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		OR = {
			has_heir_flag = martial_education
			has_heir_flag = logistics_education
		}
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		OR = {
			has_idea_group = quality_ideas
			has_idea_group = quantity_ideas
			has_idea_group = offensive_ideas
			has_idea_group = defensive_ideas
			has_idea_group = aristocracy_ideas
			has_idea_group = plutocracy_ideas
			has_idea_group = horde_gov_ideas
			has_idea_group = theocracy_gov_ideas
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.7000.a
		add_education_progress_small = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.7001 ###Has a barracks, training field, regimental camp, conscription center, or any fort building in capital
	title = cato_education_events_education_progress.7001.title
	desc = cato_education_events_education_progress.7001.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		OR = {
			has_heir_flag = martial_education
			has_heir_flag = logistics_education
		}
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		
		capital_scope = {
			OR = {
				has_building = barracks
				has_building = training_fields
				has_building = regimental_camp
				has_building = conscription_center
				has_building = fort_15th
				has_building = fort_16th
				has_building = fort_17th
				has_building = fort_18th
			}
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.7001.a
		add_education_progress_small = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.7002 ###Has Commandant or Army Reformer (Martial Education)
	title = cato_education_events_education_progress.7002.title
	desc = cato_education_events_education_progress.7002.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = martial_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		OR = {
			advisor = commandant
			advisor = army_reformer
			advisor = recruitmaster
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.7002.a
		add_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
############
### Improvements for Logistics Education(Shares Idea Group and Building Bonuses with Martial Education)
############
country_event = {
	id = cato_education_events_education_progress.8003 ###Has Quartermaster, Grand Captain, Army Organizer, or Military Engineer
	title = cato_education_events_education_progress.8003.title
	desc = cato_education_events_education_progress.8003.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = logistics_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		OR = {
			advisor = quartermaster
			advisor = grand_captain
			advisor = army_organiser
			advisor = fortification_expert
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.7003.a
		
		add_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
############
### Improvements for Naval Education
############
country_event = {
	id = cato_education_events_education_progress.9000 ###Has any Naval, Maritime, Aristocratic, Plutocratic, or Exploration ideas
	title = cato_education_events_education_progress.9000.title
	desc = cato_education_events_education_progress.9000.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = naval_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		OR = {
			has_idea_group = naval_ideas
			has_idea_group = maritime_ideas
			has_idea_group = aristocracy_ideas
			has_idea_group = plutocracy_ideas
			has_idea_group = exploration_ideas
			has_idea_group = horde_gov_ideas
			has_idea_group = theocracy_gov_ideas
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.9000.a
		add_education_progress_small = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.9001 ###Has a shipyard, dock,  in capital
	title = cato_education_events_education_progress.9001.title
	desc = cato_education_events_education_progress.9001.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = naval_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		capital_scope = {
			OR = {
				has_building = shipyard
				has_building = grand_shipyard
				has_building = dock
				has_building = drydock
				has_building = coastal_defence
				has_building = naval_battery
			}
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.9001.a
		add_education_progress_small = yes
		ai_chance = {
			factor = 1
		}
	}
}
country_event = {
	id = cato_education_events_education_progress.9002 ###Has Navigator or Naval Refomer Advisor
	title = cato_education_events_education_progress.9002.title
	desc = cato_education_events_education_progress.9002.desc
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_heir_flag = naval_education
		is_lesser_in_union = no
		heir_can_recieve_education_events = yes
		OR = {
			advisor = navigator
			advisor = naval_reformer
		}
	}
	
	
	option = {
		name = cato_education_events_education_progress.9002.a
		
		add_education_progress_medium = yes
		ai_chance = {
			factor = 1
		}
	}
}
