#####################################################
# 1.35 Events for Great Britain / Angevin Kingdom
# written by Ogulcan Yildirim and Roger Corominas
#####################################################
# Events related to missions
namespace = flavor_gbr
normal_or_historical_nations = yes

# The Angevin Past
country_event = {
	id = flavor_gbr.1
	title = flavor_gbr.1.t
	desc = flavor_gbr.1.desc
	picture = SIEGE_eventPicture
	is_triggered_only = yes
	
	option = {
		name = flavor_gbr.1.a
		custom_tooltip = flavor_gbr.1.a.tt
		if = {
			limit = { has_country_flag = eng_took_ave_branch }
			clr_country_flag = eng_took_ave_branch
			swap_non_generic_missions = yes
		}
		add_country_modifier = {
			name = gbr_isolation_policy
			duration = 9125
		}
		ai_chance = {
			factor = 1
		}
	}
	
	option = {
		name = flavor_gbr.1.b
		custom_tooltip = flavor_gbr.1.b.tt
		set_country_flag = eng_took_ave_branch
		swap_non_generic_missions = yes
		if = {
			limit = {
				FRA = {
					is_subject = no
				}
			}
			add_casus_belli = {
				target = FRA
				type = cb_hundred_years_union
				months = 360
			}
		}
		ile_de_france_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		champagne_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		ai_chance = {
			factor = 0
		}
	}
}

