country_decisions = {

	english_anglo_saxon_nation = {
		major = yes
		potential = {
			normal_or_historical_nations = yes
			was_never_end_game_tag_trigger = yes
			OR = {
				ai = no
			}
			NOT = { tag = EN0 }
			NOT = { tag = ENG }
			NOT = { exists = GBR }
			NOT = { tag = EUR }
			NOT = { tag = HLR }
			NOT = { tag = PAP }
			OR = {
				primary_culture = anglo_saxon
			}
			is_colonial_nation = no
			OR = {
				is_former_colonial_nation = no
				AND = {
					is_former_colonial_nation = yes
					ai = no
				}
			}
		}
		provinces_to_highlight = {
			OR = {
				province_id = 236		# London
				province_id = 237		# Oxfordshire
				province_id = 234		# Wessex
				province_id = 235		# Kent
				province_id = 238		# East Anglia
				province_id = 246		# Northumberland
			}
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
			}
		}
		allow = {
			is_at_war = no
			is_free_or_tributary_trigger = yes
			is_nomad = no
			NOT = { exists = EN0 }
			owns_core_province = 237		# Oxfordshire
			owns_core_province = 234		# Wessex
			owns_core_province = 235		# Kent
			owns_core_province = 238		# East Anglia
			owns_core_province = 236		# London
			
			#requires more provinces than vanilla, as they did historically before forming a united England
			owns_core_province = 246		# Northumberland
			
			236 = { 						# London
				is_state = yes
			}
		}
		effect = {
			236 = { #London
				move_capital_effect = yes
			}
			change_tag = EN0
			
			
			#If have unique missions, instead triggers an event asking if want to switch to vanilla English missions
			if = {
				limit = {
					NOT = {
						OR = {
							was_tag = WSX	#uses same missions as Anglo-Saxon England
						}
					}
				}
				swap_non_generic_missions = yes
			}
			if = {
				limit = {
					OR = {
						was_tag = NOL	#Northumberland, has imported missions in ET mod
						was_tag = MRC	#Mercia, has imported missions in ET mod
					}
				}
				country_event = {
					id = swap_mission_tree_event.2
				}
			}
			
			remove_non_electors_emperors_from_empire_effect = yes
			if = {
				limit = {
					primary_culture = normand
				}
				change_primary_culture = english
			}
			if = {
				limit = {
					NOT = { government_rank = 2 }
				}
				set_government_rank = 2
			}
			home_counties_area = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = EN0
			}
			yorkshire_area = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = EN0
			}
			east_midlands_area = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = EN0
			}
			west_midlands_area = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = EN0
			}
			east_anglia_area = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = EN0
			}
			wales_area = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = EN0
			}
			wessex_area = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = EN0
			}
			#Cumbria
			247 = {
				if = {
					limit = {
						NOT = { owned_by = ROOT }
					}
					add_permanent_claim = EN0
				}
			}
			#Northumberland
			246 = {
				if = {
					limit = {
						NOT = { owned_by = ROOT }
					}
					add_permanent_claim = EN0
				}
			}
			add_country_modifier = {
				name = "centralization_modifier"
				duration = 7300
			}
			add_prestige = 25
			set_country_flag = formed_england_flag
			if = {
				limit = { has_custom_ideas = no }
				country_event = { id = ideagroups.1 } #Swap Ideas
			}
		}
		ai_will_do = {
			factor = 1
		}
		ai_importance = 400
	}
	
}