# Purchase of [369.GetName]
# Triggered through a decision
country_event = {
	id = flavor_gbr.2
	title = flavor_gbr.2.t
	desc = flavor_gbr.2.desc
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	
	option = {
		name = flavor_gbr.2.a
		custom_tooltip = flavor_gbr.2.a.tt
		hidden_effect = {
			369 = {
				owner = {
					country_event = {
						id = flavor_gbr.3
					}
				}
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	
	#We will consider this for later
	option = {
		name = flavor_gbr.2.b
		custom_tooltip = flavor_gbr.2.b.tt
		set_country_flag = eng_can_buy_orkney_flag
		ai_chance = {
			factor = 0
		}
	}
}

# Accept Purchase?
country_event = {
	id = flavor_gbr.3
	title = flavor_gbr.3.t
	desc = flavor_gbr.3.desc
	picture = DIPLOMACY_eventPicture
	is_triggered_only = yes
	
	#Sell
	option = {
		name = flavor_gbr.3.a
		add_treasury = 200
		tooltip = {
			369 = {
				remove_core = ROOT
				cede_province = FROM
				add_core = FROM
			}
			reverse_add_opinion = {
				who = FROM
				modifier = succesful_province_purchase
			}
		}
		hidden_effect = {
			FROM = {
				country_event = {
					id = flavor_gbr.4
				}
			}
		}
		ai_chance = {
			factor = 1
			modifier = {
				factor = 2
				has_opinion = {
					who = ROOT
					value = 75
				}
			}
			modifier = {
				factor = 1.1
				has_opinion = {
					who = ROOT
					value = 50
				}
				NOT = {
					has_opinion = {
						who = ROOT
						value = 75
					}
				}
			}
			modifier = {
				factor = 0.9
				has_opinion = {
					who = ROOT
					value = 0
				}
				NOT = {
					has_opinion = {
						who = ROOT
						value = 50
					}
				}
			}
			modifier = {
				factor = 0.5
				has_opinion = {
					who = ROOT
					value = -50
				}
				NOT = {
					has_opinion = {
						who = ROOT
						value = 0
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_opinion = {
						who = ROOT
						value = -50
					}
				}
			}
		}
	}
	
	#Do not sell
	option = {
		name = flavor_gbr.3.b
		tooltip = {
			reverse_add_opinion = {
				who = FROM
				modifier = failed_province_purchase
			}
		}
		hidden_effect = {
			FROM = {
				country_event = {
					id = flavor_gbr.5
				}
			}
		}
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				has_opinion = {
					who = ROOT
					value = 75
				}
			}
			modifier = {
				factor = 0.9
				has_opinion = {
					who = ROOT
					value = 50
				}
				NOT = {
					has_opinion = {
						who = ROOT
						value = 75
					}
				}
			}
			modifier = {
				factor = 1.5
				has_opinion = {
					who = ROOT
					value = 0
				}
				NOT = {
					has_opinion = {
						who = ROOT
						value = 50
					}
				}
			}
			modifier = {
				factor = 2
				has_opinion = {
					who = ROOT
					value = -50
				}
				NOT = {
					has_opinion = {
						who = ROOT
						value = 0
					}
				}
			}
			modifier = {
				factor = 100
				NOT = {
					has_opinion = {
						who = ROOT
						value = -50
					}
				}
			}
		}
	}
}

# They accepted!
country_event = {
	id = flavor_gbr.4
	title = flavor_gbr.4.t
	desc = flavor_gbr.4.desc
	picture = MERCHANTS_TALKING_eventPicture
	is_triggered_only = yes
	
	option = {
		name = flavor_gbr.4.a
		add_treasury = -200
		369 = {
			remove_core = FROM
			cede_province = ROOT
			add_core = ROOT
		}
		add_opinion = {
			who = FROM
			modifier = succesful_province_purchase
		}
		ai_chance = {
			factor = 1
		}
	}
}

# They refused!
country_event = {
	id = flavor_gbr.5
	title = flavor_gbr.5.t
	desc = flavor_gbr.5.desc
	picture = MERCHANTS_ARGUING_eventPicture
	is_triggered_only = yes
	
	option = {
		name = flavor_gbr.5.a
		add_opinion = {
			who = FROM
			modifier = failed_province_purchase
		}
		ai_chance = {
			factor = 1
		}
	}
}

# The Irish Crown
country_event = {
	id = flavor_gbr.6
	title = flavor_gbr.6.t
	desc = flavor_gbr.6.desc
	picture = GOOD_WITH_MONARCH_eventPicture
	is_triggered_only = yes
	
	#Keep Ireland under direct rule
	option = {
		name = flavor_gbr.6.a
		add_adm_power = 50
		add_mil_power = 50
		ulster_area = {
			limit = { country_or_non_sovereign_subject_holds = ROOT }
			add_province_modifier = {
				name = eng_english_rule_over_ireland
				duration = 9125
			}
		}
		connacht_area = {
			limit = { country_or_non_sovereign_subject_holds = ROOT }
			add_province_modifier = {
				name = eng_english_rule_over_ireland
				duration = 9125
			}
		}
		leinster_area = {
			limit = { country_or_non_sovereign_subject_holds = ROOT }
			add_province_modifier = {
				name = eng_english_rule_over_ireland
				duration = 9125
			}
		}
		munster_area = {
			limit = { country_or_non_sovereign_subject_holds = ROOT }
			add_province_modifier = {
				name = eng_english_rule_over_ireland
				duration = 9125
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	
	#Rule over Ireland in a Personal Union
	option = {
		name = flavor_gbr.6.b
		add_adm_power = 50
		add_dip_power = 50
		custom_tooltip = flavor_gbr.6.b.tt
		hidden_effect = {
			ulster_area = {
				limit = { country_or_non_sovereign_subject_holds = ROOT }
				if = {
					limit = { NOT = { owned_by = ROOT } }
					cede_province = ROOT
				}
				add_core = IRE
				if = {
					limit = { is_core = ROOT }
					remove_core = ROOT
				}
			}
			connacht_area = {
				limit = { country_or_non_sovereign_subject_holds = ROOT }
				if = {
					limit = { NOT = { owned_by = ROOT } }
					cede_province = ROOT
				}
				add_core = IRE
				if = {
					limit = { is_core = ROOT }
					remove_core = ROOT
				}
			}
			leinster_area = {
				limit = { country_or_non_sovereign_subject_holds = ROOT }
				if = {
					limit = { NOT = { owned_by = ROOT } }
					cede_province = ROOT
				}
				add_core = IRE
				if = {
					limit = { is_core = ROOT }
					remove_core = ROOT
				}
			}
			munster_area = {
				limit = { country_or_non_sovereign_subject_holds = ROOT }
				if = {
					limit = { NOT = { owned_by = ROOT } }
					cede_province = ROOT
				}
				add_core = IRE
				if = {
					limit = { is_core = ROOT }
					remove_core = ROOT
				}
			}
			release = IRE
			IRE = {
				change_religion = ROOT
				change_government = monarchy
				add_government_reform = irish_highkingdom_reform
				add_adm_power = 112
				add_dip_power = 112
				add_mil_power = 112
				add_treasury = 136
				add_manpower = 8
				add_sailors = 3000
				add_army_tradition = 5
			}
			create_subject = {
				subject_type = personal_union
				who = IRE
			}
		}
		add_country_modifier = {
			name = eng_the_crown_of_ireland
			duration = -1
		}
		ai_chance = {
			factor = 0
		}
	}
}

# The Fur Trade
country_event = {
	id = flavor_gbr.7
	title = flavor_gbr.7.t
	desc = flavor_gbr.7.desc
	picture = FUR_TRADE_eventPicture
	is_triggered_only = yes
	major = yes
	#Nice
	option = {
		name = flavor_gbr.7.a
		if = {
			limit = {
				NOT = { has_global_flag = had_fur_trade_event }
			}
			add_treasury = 500
			change_price = {
				trade_goods = fur
				key = FUR_TRADE
				value = 0.25
				duration = 3650
			}
		}
		else = {
			add_treasury = 2000
		}
		ai_chance = {
			factor = 1
		}
	}
}

# The East India Company
country_event = {
	id = flavor_gbr.10
	title = flavor_eng.EVTNAME9145
	desc = flavor_eng.EVTDESC9145
	picture = MERCHANTS_ARGUING_eventPicture
	is_triggered_only = yes
	
	#Establish this East India Company
	option = {
		name = flavor_gbr.10.a
		custom_tooltip = flavor_gbr.10.a.tt
		hidden_effect = {
			every_owned_province = {
				limit = {
					superregion = india_superregion
				}
				add_core = EIC
				if = {
					limit = { is_core = ROOT }
					remove_core = ROOT
				}
			}
			release = EIC
			create_subject = {
				subject_type = commercial_enterprise
				who = EIC
			}
			EIC = {
				change_government = republic
				add_government_reform = trade_company_government
				change_religion = ROOT
				change_primary_culture = ROOT
				define_ruler = {
					name = "000"
					dynasty = "Smythe"
					change_adm = 3
					change_dip = 3
					change_mil = 3
					max_age = 50
					min_age = 30
				}
				add_adm_power = 100
				add_dip_power = 100
				add_mil_power = 100
				add_treasury = 200
				set_prestige_to_zero = yes
				add_republican_tradition = 100
			}
		}
		coromandel_region = {
			limit = {
				NOT = { is_core = EIC }
				NOT = { is_permanent_claim = EIC }
			}
			add_permanent_claim = EIC
		}
		malabar_area = {
			limit = {
				NOT = { is_core = EIC }
				NOT = { is_permanent_claim = EIC }
			}
			add_permanent_claim = EIC
		}
		kanara_area = {
			limit = {
				NOT = { is_core = EIC }
				NOT = { is_permanent_claim = EIC }
			}
			add_permanent_claim = EIC
		}
		mysore_area = {
			limit = {
				NOT = { is_core = EIC }
				NOT = { is_permanent_claim = EIC }
			}
			add_permanent_claim = EIC
		}
		rayalaseema_area = {
			limit = {
				NOT = { is_core = EIC }
				NOT = { is_permanent_claim = EIC }
			}
			add_permanent_claim = EIC
		}
		raichur_doab_area = {
			limit = {
				NOT = { is_core = EIC }
				NOT = { is_permanent_claim = EIC }
			}
			add_permanent_claim = EIC
		}
		konkan_area = {
			limit = {
				NOT = { is_core = EIC }
				NOT = { is_permanent_claim = EIC }
			}
			add_permanent_claim = EIC
		}
		orissa_area = {
			limit = {
				NOT = { is_core = EIC }
				NOT = { is_permanent_claim = EIC }
			}
			add_permanent_claim = EIC
		}
		west_bengal_area = {
			limit = {
				NOT = { is_core = EIC }
				NOT = { is_permanent_claim = EIC }
			}
			add_permanent_claim = EIC
		}
		east_bengal_area = {
			limit = {
				NOT = { is_core = EIC }
				NOT = { is_permanent_claim = EIC }
			}
			add_permanent_claim = EIC
		}
		tapti_area = {
			limit = {
				NOT = { is_core = EIC }
				NOT = { is_permanent_claim = EIC }
			}
			add_permanent_claim = EIC
		}
		ahmedabad_area = {
			limit = {
				NOT = { is_core = EIC }
				NOT = { is_permanent_claim = EIC }
			}
			add_permanent_claim = EIC
		}
		saurashtra_area = {
			limit = {
				NOT = { is_core = EIC }
				NOT = { is_permanent_claim = EIC }
			}
			add_permanent_claim = EIC
		}
		ai_chance = {
			factor = 1
		}
	}
	
	#We do not need such enterprise on foreign ground
	option = {
		name = flavor_gbr.10.b
		coromandel_region = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		malabar_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		kanara_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		mysore_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		rayalaseema_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		raichur_doab_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		konkan_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		orissa_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		west_bengal_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		east_bengal_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		tapti_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		ahmedabad_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		saurashtra_area = {
			limit = {
				NOT = { is_core = ROOT }
				NOT = { is_permanent_claim = ROOT }
			}
			add_permanent_claim = ROOT
		}
		ai_chance = {
			factor = 1
		}
	}
	
	#Play as the East India Company
	option = {
		name = flavor_gbr.10.c
		trigger = {
			ai = no
		}
		custom_tooltip = flavor_gbr.10.a.tt
		hidden_effect = {
			every_owned_province = {
				limit = {
					superregion = india_superregion
				}
				add_core = EIC
				if = {
					limit = { is_core = ROOT }
					remove_core = ROOT
				}
			}
			release = EIC
			create_subject = {
				subject_type = commercial_enterprise
				who = EIC
			}
			EIC = {
				change_government = republic
				add_government_reform = trade_company_government
				change_religion = ROOT
				change_primary_culture = ROOT
				define_ruler = {
					name = "000"
					dynasty = "Smythe"
					change_adm = 3
					change_dip = 3
					change_mil = 3
					max_age = 50
					min_age = 30
				}
				add_adm_power = 100
				add_dip_power = 100
				add_mil_power = 100
				add_treasury = 200
				set_prestige_to_zero = yes
				add_republican_tradition = 100
			}
			coromandel_region = {
				limit = {
					NOT = { is_core = EIC }
					NOT = { is_permanent_claim = EIC }
				}
				add_permanent_claim = EIC
			}
			malabar_area = {
				limit = {
					NOT = { is_core = EIC }
					NOT = { is_permanent_claim = EIC }
				}
				add_permanent_claim = EIC
			}
			kanara_area = {
				limit = {
					NOT = { is_core = EIC }
					NOT = { is_permanent_claim = EIC }
				}
				add_permanent_claim = EIC
			}
			mysore_area = {
				limit = {
					NOT = { is_core = EIC }
					NOT = { is_permanent_claim = EIC }
				}
				add_permanent_claim = EIC
			}
			rayalaseema_area = {
				limit = {
					NOT = { is_core = EIC }
					NOT = { is_permanent_claim = EIC }
				}
				add_permanent_claim = EIC
			}
			raichur_doab_area = {
				limit = {
					NOT = { is_core = EIC }
					NOT = { is_permanent_claim = EIC }
				}
				add_permanent_claim = EIC
			}
			konkan_area = {
				limit = {
					NOT = { is_core = EIC }
					NOT = { is_permanent_claim = EIC }
				}
				add_permanent_claim = EIC
			}
			orissa_area = {
				limit = {
					NOT = { is_core = EIC }
					NOT = { is_permanent_claim = EIC }
				}
				add_permanent_claim = EIC
			}
			west_bengal_area = {
				limit = {
					NOT = { is_core = EIC }
					NOT = { is_permanent_claim = EIC }
				}
				add_permanent_claim = EIC
			}
			east_bengal_area = {
				limit = {
					NOT = { is_core = EIC }
					NOT = { is_permanent_claim = EIC }
				}
				add_permanent_claim = EIC
			}
			tapti_area = {
				limit = {
					NOT = { is_core = EIC }
					NOT = { is_permanent_claim = EIC }
				}
				add_permanent_claim = EIC
			}
			ahmedabad_area = {
				limit = {
					NOT = { is_core = EIC }
					NOT = { is_permanent_claim = EIC }
				}
				add_permanent_claim = EIC
			}
			saurashtra_area = {
				limit = {
					NOT = { is_core = EIC }
					NOT = { is_permanent_claim = EIC }
				}
				add_permanent_claim = EIC
			}
		}
		switch_tag = EIC
		ai_chance = {
			factor = 0
		}
	}
}

# The Globe Theatre
country_event = {
	id = flavor_gbr.12
	title = flavor_gbr.12.t
	desc = flavor_gbr.12.desc
	picture = THEATRE_eventPicture
	is_triggered_only = yes
	goto = capital
	immediate = {
		hidden_effect = {
			capital_scope = {
				save_event_target_as = capital
			}
		}
	}
	
	#Wondersome
	option = {
		name = flavor_gbr.12.a
		set_country_flag = eng_globe_theatre
		add_prestige_or_monarch_power = {
			amount = 25
		}
		event_target:capital = {
			add_province_triggered_modifier = eng_globe_theatre
		}
		ai_chance = {
			factor = 1
		}
	}
}

# The Royal Society
country_event = {
	id = flavor_gbr.13
	title = flavor_gbr.13.t
	desc = flavor_gbr.13.desc
	picture = INVENTION_eventPicture
	fire_only_once = yes
	trigger = {
		has_dlc = "Domination"
		OR = {
			tag = GBR
			tag = AVE
			AND = {
				tag = ENG
				NOT = { exists = GBR }
				NOT = { exists = AVE }
			}
		}
		employed_advisor = {
			category = ADM
			skill = 3
		}
		employed_advisor = {
			category = DIP
			skill = 3
		}
		employed_advisor = {
			category = MIL
			skill = 3
		}
		OR = {
			full_idea_group = innovativeness_ideas
			full_idea_group = humanist_ideas
			innovativeness = 20
		}
	}
	mean_time_to_happen = {
		months = 600
		modifier = {
			factor = 0.5
			full_idea_group = innovativeness_ideas
		}
		modifier = {
			factor = 0.9
			innovativeness = 20
		}
		modifier = {
			factor = 0.8
			innovativeness = 40
		}
		modifier = {
			factor = 0.7
			innovativeness = 60
		}
		modifier = {
			factor = 0.6
			innovativeness = 80
		}
		modifier = {
			factor = 0.5
			innovativeness = 100
		}
	}
	immediate = {
		hidden_effect = {
			capital_scope = {
				save_event_target_as = capital
			}
		}
	}
	goto = capital
	
	
	#A beacon of light
	option = {
		name = flavor_gbr.13.a
		add_innovativeness_or_monarch_power = {
			amount = 5
			adm = 50
			dip = 50
			mil = 50
		}
		event_target:capital = {
			add_building = university
			add_province_modifier = {
				name = gresham_college_royal_society
				duration = -1
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Select an advisor Menu
country_event = {
	id = flavor_gbr.15
	title = flavor_gbr.15.t
	desc = flavor_gbr.15.desc
	picture = ADVISOR_eventPicture
	is_triggered_only = yes
	
	#Select ADM advisor
	option = {
		name = flavor_gbr.15.a
		set_country_flag = selected_adm_advisor
		country_event = {
			id = flavor_gbr.16
			tooltip = flavor_gbr.15.a.tt
		}
		ai_chance = {
			factor = 1
		}
	}
	
	#Select DIP advisor
	option = {
		name = flavor_gbr.15.b
		set_country_flag = selected_dip_advisor
		country_event = {
			id = flavor_gbr.16
			tooltip = flavor_gbr.15.b.tt
		}
		ai_chance = {
			factor = 1
		}
	}
	
	#Select MIL advisor
	option = {
		name = flavor_gbr.15.c
		set_country_flag = selected_mil_advisor
		country_event = {
			id = flavor_gbr.16
			tooltip = flavor_gbr.15.c.tt
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Select an advisor Selection
country_event = {
	id = flavor_gbr.16
	title = flavor_gbr.16.t
	desc = {
		desc = flavor_gbr.16.desc.adm
		trigger = {
			has_country_flag = selected_adm_advisor
		}
	}
	desc = {
		desc = flavor_gbr.16.desc.dip
		trigger = {
			has_country_flag = selected_dip_advisor
		}
	}
	desc = {
		desc = flavor_gbr.16.desc.mil
		trigger = {
			has_country_flag = selected_mil_advisor
		}
	}
	desc = {
		desc = flavor_gbr.16.desc.zzz
		trigger = {
			NOT = { has_country_flag = selected_adm_advisor }
			NOT = { has_country_flag = selected_dip_advisor }
			NOT = { has_country_flag = selected_mil_advisor }
		}
	}
	picture = ELECTION_REPUBLICAN_eventPicture
	is_triggered_only = yes

	after = {
		clr_country_flag = selected_adm_advisor
		clr_country_flag = selected_dip_advisor
		clr_country_flag = selected_mil_advisor
	}
	
	#ADM Advisor - artist
	option = {
		name = flavor_gbr.16.a
		trigger = {
			has_country_flag = selected_adm_advisor
		}
		generate_advisor = {
			type = artist
		}
		ai_chance = {
			factor = 1
		}
	}	
	#ADM Advisor - inquisitor
	option = {
		name = flavor_gbr.16.b
		trigger = {
			has_country_flag = selected_adm_advisor
		}
		generate_advisor = {
			type = inquisitor
		}
		ai_chance = {
			factor = 1
		}
	}	
	#ADM Advisor - master_of_mint
	option = {
		name = flavor_gbr.16.c
		trigger = {
			has_country_flag = selected_adm_advisor
		}
		generate_advisor = {
			type = master_of_mint
		}
		ai_chance = {
			factor = 1
		}
	}	
	#ADM Advisor - natural_scientist
	option = {
		name = flavor_gbr.16.d
		trigger = {
			has_country_flag = selected_adm_advisor
		}
		generate_advisor = {
			type = natural_scientist
		}
		ai_chance = {
			factor = 1
		}
	}	
	#ADM Advisor - theologian
	option = {
		name = flavor_gbr.16.e
		trigger = {
			has_country_flag = selected_adm_advisor
		}
		generate_advisor = {
			type = theologian
		}
		ai_chance = {
			factor = 1
		}
	}	
	#ADM Advisor - treasurer
	option = {
		name = flavor_gbr.16.f
		trigger = {
			has_country_flag = selected_adm_advisor
		}
		generate_advisor = {
			type = treasurer
		}
		ai_chance = {
			factor = 1
		}
	}
	#ADM Advisor - philosopher
	option = {
		name = flavor_gbr.16.g
		trigger = {
			has_country_flag = selected_adm_advisor
		}
		generate_advisor = {
			type = philosopher
		}
		ai_chance = {
			factor = 1
		}
	}
	
	#DIP Advisor - diplomat
	option = {
		name = flavor_gbr.16.h
		trigger = {
			has_country_flag = selected_dip_advisor
		}
		generate_advisor = {
			type = diplomat
		}
		ai_chance = {
			factor = 1
		}
	}	
	#DIP Advisor - colonial_governor
	option = {
		name = flavor_gbr.16.i
		trigger = {
			has_country_flag = selected_dip_advisor
		}
		generate_advisor = {
			type = colonial_governor
		}
		ai_chance = {
			factor = 1
		}
	}	
	#DIP Advisor - naval_reformer
	option = {
		name = flavor_gbr.16.j
		trigger = {
			has_country_flag = selected_dip_advisor
			num_of_ports = 1
			is_primitive = no
		}
		generate_advisor = {
			type = naval_reformer
		}
		ai_chance = {
			factor = 1
		}
	}	
	#DIP Advisor - navigator
	option = {
		name = flavor_gbr.16.k
		trigger = {
			has_country_flag = selected_dip_advisor
			num_of_ports = 1
		}
		generate_advisor = {
			type = navigator
		}
		ai_chance = {
			factor = 1
		}
	}	
	#DIP Advisor - spymaster
	option = {
		name = flavor_gbr.16.l
		trigger = {
			has_country_flag = selected_dip_advisor
		}
		generate_advisor = {
			type = spymaster
		}
		ai_chance = {
			factor = 1
		}
	}	
	#DIP Advisor - statesman
	option = {
		name = flavor_gbr.16.m
		trigger = {
			has_country_flag = selected_dip_advisor
		}
		generate_advisor = {
			type = statesman
		}
		ai_chance = {
			factor = 1
		}
	}
	#DIP Advisor - trader
	option = {
		name = flavor_gbr.16.n
		trigger = {
			has_country_flag = selected_dip_advisor
			num_of_colonists = 1
			is_colonial_nation = no
		}
		generate_advisor = {
			type = trader
		}
		ai_chance = {
			factor = 1
		}
	}
	
	#MIL Advisor - army_organiser
	option = {
		name = flavor_gbr.16.o
		trigger = {
			has_country_flag = selected_mil_advisor
		}
		generate_advisor = {
			type = army_organiser
		}
		ai_chance = {
			factor = 1
		}
	}	
	#MIL Advisor - army_reformer
	option = {
		name = flavor_gbr.16.p
		trigger = {
			has_country_flag = selected_mil_advisor
		}
		generate_advisor = {
			type = army_reformer
		}
		ai_chance = {
			factor = 1
		}
	}	
	#MIL Advisor - commandant
	option = {
		name = flavor_gbr.16.q
		trigger = {
			has_country_flag = selected_mil_advisor
		}
		generate_advisor = {
			type = commandant
		}
		ai_chance = {
			factor = 1
		}
	}	
	#MIL Advisor - grand_captain
	option = {
		name = flavor_gbr.16.r
		trigger = {
			has_country_flag = selected_mil_advisor
		}
		generate_advisor = {
			type = grand_captain
		}
		ai_chance = {
			factor = 1
		}
	}	
	#MIL Advisor - recruitmaster
	option = {
		name = flavor_gbr.16.s
		trigger = {
			has_country_flag = selected_mil_advisor
		}
		generate_advisor = {
			type = recruitmaster
		}
		ai_chance = {
			factor = 1
		}
	}	
	#MIL Advisor - fortification_expert
	option = {
		name = flavor_gbr.16.u
		trigger = {
			has_country_flag = selected_mil_advisor
		}
		generate_advisor = {
			type = fortification_expert
		}
		ai_chance = {
			factor = 1
		}
	}
	#MIL Advisor - quartermaster
	option = {
		name = flavor_gbr.16.v
		trigger = {
			has_country_flag = selected_mil_advisor
		}
		generate_advisor = {
			type = quartermaster
		}
		ai_chance = {
			factor = 1
		}
	}

	#Fallback
	option = {
		name = flavor_gbr.16.zzz
		trigger = {
			NOT = { has_country_flag = selected_adm_advisor }
			NOT = { has_country_flag = selected_dip_advisor }
			NOT = { has_country_flag = selected_mil_advisor }
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Renaming of the Angevin Realm
country_event = {
	id = flavor_gbr.20
	title = flavor_gbr.20.t
	desc = flavor_gbr.20.desc
	picture = GOOD_WITH_MONARCH_eventPicture
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			clr_country_flag = ave_empire_name
			clr_country_flag = ave_duchy_name
			clr_country_flag = ave_republic_name
			clr_country_flag = ave_theocracy_name
			clr_country_flag = ave_state_name
		}
	}
	
	#Angevin Empire
	option = {
		name = flavor_gbr.20.a
		trigger = {
			government = monarchy
			government_rank = 3
		}
		override_country_name = AV3
		set_country_flag = ave_empire_name
		ai_chance = {
			factor = 1
		}
	}
	
	#Angevin Kingdom
	option = {
		name = flavor_gbr.20.b
		trigger = {
			government = monarchy
			government_rank = 2
			NOT = { government_rank = 3 }
		}
		restore_country_name = yes
		ai_chance = {
			factor = 1
		}
	}
	
	#Angevin Duchy... ._.
	option = {
		name = flavor_gbr.20.c
		trigger = {
			government = monarchy
			NOT = { government_rank = 2 }
		}
		override_country_name = AV2
		set_country_flag = ave_duchy_name
		ai_chance = {
			factor = 1
		}
	}
	
	#Angevin Republic
	option = {
		name = flavor_gbr.20.d
		trigger = {
			government = republic
		}
		override_country_name = AV0
		set_country_flag = ave_republic_name
		ai_chance = {
			factor = 1
		}
	}
	
	#Angevin Theocracy
	option = {
		name = flavor_gbr.20.e
		trigger = {
			government = theocracy
		}
		override_country_name = AV1
		set_country_flag = ave_theocracy_name
		ai_chance = {
			factor = 1
		}
	}
	
	#Angevin Fallback
	option = {
		name = flavor_gbr.20.f
		trigger = {
			NOT = { government = monarchy }
			NOT = { government = republic }
			NOT = { government = theocracy }
		}
		override_country_name = AV4
		set_country_flag = ave_state_name
		ai_chance = {
			factor = 1
		}
	}
}

# Holy Empire of Britannia - Easter Egg
country_event = {
	id = flavor_gbr.21
	title = flavor_gbr.21.t
	desc = flavor_gbr.21.desc
	picture = GOOD_WITH_MONARCH_eventPicture
	fire_only_once = yes
	trigger = {
		OR = {
			AND = {
				tag = GBR
				is_emperor = yes
			}
			AND = {
				tag = HLR
				was_tag = GBR
			}
		}
		num_of_cities = 300
		total_development = 3000
		OR = {
			colony = 8
			NOT = { capital_scope = { continent = europe } }
		}
		capital_scope = {
			OR = {
				continent = europe
				continent = north_america
				continent = south_america
				continent = new_world
			}
		}
	}
	mean_time_to_happen = {
		months = 300
	}
	
	#All hail Britannia
	option = {
		name = flavor_gbr.21.a
		add_prestige_or_monarch_power = {
			amount = 200
		}
		add_splendor = 800
		if = {
			limit = { is_emperor = yes }
			add_imperial_influence = 100
		}

		ai_chance = {
			factor = 1
		}
	}
}

# Angevin Age
country_event = {
	id = flavor_gbr.22
	title = flavor_gbr.22.t
	desc = flavor_gbr.22.desc
	picture = IMPORTANT_STATUE_eventPicture
	fire_only_once = yes
	trigger = {
		tag = AVE
		government_rank = 3
		num_of_cities = 200
		has_any_disaster = no
		is_bankrupt = no
		stability = 2
		adm = 5
		OR = {
			full_idea_group = administrative_ideas
			full_idea_group = court_ideas
			full_idea_group = aristocracy_ideas
		}
		has_adm_advisor_3 = yes
	}
	mean_time_to_happen = {
		months = 100
	}
	
	#The World belongs to the Empire!
	option = {
		name = flavor_gbr.22.a
		add_splendor = 400
		add_prestige_or_monarch_power = {
			amount = 50
		}
		add_country_modifier = {
			name = angevin_age
			duration = -1
		}
		ai_chance = {
			factor = 1
		}
	}
}

# The Iberian Crown
country_event = {
	id = flavor_gbr.23
	title = flavor_gbr.23.t
	desc = flavor_gbr.23.desc
	picture = GOOD_WITH_MONARCH_eventPicture
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			if = {
				limit = {
					NOT = { exists = SPA }
				}
				SPA = {
					save_event_target_as = iberian_crown_country
				}
			}
			else = {
				CAS = {
					save_event_target_as = iberian_crown_country
				}
			}
		}
	}
	
	#Keep Iberia under direct rule
	option = {
		name = flavor_gbr.23.a
		add_adm_power = 50
		add_mil_power = 50
		iberia_region = {
			limit = { country_or_non_sovereign_subject_holds = ROOT }
			add_province_modifier = {
				name = eng_english_rule_over_ireland
				duration = 9125
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	
	#Rule over Spain in a Personal Union
	option = {
		name = flavor_gbr.23.b
		add_adm_power = 50
		add_dip_power = 50
		custom_tooltip = flavor_gbr.23.b.tt
		hidden_effect = {
			iberia_region = {
				limit = { country_or_non_sovereign_subject_holds = ROOT }
				if = {
					limit = { NOT = { owned_by = ROOT } }
					cede_province = ROOT
				}
				add_core = event_target:iberian_crown_country
				if = {
					limit = { is_core = ROOT }
					remove_core = ROOT
				}
			}
			release = event_target:iberian_crown_country
			event_target:iberian_crown_country = {
				change_religion = ROOT
				change_government = monarchy
				add_government_reform = system_of_councils_reform
				add_adm_power = 112
				add_dip_power = 112
				add_mil_power = 112
				add_treasury = 136
				add_manpower = 8
				add_sailors = 3000
				add_army_tradition = 10
			}
			create_subject = {
				subject_type = personal_union
				who = event_target:iberian_crown_country
			}
		}
		add_country_modifier = {
			name = eng_the_crown_of_iberia
			duration = -1
		}
		ai_chance = {
			factor = 0
		}
	}
}

# The Italian Crown
country_event = {
	id = flavor_gbr.24
	title = flavor_gbr.24.t
	desc = flavor_gbr.24.desc
	picture = GOOD_WITH_MONARCH_eventPicture
	is_triggered_only = yes
	
	#Keep Italy under direct rule
	option = {
		name = flavor_gbr.24.a
		add_adm_power = 50
		add_mil_power = 50
		italy_region = {
			limit = { country_or_non_sovereign_subject_holds = ROOT }
			add_province_modifier = {
				name = eng_english_rule_over_ireland
				duration = 9125
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	
	#Rule over Italy in a Personal Union
	option = {
		name = flavor_gbr.24.b
		add_adm_power = 50
		add_dip_power = 50
		custom_tooltip = flavor_gbr.24.b.tt
		hidden_effect = {
			italy_region = {
				limit = { country_or_non_sovereign_subject_holds = ROOT }
				if = {
					limit = { NOT = { owned_by = ROOT } }
					cede_province = ROOT
				}
				add_core = ITA
				if = {
					limit = { is_core = ROOT }
					remove_core = ROOT
				}
			}
			release = ITA
			ITA = {
				change_religion = ROOT
				change_government = monarchy
				add_government_reform = feudalism_reform
				add_adm_power = 112
				add_dip_power = 112
				add_mil_power = 112
				add_treasury = 136
				add_manpower = 8
				add_sailors = 3000
				add_army_tradition = 10
			}
			create_subject = {
				subject_type = personal_union
				who = ITA
			}
		}
		add_country_modifier = {
			name = eng_the_crown_of_italy
			duration = -1
		}
		ai_chance = {
			factor = 0
		}
	}
}

# Random flavor events

# Henry VIII
country_event = {
	id = flavor_gbr.100
	title = flavor_gbr.100.t
	desc = flavor_gbr.100.desc
	picture = HENRY_eventPicture
	fire_only_once = yes
	mean_time_to_happen = {
		months = 60
	}
	trigger = {
		has_dlc = "Domination"
		OR = {
			AND = {
				tag = ENG
				NOT = { exists = GBR }
				NOT = { exists = AVE }
			}
			tag = GBR
			tag = AVE
		}
		is_year = 1490
		NOT = { is_year = 1550 }
		government = monarchy
		is_lesser_in_union = no
		OR = {
			has_heir = no
			NOT = { heir_adm = 5 }
			NOT = { heir_dip = 5 }
			NOT = { heir_mil = 5 }
		}
	}
	
	#What a great king
	option = {
		name = flavor_gbr.100.a
		define_heir = {
			name = "0000"
			adm = 5
			dip = 5
			mil = 5
			age = 0
			dynasty = ROOT
		}
		hidden_effect = {
			add_heir_personality = reformist_personality
			set_country_flag = had_henry_viii_event
			set_heir_flag = has_henry_vii
		}
		ai_chance = {
			factor = 1
		}
	}
	
	#I think we are better off without him
	option = {
		name = flavor_tur.239.b
		trigger = {
			has_heir = yes
		}
		add_heir_claim = 20
		random_list = {
			1 = { trigger = { NOT = { heir_adm = 6 } } change_heir_adm = 1 }
			1 = { trigger = { NOT = { heir_dip = 6 } } change_heir_dip = 1 }
			1 = { trigger = { NOT = { heir_mil = 6 } } change_heir_mil = 1 }
		}
		ai_chance = {
			factor = 0
		}
	}
}

# Elizabethian Era
country_event = {
	id = flavor_gbr.101
	title = flavor_gbr.101.t
	desc = flavor_gbr.101.desc
	picture = wihgfx_FEMALE_RULER_eventPicture
	fire_only_once = yes
	mean_time_to_happen = {
		months = 60
	}
	trigger = {
		has_dlc = "Domination"
		OR = {
			AND = {
				tag = ENG
				NOT = { exists = GBR }
				NOT = { exists = AVE }
			}
			tag = GBR
			tag = AVE
		}
		is_year = 1500
		NOT = { is_year = 1600 } 
		government = monarchy
		is_lesser_in_union = no
		has_country_flag = had_henry_viii_event
		NOT = { has_ruler_flag = has_henry_vii }
		NOT = { has_heir_flag = has_henry_vii }
		has_country_flag = had_mary_event
		NOT = { has_ruler_flag = bloody_mary }
		OR = {
			NOT = { adm = 5 }
			NOT = { dip = 5 }
			NOT = { mil = 5 }
		}
	}

	mean_time_to_happen = { months = 120 } 
	
	option = { 
		name = flavor_gbr.101.a
		define_ruler = {
			name = "00000H&"
			culture = ROOT
			adm = 6
			dip = 6
			mil = 5
			female = yes
			min_age = 15
			max_age = 25
			dynasty = ROOT
		}
		if = {
			limit = {
				has_states_general_mechanic = yes
			}
			change_statists_vs_orangists = 1
		}
		if = {
			limit = {
				has_dlc = "Rights of Man" 
			}
			hidden_effect = { add_ruler_personality_ancestor = { key = inspiring_leader } }
		}
		ai_chance = {
			factor = 1
		}
	}

	option = {
		name = flavor_gbr.101.b
		add_legitimacy = 20
		random_list = {
			1 = { trigger = { NOT = { adm = 6 } } change_adm = 1 }
			1 = { trigger = { NOT = { dip = 6 } } change_dip = 1 }
			1 = { trigger = { NOT = { mil = 6 } } change_mil = 1 }
		}
		ai_chance = {
			factor = 0
		}
	}
}

# Religious Stance of the current King
country_event = {
	id = flavor_gbr.102
	title = flavor_gbr.102.t
	desc = flavor_gbr.102.desc
	picture = HENRY_eventPicture
	is_triggered_only = yes	#Fires whenever you have a new monarch; religious policy of the king
	trigger = {
		has_country_modifier = eng_the_age_of_reformation
	}
	mean_time_to_happen = {
		days = 1
	}
	goto = event_province
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					religion = ROOT
					is_in_capital_area = yes
					NOT = { has_province_modifier = religious_center }
				}
				save_event_target_as = event_province
			}
		}
	}
	#We must follow the reformation
	option = {
		name = flavor_gbr.102.a
		add_church_power = 50
		add_fervor = 25
		if = {
			limit = {
				religion = catholic
			}
			add_papal_influence = -200
			add_estate_loyalty = {
				estate = estate_church
				loyalty = -15
			}
		}
		if = {
			limit = {
				religion = catholic
			}
			add_ruler_modifier = {
				name = eng_reformer_ruler_for_catholic_gb
				duration = -1
				desc = until_end_of_age_of_reformation_desc
			}
		}
		else = {
			add_ruler_modifier = {
				name = eng_reformer_ruler
				duration = -1
				desc = until_end_of_age_of_reformation_desc
			}
		}
		if = {
			limit = {
				NOT = { religion = catholic }
			}
			event_target:event_province = {
				change_religion = catholic
			}
		}
		else = {
			if = {
				limit = { is_religion_enabled = anglican }
				event_target:event_province = {
					change_religion = anglican
				}
			}
			else = {
				event_target:event_province = {
					change_religion = protestant
				}
			}
		}
		custom_tooltip = flavor_gbr.102.a.at
		if = {
			limit = {
				NOT = { ruler_religion = protestant }
				NOT = { ruler_religion = reformed }
				NOT = { ruler_religion = anglican }
				NOT = { ruler_religion = hussite }
			}
			custom_tooltip = flavor_gbr.102.a.tt
			hidden_effect = {
				every_known_country = {
					limit = {
						religion = catholic
					}
					add_opinion = {
						who = ROOT
						modifier = eng_turned_back_to_the_pope
					}
				}
			}
			set_ruler_religion = ROOT
		}
		hidden_effect = {
			every_known_country = {
				limit = {
					OR = {
						religion = protestant
						religion = reformed
						religion = anglican
						religion = hussite
					}
				}
				add_opinion = {
					who = ROOT
					modifier = eng_pro_reformation
				}
				reverse_add_opinion = {
					who = ROOT
					modifier = eng_pro_reformation
				}
			}
		}
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { ruler_religion = protestant }
				NOT = { ruler_religion = reformed }
				NOT = { ruler_religion = anglican }
				NOT = { ruler_religion = hussite }
			}
			modifier = {
				factor = 0
				ruler_has_personality = tolerant_personality
			}
		}
	}
	#We must return to Catholicism
	option = {
		name = flavor_gbr.102.b
		add_papal_influence = 50
		if = {
			limit = {
				OR = {
					religion = protestant
					religion = reformed
					religion = anglican
					religion = hussite
				}
			}
			add_church_power = -200
			add_fervor = -100
			add_estate_loyalty = {
				estate = estate_church
				loyalty = -15
			}
		}
		if = {
			limit = {
				religion = catholic
			}
			add_ruler_modifier = {
				name = eng_catholic_ruler
				duration = -1
				desc = until_end_of_age_of_reformation_desc
			}
		}
		else = {
			add_ruler_modifier = {
				name = eng_catholic_ruler_for_reformed_gb
				duration = -1
				desc = until_end_of_age_of_reformation_desc
			}
		}
		if = {
			limit = {
				NOT = { religion = catholic }
			}
			event_target:event_province = {
				change_religion = catholic
			}
		}
		else = {
			if = {
				limit = { is_religion_enabled = anglican }
				event_target:event_province = {
					change_religion = anglican
				}
			}
			else = {
				event_target:event_province = {
					change_religion = protestant
				}
			}
		}
		custom_tooltip = flavor_gbr.102.b.at
		if = {
			limit = {
				NOT = { ruler_religion = catholic }
			}
			custom_tooltip = flavor_gbr.102.b.tt
			hidden_effect = {
				every_known_country = {
					limit = {
						OR = {
							religion = protestant
							religion = reformed
							religion = anglican
							religion = hussite
						}
					}
					add_opinion = {
						who = ROOT
						modifier = eng_turned_back_to_the_reformation
					}
				}
			}
			set_ruler_religion = ROOT
		}
		hidden_effect = {
			every_known_country = {
				limit = {
					religion = catholic
				}
				add_opinion = {
					who = ROOT
					modifier = eng_pro_catholicism
				}
				reverse_add_opinion = {
					who = ROOT
					modifier = eng_pro_catholicism
				}
			}
		}
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { ruler_religion = catholic }
			}
			modifier = {
				factor = 0
				ruler_has_personality = tolerant_personality
			}
		}
	}
	#Religion is a considerate part of the country
	option = {
		name = flavor_gbr.102.c
		if = {
			limit = { NOT = { ruler_has_personality = tolerant_personality } }
			add_stability = -2
		}
		add_ruler_modifier = {
			name = eng_tolerant_ruler
			duration = -1
			desc = until_end_of_age_of_reformation_desc
		}
		if = {
			limit = {
				NOT = { religion = catholic }
			}
			event_target:event_province = {
				area = {
					limit = { owned_by = ROOT religion = ROOT NOT = { has_province_modifier = religious_center } }
					change_religion = catholic
				}
			}
		}
		else = {
			if = {
				limit = { is_religion_enabled = anglican }
				event_target:event_province = {
					area = {
						limit = {
							owned_by = ROOT
							religion = ROOT
							NOT = { has_province_modifier = religious_center }
						}
						change_religion = anglican
					}
				}
			}
			else = {
				event_target:event_province = {
					area = {
						limit = {
							owned_by = ROOT
							religion = ROOT
							NOT = { has_province_modifier = religious_center }
						}
						change_religion = protestant
					}
				}
			}
		}

		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { ruler_has_personality = tolerant_personality }
			}
		}
	}
}

# Consequences of following the reformation - Persecution of the Catholics
country_event = {
	id = flavor_gbr.103
	title = flavor_gbr.103.t
	desc = flavor_gbr.103.desc
	picture = RELIGIOUS_WARS_eventPicture
	is_triggered_only = yes	#Pulse event
	trigger = {
		OR = {
			has_country_modifier = eng_reformer_ruler
			has_country_modifier = eng_reformer_ruler_for_catholic_gb
		}
	}
	mean_time_to_happen = {
		days = 1
	}
	goto = event_province
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_in_capital_area = yes
					is_overseas = no
					religion_group = ROOT
				}
				save_event_target_as = event_province
			}
			change_variable = {
				which = eng_reformation_event_counter
				value = 1
			}
		}
	}
	
	#We must follow the reformation
	option = {
		name = flavor_gbr.103.a
		add_years_of_income = 0.1
		if = {
			limit = { religion = catholic }
			add_papal_influence = -50
			change_estate_land_share = {
				estate = estate_church
				share = -1
			}
			add_estate_loyalty = {
				estate = estate_church
				loyalty = -15
			}
			event_target:event_province = {
				remove_loot = {
					who = ROOT
					amount = 100
				}
				spawn_rebels = {
					type = catholic_rebels
					size = 1
				}
			}
		}
		else = {
			add_fervor = 25
			add_church_power = 50
			event_target:event_province = {
				remove_loot = {
					who = ROOT
					amount = 100
				}
				random = {
					chance = 25
					spawn_rebels = {
						type = catholic_rebels
						size = 1
					}
				}
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Consequences of following the reformation - Event 2
country_event = {
	id = flavor_gbr.104
	title = flavor_gbr.104.t
	desc = flavor_gbr.104.desc
	picture = CHURCH_ESTATE_UPSET_eventPicture
	is_triggered_only = yes	#Pulse event
	trigger = {
		OR = {
			has_country_modifier = eng_reformer_ruler
			has_country_modifier = eng_reformer_ruler_for_catholic_gb
		}
	}
	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		hidden_effect = {
			change_variable = {
				which = eng_reformation_event_counter
				value = 1
			}
		}
	}
	
	#We must follow the reformation
	option = {
		name = flavor_gbr.104.a
		if = {
			limit = { religion = catholic }
			add_papal_influence = -25
			add_estate_loyalty = {
				estate = estate_church
				loyalty = -10
			}
			add_estate_influence_modifier = {
				estate = estate_church
				desc = ENG_CLERGICAL_PRIVILEGES
				influence = -20
				duration = 1825
				add = yes
			}
		}
		else = {
			add_church_power = 50
		}
		if = {
			limit = { exists = PAP }
			reverse_add_opinion = {
				who = PAP
				modifier = eng_revokes_clerical_privileges
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	option = {
		name = flavor_gbr.104.b
		if = {
			limit = { religion = catholic }
			add_papal_influence = 10
			add_estate_loyalty = {
				estate = estate_church
				loyalty = 10
			}
			add_estate_influence_modifier = {
				estate = estate_church
				desc = ENG_CLERGICAL_PRIVILEGES
				influence = 10
				duration = 1825
				add = yes
			}
		}
		else = {
			add_church_power = -100
		}
		if = {
			limit = { exists = PAP }
			reverse_add_opinion = {
				who = PAP
				modifier = eng_restores_clerical_privileges
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Consequences of following the reformation - Event 3
country_event = {
	id = flavor_gbr.105
	title = flavor_gbr.105.t
	desc = flavor_gbr.105.desc
	picture = ECONOMY_eventPicture
	is_triggered_only = yes	#Pulse event
	trigger = {
		OR = {
			has_country_modifier = eng_reformer_ruler
			has_country_modifier = eng_reformer_ruler_for_catholic_gb
		}
		NOT = { has_country_modifier = eng_taxation_of_the_clergy }
		NOT = { has_country_modifier = eng_protects_the_clergy }
		NOT = { has_country_modifier = eng_taxation_of_the_clergy_prot }
		NOT = { has_country_modifier = eng_protects_the_clergy_prot }
	}
	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		hidden_effect = {
			change_variable = {
				which = eng_reformation_event_counter
				value = 1
			}
		}
	}
	
	#We must follow the reformation
	option = {
		name = flavor_gbr.105.a
		add_years_of_income = 0.1
		if = {
			limit = { religion = catholic }
			add_country_modifier = {
				name = eng_taxation_of_the_clergy
				duration = 3650
			}
			add_stability = -1
		}
		else = {
			add_country_modifier = {
				name = eng_taxation_of_the_clergy_prot
				duration = 3650
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	
	#We must follow the reformation
	option = {
		name = flavor_gbr.105.b
		if = {
			add_estate_loyalty = {
				estate = estate_church
				loyalty = 10
			}
			limit = { religion = catholic }
			add_country_modifier = {
				name = eng_protects_the_clergy
				duration = 3650
			}
		}
		else = {
			add_estate_loyalty = {
				estate = estate_church
				loyalty = 5
			}
			add_country_modifier = {
				name = eng_protects_the_clergy_prot
				duration = 3650
			}
			add_stability = -1
		}
		ai_chance = {
			factor = 0
		}
	}
}

# Consequences of following the catholocism - Event 1
country_event = {
	id = flavor_gbr.106
	title = flavor_gbr.106.t
	desc = flavor_gbr.106.desc
	picture = PRAYING_eventPicture
	is_triggered_only = yes	#Pulse event
	trigger = {
		OR = {
			has_country_modifier = eng_catholic_ruler
			has_country_modifier = eng_catholic_ruler_for_reformed_gb
		}
	}
	mean_time_to_happen = {
		days = 1
	}
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_in_capital_area = yes
					is_overseas = no
					religion_group = ROOT
				}
				save_event_target_as = event_province
			}
			change_variable = {
				which = eng_reformation_event_counter
				value = 1
			}
		}
	}
	goto = event_province
	
	#We must follow the reformation
	option = {
		name = flavor_gbr.106.a
		if = {
			limit = { religion = catholic }
			add_stability = 1
			add_papal_influence = 25
		}
		else = {
			add_church_power = -25
			add_fervor = -10
		}
		event_target:event_province = {
			if = {
				limit = { is_religion_enabled = anglican }
				random = {
					chance = 25
					spawn_rebels = {
						type = anglican_rebels
						size = 1
					}
				}
			}
			else = {
				random_list = {
					1 = {
						trigger = {
							is_religion_enabled = reformed
						}
						spawn_rebels = {
							type = reformed_rebels
							size = 1
						}
					}
					1 = {
						spawn_rebels = {
							type = protestant_rebels
							size = 1
						}
					}
					2 = {
						trigger = {
							is_religion_enabled = reformed
						}
					}
					1 = {
						trigger = {
							NOT = { is_religion_enabled = reformed }
						}
					}
				}
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Consequences of following the catholocism - Event 2
country_event = {
	id = flavor_gbr.107
	title = flavor_gbr.107.t
	desc = flavor_gbr.107.desc
	picture = POPE_PREACHING_eventPicture
	is_triggered_only = yes	#Pulse event
	trigger = {
		OR = {
			has_country_modifier = eng_catholic_ruler
			has_country_modifier = eng_catholic_ruler_for_reformed_gb
		}
	}
	mean_time_to_happen = {
		days = 1
	}
	immediate = {
		hidden_effect = {
			change_variable = {
				which = eng_reformation_event_counter
				value = 1
			}
		}
	}
	
	#We must follow the reformation
	option = {
		name = flavor_gbr.107.a
		if = {
			limit = { religion = catholic }
			add_papal_influence = 25
		}
		else = {
			add_church_power = -25
		}
		if = {
			limit = { exists = PAP }
			reverse_add_opinion = {
				who = PAP
				modifier = eng_reconcilation_with_the_holy_see
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Consequences of following the catholocism - Event 3
country_event = {
	id = flavor_gbr.108
	title = flavor_gbr.108.t
	desc = flavor_gbr.108.desc
	picture = PROTESTANT_PRINTED_eventPicture
	is_triggered_only = yes	#Pulse event
	trigger = {
		OR = {
			has_country_modifier = eng_catholic_ruler
			has_country_modifier = eng_catholic_ruler_for_reformed_gb
		}
		any_owned_province = {
			is_overseas = no
			is_in_capital_area = yes
			religion = catholic
		}
	}
	mean_time_to_happen = {
		days = 1
	}
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_overseas = no
					is_in_capital_area = yes
					religion = catholic
				}
				save_event_target_as = event_province
			}
			change_variable = {
				which = eng_reformation_event_counter
				value = 1
			}
		}
	}
	goto = event_province

	#We must follow the reformation
	option = {
		name = flavor_gbr.108.a
		if = {
			limit = { religion = catholic }
			add_stability = -1
			event_target:event_province = {
				random_list = {
					1 = {
						trigger = { is_religion_enabled = anglican }
						change_religion = anglican
					}
					1 = {
						trigger = { is_religion_enabled = reformed }
						change_religion = reformed
					}
					1 = {
						trigger = { is_religion_enabled = protestant }
						change_religion = protestant
					}
				}
			}
		}
		else = {
			add_estate_loyalty = {
				estate = estate_church
				loyalty = 5
			}
			event_target:event_province = {
				change_religion = ROOT
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Consequences of having no clue - Event 1
country_event = {
	id = flavor_gbr.109
	title = flavor_gbr.109.t
	desc = flavor_gbr.109.desc
	picture = ADVISOR_eventPicture
	is_triggered_only = yes	#Pulse event
	trigger = {
		has_country_modifier = eng_tolerant_ruler
		NOT = { has_country_modifier = eng_foreign_religious_control }
	}
	mean_time_to_happen = {
		days = 1
	}
	immediate = {
		hidden_effect = {
			change_variable = {
				which = eng_reformation_event_counter
				value = 1
			}
		}
	}
	
	#We must follow the reformation
	option = {
		name = flavor_gbr.109.a
		add_country_modifier = {
			name = eng_foreign_religious_control
			duration = 3650
		}
		custom_tooltip = flavor_gbr.109.a.tt
		ai_chance = {
			factor = 1
		}
	}
}

# Consequences of having no clue - Event 2
country_event = {
	id = flavor_gbr.110
	title = flavor_gbr.110.t
	desc = flavor_gbr.110.desc
	picture = RELIGIOUS_TURMOIL_eventPicture
	is_triggered_only = yes	#Pulse event
	trigger = {
		has_country_modifier = eng_tolerant_ruler
	}
	goto = revolt_province
	mean_time_to_happen = {
		days = 1
	}
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_overseas = no
					is_in_capital_area = yes
					religion_group = christian
				}
				save_event_target_as = revolt_province
			}
			change_variable = {
				which = eng_reformation_event_counter
				value = 1
			}
		}
	}
	
	#We must follow the reformation
	option = {
		name = flavor_gbr.110.a
		if = {
			limit = { religion = catholic }
			if = {
				limit = { is_religion_enabled = anglican }
				event_target:revolt_province = {
					spawn_rebels = {
						type = anglican_rebels
						size = 2
					}
				}
			}
			else = {
				event_target:revolt_province = {
					random_list = {
						1 = {
							trigger = {
								is_religion_enabled = reformed
							}
							spawn_rebels = {
								type = reformed_rebels
								size = 2
							}
						}
						1 = {
							spawn_rebels = {
								type = protestant_rebels
								size = 2
							}
						}
					}
				}
			}
		}
		else = {
			event_target:revolt_province = {
				spawn_rebels = {
					type = catholic_rebels
					size = 2
				}
			}
		}
		ai_chance = {
			factor = 0
		}
	}
	option = {
		name = flavor_gbr.110.b
		if = {
			limit = { religion = catholic }
			if = {
				limit = { is_religion_enabled = anglican }
				event_target:revolt_province = {
					if = {
						limit = { religion = anglican }
						add_local_autonomy = 20
					}
					else = {
						change_religion = anglican
					}
				}
			}
			else = {
				event_target:revolt_province = {
					random_list = {
						1 = {
							trigger = {
								is_religion_enabled = reformed
							}
							if = {
								limit = { religion = reformed }
								add_local_autonomy = 20
							}
							else = {
								change_religion = reformed
							}
						}
						1 = {
							if = {
								limit = { religion = protestant }
								add_local_autonomy = 20
							}
							else = {
								change_religion = protestant
							}
						}
					}
				}
			}
		}
		else = {
			event_target:revolt_province = {
				if = {
					limit = { religion = catholic }
					add_local_autonomy = 20
				}
				else = {
					change_religion = catholic
				}
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Consequences of having no clue - Event 3
country_event = {
	id = flavor_gbr.111
	title = flavor_gbr.111.t
	desc = flavor_gbr.111.desc
	picture = PROTESTANT_CATHOLIC_DEBATE_eventPicture
	is_triggered_only = yes	#Pulse event
	trigger = {
		has_country_modifier = eng_tolerant_ruler
		check_variable = {
			which = eng_reformation_event_counter
			value = 30
		}
	}
	mean_time_to_happen = {
		days = 1
	}
	
	#We must follow the reformation
	option = {
		name = flavor_gbr.111.a
		remove_country_modifier = eng_tolerant_ruler
		remove_country_modifier = eng_the_age_of_reformation
		add_country_modifier = {
			name = eng_end_of_the_english_reformation
			duration = -1
		}

		ai_chance = {
			factor = 1
		}
	}
}

# Conflict between Monarch and Parliament
country_event = {
	id = flavor_gbr.112
	title = flavor_gbr.112.t
	desc = flavor_gbr.112.desc
	picture = PARLIAMENT_eventPicture
	fire_only_once = yes
	mean_time_to_happen = {
		months = 120
	}
	trigger = {
		has_dlc = "Domination"
		OR = {
			AND = {
				tag = ENG
				NOT = { exists = GBR }
				NOT = { exists = AVE }
			}
			tag = GBR
			tag = AVE
		}
		current_age = age_of_absolutism
		government = monarchy
		has_parliament = yes
		reform_level = 6
	}
	
	#A dangerous development...
	option = {
		name = flavor_gbr.112.a
		add_government_reform = parliament_vs_monarchy_reform
		custom_tooltip = flavor_gbr.112.a.tt
		ai_chance = {
			factor = 1
		}
	}
}

# The conflict escalates...
country_event = {
	id = flavor_gbr.113
	title = flavor_gbr.113.t
	desc = flavor_gbr.113.desc
	picture = ANGRY_MOB_eventPicture
	is_triggered_only = yes
	goto = revolt_province
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_overseas = no
					is_in_capital_area = yes
				}
				save_event_target_as = revolt_province
			}
		}
	}
	
	#Let us turn to aggressive negotiations.
	option = {
		name = flavor_gbr.113.a
		if = {
			limit = {
				has_country_flag = eng_monarchy_in_absolute_power
			}
			event_target:revolt_province = {
				spawn_rebels = {
					type = parliamentarians_rebels
					size = 1
				}
			}
		}
		else_if = {
			limit = {
				has_country_flag = eng_parliament_in_absolute_power
			}
			event_target:revolt_province = {
				spawn_rebels = {
					type = pretender_rebels
					size = 1
				}
			}
		}
		else = {
			add_stability = -3
		}
		#freeze_government_power = {
		#	mechanic_type = parliament_vs_monarchy_mechanic
		#	power_type = governmental_power
		#}
		remove_government_reform = parliament_vs_monarchy_reform
		custom_tooltip = flavor_gbr.113.a.tt
		set_country_flag = eng_easier_civil_war_triggers
		ai_chance = {
			factor = 1
		}
	}
}

# Bloody Mary
country_event = {
	id = flavor_gbr.114
	title = flavor_gbr.114.t
	desc = flavor_gbr.114.desc
	picture = wihgfx_FEMALE_RULER_eventPicture
	fire_only_once = yes
	trigger = {
		has_dlc = "Domination"
		OR = {
			AND = {
				tag = ENG
				NOT = { exists = GBR }
				NOT = { exists = AVE }
			}
			tag = GBR
			tag = AVE
		}
		is_year = 1500
		NOT = { is_year = 1600 } 
		government = monarchy
		is_lesser_in_union = no
		has_country_flag = had_henry_viii_event
		NOT = { has_ruler_flag = has_henry_vii }
		NOT = { has_heir_flag = has_henry_vii }
		OR = {
			NOT = { adm = 5 }
			NOT = { dip = 5 }
			NOT = { mil = 5 }
		}
	}

	mean_time_to_happen = { months = 120 } 
	
	option = { 
		name = flavor_gbr.114.a
		define_ruler = {
			name = "0000"
			culture = ROOT
			adm = 4
			dip = 3
			mil = 6
			female = yes
			religion = catholic
			min_age = 15
			max_age = 25
			dynasty = ROOT
		}
		if = {
			limit = {
				has_states_general_mechanic = yes
			}
			change_statists_vs_orangists = 1
		}
		hidden_effect = {
			set_country_flag = had_mary_event
			set_ruler = bloody_mary
		}
		ai_chance = {
			factor = 1
		}
	}

	option = {
		name = flavor_gbr.114.b
		add_legitimacy = 20
		random_list = {
			1 = { trigger = { NOT = { adm = 6 } } change_adm = 1 }
			1 = { trigger = { NOT = { dip = 6 } } change_dip = 1 }
			1 = { trigger = { NOT = { mil = 6 } } change_mil = 1 }
		}
		ai_chance = {
			factor = 0
		}
	}
}

# Order of Chivalry
country_event = {
	id = flavor_gbr.115
	title = flavor_gbr.115.t
	desc = flavor_gbr.115.desc
	picture = TOURNAMENT_eventPicture
	fire_only_once = yes
	mean_time_to_happen = {
		months = 120
	}
	trigger = {
		has_dlc = "Domination"
		OR = {
			AND = {
				tag = ENG
				NOT = { exists = GBR }
				NOT = { exists = AVE }
			}
			tag = GBR
			tag = AVE
		}
		NOT = { current_age = age_of_discovery }
	}
	
	#Dawn of a new order
	option = {
		name = flavor_gbr.115.a
		add_country_modifier = {
			name = eng_order_of_chivalry
			duration = -1
		}
		add_years_of_income = -0.25
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { years_of_income = 1.5 }
			}
		}
	}
	
	#Not worth of our time
	option = {
		name = flavor_gbr.115.b
		add_prestige = -5
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				years_of_income = 1.5
			}
		}
	}
}

# Jousting in England
country_event = {
	id = flavor_gbr.116
	title = flavor_gbr.116.t
	desc = flavor_gbr.116.desc
	picture = TOURNAMENT_eventPicture
	fire_only_once = yes
	mean_time_to_happen = {
		months = 120
	}
	trigger = {
		has_dlc = "Domination"
		OR = {
			AND = {
				tag = ENG
				NOT = { exists = GBR }
				NOT = { exists = AVE }
			}
			tag = GBR
			tag = AVE
		}
		current_age = age_of_discovery
	}
	
	#A wonderful sport.
	option = {
		name = flavor_gbr.116.a
		add_army_tradition = 10
		add_prestige = 20
		add_splendor = 200
		add_country_modifier = {
			name = eng_jousting_tournaments
			duration = -1
			desc = until_end_of_age_of_discovery_desc
		}
		ai_chance = {
			factor = 1
		}
	}
}

# The Glorious Revolution
#country_event = {
#	id = flavor_gbr.117
#	title = flavor_gbr.117.t
#	desc = flavor_gbr.117.desc
#	picture = BATTLE_eventPictur
#	fire_only_once = yes
#	mean_time_to_happen = {
#		months = 120
#	}
#	trigger = {
#		has_dlc = "Domination"
#		OR = {
#			tag = ENG
#			tag = GBR
#			tag = AVE
#		}
#		current_age = age_of_reformation
#	}
#	
#	#Gruesome queen...
#	option = {
#		name = flavor_gbr.117.a
#		ai_chance = {
#			factor = 1
#		}
#	}
#}

# The Fifth Monarchists
country_event = {
	id = flavor_gbr.118
	title = flavor_gbr.118.t
	desc = flavor_gbr.118.desc
	picture = REVOLUTION_eventPicture
	mean_time_to_happen = {
		months = 600
	}
	trigger = {
		has_dlc = "Domination"
		has_disaster = english_civil_war
		religion_group = christian
	}
	goto = revolt_province
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_overseas = no
					is_in_capital_area = yes
				}
				save_event_target_as = revolt_province
			}
			random_owned_province = {
				limit = {
					is_overseas = no
					is_in_capital_area = yes
					OR = {
						religion = anglican
						religion = hussite
						religion = reformed
						religion = protestant
					}
				}
				save_event_target_as = revolt_province
			}
			random_owned_province = {
				limit = {
					is_overseas = no
					is_in_capital_area = yes
					OR = {
						religion = anglican
						religion = protestant
					}
				}
				save_event_target_as = revolt_province
			}
		}
	}
	
	#We should not entertain such idea of madness
	option = {
		name = flavor_gbr.118.b
		event_target:revolt_province = {
			spawn_province_religious_rebels = {
				size = 2
			}
		}
		ai_chance = {
			factor = 1
		}
	}
	
	#We shall follow God's signs.
	option = {
		name = flavor_gbr.118.a
		trigger = {
			NOT = { num_of_cities = 400 }
		}
		custom_tooltip = flavor_gbr.118.a.tt
		add_stability = -4
		kill_ruler = yes
		if = {
			limit = { has_heir = yes }
			kill_heir = { allow_new_heir = no }
		}
		if = {
			limit = { has_consort = yes }
			kill_consort = yes
		}
		if = {
			limit = {
				has_country_flag = supports_parliamentarians
			}
			event_target:revolt_province = {
				spawn_rebels = {
					type = parliamentarians_rebels
					size = 3
				}
			}
		}
		else = {
			event_target:revolt_province = {
				spawn_rebels = {
					type = pretender_rebels
					size = 3
				}
			}
		}
		hidden_effect = {
			country_event = {
				id = flavor_gbr.119
				days = 15
				random = 25
			}
		}
		ai_chance = {
			factor = 0
		}
	}
}

# The Fifth Monarchists - A new Era!
country_event = {
	id = flavor_gbr.119
	title = flavor_gbr.119.t
	desc = flavor_gbr.119.desc
	picture = RELIGIOUS_TURMOIL_eventPicture
	is_triggered_only = yes
	
	#His will be done!
	option = {
		name = flavor_gbr.119.a
		custom_tooltip = flavor_gbr.118.a.tt
		change_government = theocracy
		add_government_reform = fifth_monarchists_reform
		hidden_effect = {
			add_devotion = 100
		}
		ai_chance = {
			factor = 0
		}
	}

	option = {
		name = flavor_gbr.119.b
		add_stability = -1
		custom_tooltip = flavor_gbr.119.b.tt
		ai_chance = {
			factor = 100
		}
	}
}

# The Fifth Monarchists - The End of Madness
country_event = {
	id = flavor_gbr.120
	title = flavor_gbr.120.t
	desc = {
		desc = flavor_gbr.120.desc.a
		trigger = {
			OR = {
				NOT = { has_reform = fifth_monarchists_reform }
				has_country_flag = fifth_monarchists_have_failed
			}
		}
	}
	picture = {
		picture = PANIC_eventPicture
		trigger = {
			OR = {
				NOT = { has_reform = fifth_monarchists_reform }
				has_country_flag = fifth_monarchists_have_failed
			}
		}
	}
	desc = {
		desc = flavor_gbr.120.desc.b
		trigger = {
			has_reform = fifth_monarchists_reform
			NOT = { has_country_flag = fifth_monarchists_have_failed }
		}
	}
	picture = {
		picture = COMET_SIGHTED_eventPicture
		trigger = {
			has_reform = fifth_monarchists_reform
			NOT = { has_country_flag = fifth_monarchists_have_failed }
		}
	}
	is_triggered_only = yes
	trigger = {
		NOT = { has_country_flag = had_fifth_monarchists_end_event }
	}
	immediate = {
		hidden_effect = {
			set_country_flag = had_fifth_monarchists_end_event
		}
	}
	
	#The wheel has turned.
	option = {
		name = flavor_gbr.120.a
		if = {
			limit = {
				has_reform = fifth_monarchists_reform
				NOT = { has_country_flag = fifth_monarchists_have_failed }
			}
			set_government_power = {
				mechanic_type = end_time_mechanic
				power_type = fanatic_zeal
				value = 100
			}
			freeze_government_power = {
				mechanic_type = end_time_mechanic
				power_type = fanatic_zeal
			}
		}
		else = {
			kill_ruler = yes
			if = {
				limit = { has_heir = yes }
				kill_heir = {
					allow_new_heir = no
				}
			}
			change_government = monarchy
			add_government_reform = feudalism_reform
			release_all_possible_countries = yes
			set_bankruptcy = ROOT
			release_all_subjects = yes
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Anglican HRE
country_event = {
	id = flavor_gbr.121
	title = flavor_gbr.121.t
	desc = flavor_gbr.121.desc
	picture = HRE_eventPicture
	fire_only_once = yes
	major = yes
	trigger = {
		has_dlc = "Rule Britannia"
		has_global_flag = anglican_as_hre_religion_feasible
		religion = anglican
		OR = {
			tag = ENG
			tag = SCO
			tag = AVE
			tag = GBR
			is_part_of_hre = yes
		}
	}
	mean_time_to_happen = {
		months = 60
		modifier = {
			factor = 0.1
			is_part_of_hre = yes
		}
	}
	immediate = {
		hidden_effect = {
			set_hre_religion_locked = no
		}
	}
	after = {
		set_hre_religion_locked = yes
	}
	
	#United into one faith.
	option = {
		name = flavor_gbr.121.a
		set_hre_religion = anglican
		ai_chance = {
			factor = 1
		}
	}
}

# England / GB / Angevin Empire during the Age of Reformation
country_event = {
	id = flavor_gbr.122
	title = flavor_gbr.122.t
	desc = flavor_gbr.122.desc
	picture = HENRY_eventPicture
	is_triggered_only = yes
	mean_time_to_happen = {
		days = 1
	}
	trigger = {
		has_dlc = "Domination"
		current_age = age_of_reformation
		has_mission = eng_piety_of_the_state
		OR = {
			religion = catholic
			religion = protestant
			religion = reformed
			religion = anglican
			religion = hussite
		}
	}
	
	#Uncertain Time are ahead...
	option = {
		name = flavor_gbr.122.a
		add_country_modifier = {
			name = eng_the_age_of_reformation
			duration = -1
			desc = until_end_of_age_of_reformation_desc
		}
		custom_tooltip = flavor_gbr.122.a.tt
		ai_chance = {
			factor = 1
		}
	}
}

# Pax Britannica
country_event = {
	id = flavor_gbr.199
	title = flavor_gbr.199.t.b	#Custom loc
	desc = {
		desc = flavor_gbr.199.desc.a
		trigger = {
			tag = GBR
		}
	}
	desc = {
		desc = flavor_gbr.199.desc.b
		trigger = {
			NOT = { tag = GBR }
		}
	}
	picture = GOOD_WITH_MONARCH_eventPicture
	fire_only_once = yes
	mean_time_to_happen = {
		months = 100
	}
	trigger = {
		OR = {
			tag = GBR
			tag = AVE
		}
		government_rank = 3
		is_bankrupt = no
		has_any_disaster = no
		stability = 3
		if = {
			limit = { tag = GBR }
			total_own_and_non_tributary_subject_development = 2500
			colony = 4
			navy_size = 200
		}
		if = {
			limit = { tag = AVE }
			num_of_cities = 250
			army_size = 200
		}
	}
	
	#We are the most glorious empire!
	option = {
		name = flavor_gbr.199.a
		if = {
			limit = { tag = GBR }
			add_country_modifier = {
				name = gbr_pax_britannica
				duration = -1
			}
		}
		if = {
			limit = { tag = AVE }
			add_country_modifier = {
				name = ave_pax_angevina
				duration = -1
			}
		}
		ai_chance = {
			factor = 1
		}
	}
}

# Select trade good of colonized province

# Colonial Venture
province_event = {
	id = flavor_gbr.200
	title = flavor_gbr.200.t
	desc = flavor_gbr.200.desc
	picture = TRADEGOODS_eventPicture
	is_triggered_only = yes	#Always when a colony finishes
	goto = ROOT

	immediate = {
		hidden_effect = {
			owner = {
				save_event_target_as = ColonizingCountry
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = grain } }
				calculate_trade_goods_price = { trade_goods = grain }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = wine } }
				calculate_trade_goods_price = { trade_goods = wine }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = wool } }
				calculate_trade_goods_price = { trade_goods = wool }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = cloth } }
				calculate_trade_goods_price = { trade_goods = cloth }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = fish } }
				calculate_trade_goods_price = { trade_goods = fish }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = fur } }
				calculate_trade_goods_price = { trade_goods = fur }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = salt } }
				calculate_trade_goods_price = { trade_goods = salt }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = naval_supplies } }
				calculate_trade_goods_price = { trade_goods = naval_supplies }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = copper } }
				calculate_trade_goods_price = { trade_goods = copper }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = gold } }
				calculate_trade_goods_price = { trade_goods = gold }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = iron } }
				calculate_trade_goods_price = { trade_goods = iron }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = slaves } }
				calculate_trade_goods_price = { trade_goods = slaves }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = ivory } }
				calculate_trade_goods_price = { trade_goods = ivory }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = tea } }
				calculate_trade_goods_price = { trade_goods = tea }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = chinaware } }
				calculate_trade_goods_price = { trade_goods = chinaware }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = spices } }
				calculate_trade_goods_price = { trade_goods = spices }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = coffee } }
				calculate_trade_goods_price = { trade_goods = coffee }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = cotton } }
				calculate_trade_goods_price = { trade_goods = cotton }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = sugar } }
				calculate_trade_goods_price = { trade_goods = sugar }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = tobacco } }
				calculate_trade_goods_price = { trade_goods = tobacco }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = cocoa } }
				calculate_trade_goods_price = { trade_goods = cocoa }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = silk } }
				calculate_trade_goods_price = { trade_goods = silk }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = dyes } }
				calculate_trade_goods_price = { trade_goods = dyes }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = tropical_wood } }
				calculate_trade_goods_price = { trade_goods = tropical_wood }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = livestock } }
				calculate_trade_goods_price = { trade_goods = livestock }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = incense } }
				calculate_trade_goods_price = { trade_goods = incense }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = glass } }
				calculate_trade_goods_price = { trade_goods = glass }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = paper } }
				calculate_trade_goods_price = { trade_goods = paper }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = gems } }
				calculate_trade_goods_price = { trade_goods = gems }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = coal } }
				calculate_trade_goods_price = { trade_goods = coal }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = cloves } }
				calculate_trade_goods_price = { trade_goods = cloves }
			}
			if = { 
				limit = { is_eligible_for_trade_good = { trade_goods = unknown } }
				calculate_trade_goods_price = { trade_goods = unknown }
			}
		}
	}

	#Keep the current trade good
	option = {
		name = flavor_gbr.200.a
		ai_chance = {
			factor = 1
		}
	}

	#grain
	option = {
		name = flavor_gbr.200.grain
		trigger = { is_eligible_for_trade_good = { trade_goods = grain } }
		purchase_trade_goods = { trade_goods = grain }
		ai_chance = {
			factor = 0
		}
	}
	#wine
	option = {
		name = flavor_gbr.200.wine
		trigger = { is_eligible_for_trade_good = { trade_goods = wine } }
		purchase_trade_goods = { trade_goods = wine }
		ai_chance = {
			factor = 0
		}
	}
	#wool
	option = {
		name = flavor_gbr.200.wool
		trigger = { is_eligible_for_trade_good = { trade_goods = wool } }
		purchase_trade_goods = { trade_goods = wool }
		ai_chance = {
			factor = 0
		}
	}
	#cloth
	option = {
		name = flavor_gbr.200.cloth
		trigger = { is_eligible_for_trade_good = { trade_goods = cloth } }
		purchase_trade_goods = { trade_goods = cloth }
		ai_chance = {
			factor = 0
		}
	}
	#fish
	option = {
		name = flavor_gbr.200.fish
		trigger = { is_eligible_for_trade_good = { trade_goods = fish } }
		purchase_trade_goods = { trade_goods = fish }
		ai_chance = {
			factor = 0
		}
	}
	#fur
	option = {
		name = flavor_gbr.200.fur
		trigger = { is_eligible_for_trade_good = { trade_goods = fur } }
		purchase_trade_goods = { trade_goods = fur }
		ai_chance = {
			factor = 0
		}
	}
	#salt
	option = {
		name = flavor_gbr.200.salt
		trigger = { is_eligible_for_trade_good = { trade_goods = salt } }
		purchase_trade_goods = { trade_goods = salt }
		ai_chance = {
			factor = 0
		}
	}
	#naval_supplies
	option = {
		name = flavor_gbr.200.naval_supplies
		trigger = { is_eligible_for_trade_good = { trade_goods = naval_supplies } }
		purchase_trade_goods = { trade_goods = naval_supplies }
		ai_chance = {
			factor = 0
		}
	}
	#copper
	option = {
		name = flavor_gbr.200.copper
		trigger = { is_eligible_for_trade_good = { trade_goods = copper } }
		purchase_trade_goods = { trade_goods = copper }
		ai_chance = {
			factor = 0
		}
	}
	#gold
	option = {
		name = flavor_gbr.200.gold
		trigger = { is_eligible_for_trade_good = { trade_goods = gold } }
		purchase_trade_goods = { trade_goods = gold }
		ai_chance = {
			factor = 0
		}
	}
	#iron
	option = {
		name = flavor_gbr.200.iron
		trigger = { is_eligible_for_trade_good = { trade_goods = iron } }
		purchase_trade_goods = { trade_goods = iron }
		ai_chance = {
			factor = 0
		}
	}
	#slaves
	option = {
		name = flavor_gbr.200.slaves
		trigger = { is_eligible_for_trade_good = { trade_goods = slaves } }
		purchase_trade_goods = { trade_goods = slaves }
		ai_chance = {
			factor = 0
		}
	}
	#ivory
	option = {
		name = flavor_gbr.200.ivory
		trigger = { is_eligible_for_trade_good = { trade_goods = ivory } }
		purchase_trade_goods = { trade_goods = ivory }
		ai_chance = {
			factor = 0
		}
	}
	#tea
	option = {
		name = flavor_gbr.200.tea
		trigger = { is_eligible_for_trade_good = { trade_goods = tea } }
		purchase_trade_goods = { trade_goods = tea }
		ai_chance = {
			factor = 0
		}
	}
	#chinaware
	option = {
		name = flavor_gbr.200.chinaware
		trigger = { is_eligible_for_trade_good = { trade_goods = chinaware } }
		purchase_trade_goods = { trade_goods = chinaware }
		ai_chance = {
			factor = 0
		}
	}
	#spices
	option = {
		name = flavor_gbr.200.spices
		trigger = { is_eligible_for_trade_good = { trade_goods = spices } }
		purchase_trade_goods = { trade_goods = spices }
		ai_chance = {
			factor = 0
		}
	}
	#coffee
	option = {
		name = flavor_gbr.200.coffee
		trigger = { is_eligible_for_trade_good = { trade_goods = coffee } }
		purchase_trade_goods = { trade_goods = coffee }
		ai_chance = {
			factor = 0
		}
	}
	#cotton
	option = {
		name = flavor_gbr.200.cotton
		trigger = { is_eligible_for_trade_good = { trade_goods = cotton } }
		purchase_trade_goods = { trade_goods = cotton }
		ai_chance = {
			factor = 0
		}
	}
	#sugar
	option = {
		name = flavor_gbr.200.sugar
		trigger = { is_eligible_for_trade_good = { trade_goods = sugar } }
		purchase_trade_goods = { trade_goods = sugar }
		ai_chance = {
			factor = 0
		}
	}
	#tobacco
	option = {
		name = flavor_gbr.200.tobacco
		trigger = { is_eligible_for_trade_good = { trade_goods = tobacco } }
		purchase_trade_goods = { trade_goods = tobacco }
		ai_chance = {
			factor = 0
		}
	}
	#cocoa
	option = {
		name = flavor_gbr.200.cocoa
		trigger = { is_eligible_for_trade_good = { trade_goods = cocoa } }
		purchase_trade_goods = { trade_goods = cocoa }
		ai_chance = {
			factor = 0
		}
	}
	#silk
	option = {
		name = flavor_gbr.200.silk
		trigger = { is_eligible_for_trade_good = { trade_goods = silk } }
		purchase_trade_goods = { trade_goods = silk }
		ai_chance = {
			factor = 0
		}
	}
	#dyes
	option = {
		name = flavor_gbr.200.dyes
		trigger = { is_eligible_for_trade_good = { trade_goods = dyes } }
		purchase_trade_goods = { trade_goods = dyes }
		ai_chance = {
			factor = 0
		}
	}
	#tropical_wood
	option = {
		name = flavor_gbr.200.tropical_wood
		trigger = { is_eligible_for_trade_good = { trade_goods = tropical_wood } }
		purchase_trade_goods = { trade_goods = tropical_wood }
		ai_chance = {
			factor = 0
		}
	}
	#livestock
	option = {
		name = flavor_gbr.200.livestock
		trigger = { is_eligible_for_trade_good = { trade_goods = livestock } }
		purchase_trade_goods = { trade_goods = livestock }
		ai_chance = {
			factor = 0
		}
	}
	#incense
	option = {
		name = flavor_gbr.200.incense
		trigger = { is_eligible_for_trade_good = { trade_goods = incense } }
		purchase_trade_goods = { trade_goods = incense }
		ai_chance = {
			factor = 0
		}
	}
	#glass
	option = {
		name = flavor_gbr.200.glass
		trigger = { is_eligible_for_trade_good = { trade_goods = glass } }
		purchase_trade_goods = { trade_goods = glass }
		ai_chance = {
			factor = 0
		}
	}
	#paper
	option = {
		name = flavor_gbr.200.paper
		trigger = { is_eligible_for_trade_good = { trade_goods = paper } }
		purchase_trade_goods = { trade_goods = paper }
		ai_chance = {
			factor = 0
		}
	}
	#gems
	option = {
		name = flavor_gbr.200.gems
		trigger = { is_eligible_for_trade_good = { trade_goods = gems } }
		purchase_trade_goods = { trade_goods = gems }
		ai_chance = {
			factor = 0
		}
	}
	#coal
	option = {
		name = flavor_gbr.200.coal
		trigger = { is_eligible_for_trade_good = { trade_goods = coal } }
		purchase_trade_goods = { trade_goods = coal }
		ai_chance = {
			factor = 0
		}
	}
	#cloves
	option = {
		name = flavor_gbr.200.cloves
		trigger = { is_eligible_for_trade_good = { trade_goods = cloves } }
		purchase_trade_goods = { trade_goods = cloves }
		ai_chance = {
			factor = 0
		}
	}
	#unknown
	option = {
		name = flavor_gbr.200.unknown
		trigger = { is_eligible_for_trade_good = { trade_goods = unknown } }
		purchase_trade_goods = { trade_goods = unknown }
		ai_chance = {
			factor = 0
		}
	}
}