###################
#Feudal Events    #
###################

namespace = et_feudal

#Initiate split
country_event = {
	id = et_feudal.1
	title = et_feudal.1.t
	desc = et_feudal.1.d
	picture = COLONIZATION_eventPicture
	
	is_triggered_only = yes
	
	hidden = yes
	
	trigger = {
		NOT = { has_global_flag = feudal_split_in_progress }
	}
	
	immediate = {
		set_global_flag = feudal_split_in_progress
		clr_global_flag = divide_in_two
		set_country_flag = feudal_split_in_country
		clear_global_event_target = splittag1
		clear_global_event_target = splittag2
		clear_global_event_target = splittag3
		set_variable = { which = splittags_set value = 0 }
		
		if = { limit = { tag = FRK any_owned_province = { region = france_region } NOT = { exists = FRW } }
			set_variable = { which = splittags_set value = 1 }
			FRW = { save_global_event_target_as = splittag1 }
			random_owned_province = { limit = { region = france_region } add_core = FRW set_province_flag = splittag1_prov }
		}
		if = { limit = { tag = FRK any_owned_province = { region = north_german_region } NOT = { exists = FRE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				FRE = { save_global_event_target_as = splittag2 }
				random_owned_province = { limit = { region = north_german_region } add_core = FRE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				FRE = { save_global_event_target_as = splittag1 }
				random_owned_province = { limit = { region = north_german_region } add_core = FRE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { tag = FRK any_owned_province = { region = low_countries_region } NOT = { exists = FRM } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				FRM = { save_global_event_target_as = splittag3 }
				random_owned_province = { limit = { region = low_countries_region } add_core = FRM set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				FRM = { save_global_event_target_as = splittag2 }
				random_owned_province = { limit = { region = low_countries_region } add_core = FRM set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				FRM = { save_global_event_target_as = splittag1 }
				random_owned_province = { limit = { region = low_countries_region } add_core = FRM set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { government_rank = 2 any_owned_province = { region = italy_region } NOT = { exists = ITA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ITA = { save_global_event_target_as = splittag3 }
				random_owned_province = { limit = { region = italy_region } add_core = ITA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ITA = { save_global_event_target_as = splittag2 }
				random_owned_province = { limit = { region = italy_region } add_core = ITA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ITA = { save_global_event_target_as = splittag1 }
				random_owned_province = { limit = { region = italy_region } add_core = ITA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 174 NOT = { exists = AQT } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				AQT = { save_global_event_target_as = splittag3 }
				174 = { add_core = AQT set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				AQT = { save_global_event_target_as = splittag2 }
				174 = { add_core = AQT set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				AQT = { save_global_event_target_as = splittag1 }
				174 = { add_core = AQT set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 171 NOT = { exists = BRI } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BRI = { save_global_event_target_as = splittag3 }
				171 = { add_core = BRI set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BRI = { save_global_event_target_as = splittag2 }
				171 = { add_core = BRI set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BRI = { save_global_event_target_as = splittag1 }
				171 = { add_core = BRI set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 192 NOT = { exists = BUR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BUR = { save_global_event_target_as = splittag3 }
				192 = { add_core = BUR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BUR = { save_global_event_target_as = splittag2 }
				192 = { add_core = BUR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BUR = { save_global_event_target_as = splittag1 }
				192 = { add_core = BUR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 201 NOT = { exists = PRO } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				PRO = { save_global_event_target_as = splittag3 }
				201 = { add_core = PRO set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				PRO = { save_global_event_target_as = splittag2 }
				201 = { add_core = PRO set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				PRO = { save_global_event_target_as = splittag1 }
				201 = { add_core = PRO set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 189 NOT = { exists = LOR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				LOR = { save_global_event_target_as = splittag3 }
				189 = { add_core = LOR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				LOR = { save_global_event_target_as = splittag2 }
				189 = { add_core = LOR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				LOR = { save_global_event_target_as = splittag1 }
				189 = { add_core = LOR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 65 NOT = { exists = BAV } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BAV = { save_global_event_target_as = splittag3 }
				65 = { add_core = BAV set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BAV = { save_global_event_target_as = splittag2 }
				65 = { add_core = BAV set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BAV = { save_global_event_target_as = splittag1 }
				65 = { add_core = BAV set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 62 NOT = { exists = SAX } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SAX = { save_global_event_target_as = splittag3 }
				62 = { add_core = SAX set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SAX = { save_global_event_target_as = splittag2 }
				62 = { add_core = SAX set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SAX = { save_global_event_target_as = splittag1 }
				62 = { add_core = SAX set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 72 NOT = { exists = SWA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SWA = { save_global_event_target_as = splittag3 }
				72 = { add_core = SWA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SWA = { save_global_event_target_as = splittag2 }
				72 = { add_core = SWA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SWA = { save_global_event_target_as = splittag1 }
				72 = { add_core = SWA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1876 NOT = { exists = FRC } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				FRC = { save_global_event_target_as = splittag3 }
				1876 = { add_core = FRC set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				FRC = { save_global_event_target_as = splittag2 }
				1876 = { add_core = FRC set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				FRC = { save_global_event_target_as = splittag1 }
				1876 = { add_core = FRC set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 134 NOT = { exists = HAB } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				HAB = { save_global_event_target_as = splittag3 }
				134 = { add_core = HAB set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				HAB = { save_global_event_target_as = splittag2 }
				134 = { add_core = HAB set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				HAB = { save_global_event_target_as = splittag1 }
				134 = { add_core = HAB set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 132 NOT = { exists = STY } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				STY = { save_global_event_target_as = splittag3 }
				132 = { add_core = STY set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				STY = { save_global_event_target_as = splittag2 }
				132 = { add_core = STY set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				STY = { save_global_event_target_as = splittag1 }
				132 = { add_core = STY set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 129 NOT = { exists = CAR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				CAR = { save_global_event_target_as = splittag3 }
				129 = { add_core = CAR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				CAR = { save_global_event_target_as = splittag2 }
				129 = { add_core = CAR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				CAR = { save_global_event_target_as = splittag1 }
				129 = { add_core = CAR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 266 NOT = { exists = BOH } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BOH = { save_global_event_target_as = splittag3 }
				266 = { add_core = BOH set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BOH = { save_global_event_target_as = splittag2 }
				266 = { add_core = BOH set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BOH = { save_global_event_target_as = splittag1 }
				266 = { add_core = BOH set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 262 NOT = { exists = POL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				POL = { save_global_event_target_as = splittag3 }
				262 = { add_core = POL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				POL = { save_global_event_target_as = splittag2 }
				262 = { add_core = POL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				POL = { save_global_event_target_as = splittag1 }
				262 = { add_core = POL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 265 NOT = { exists = MRV } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MRV = { save_global_event_target_as = splittag3 }
				265 = { add_core = MRV set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MRV = { save_global_event_target_as = splittag2 }
				265 = { add_core = MRV set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MRV = { save_global_event_target_as = splittag1 }
				265 = { add_core = MRV set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 131 NOT = { exists = CRO } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				CRO = { save_global_event_target_as = splittag3 }
				131 = { add_core = CRO set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				CRO = { save_global_event_target_as = splittag2 }
				131 = { add_core = CRO set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				CRO = { save_global_event_target_as = splittag1 }
				131 = { add_core = CRO set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 141 NOT = { exists = SER } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SER = { save_global_event_target_as = splittag3 }
				141 = { add_core = SER set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SER = { save_global_event_target_as = splittag2 }
				141 = { add_core = SER set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SER = { save_global_event_target_as = splittag1 }
				141 = { add_core = SER set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 12 NOT = { exists = DAN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				DAN = { save_global_event_target_as = splittag3 }
				12 = { add_core = DAN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				DAN = { save_global_event_target_as = splittag2 }
				12 = { add_core = DAN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				DAN = { save_global_event_target_as = splittag1 }
				12 = { add_core = DAN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1 NOT = { exists = SWE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SWE = { save_global_event_target_as = splittag3 }
				1 = { add_core = SWE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SWE = { save_global_event_target_as = splittag2 }
				1 = { add_core = SWE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SWE = { save_global_event_target_as = splittag1 }
				1 = { add_core = SWE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 17 NOT = { exists = NOR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				NOR = { save_global_event_target_as = splittag3 }
				17 = { add_core = NOR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				NOR = { save_global_event_target_as = splittag2 }
				17 = { add_core = NOR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				NOR = { save_global_event_target_as = splittag1 }
				17 = { add_core = NOR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 27 NOT = { exists = FIN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				FIN = { save_global_event_target_as = splittag3 }
				27 = { add_core = FIN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				FIN = { save_global_event_target_as = splittag2 }
				27 = { add_core = FIN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				FIN = { save_global_event_target_as = splittag1 }
				27 = { add_core = FIN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 241 NOT = { exists = WLS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				WLS = { save_global_event_target_as = splittag3 }
				241 = { add_core = WLS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				WLS = { save_global_event_target_as = splittag2 }
				241 = { add_core = WLS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				WLS = { save_global_event_target_as = splittag1 }
				241 = { add_core = WLS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 236 NOT = { exists = ENG } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ENG = { save_global_event_target_as = splittag3 }
				236 = { add_core = ENG set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ENG = { save_global_event_target_as = splittag2 }
				236 = { add_core = ENG set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ENG = { save_global_event_target_as = splittag1 }
				236 = { add_core = ENG set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 248 NOT = { exists = SCO } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SCO = { save_global_event_target_as = splittag3 }
				248 = { add_core = SCO set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SCO = { save_global_event_target_as = splittag2 }
				248 = { add_core = SCO set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SCO = { save_global_event_target_as = splittag1 }
				248 = { add_core = SCO set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 373 NOT = { exists = IRE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				IRE = { save_global_event_target_as = splittag3 }
				373 = { add_core = IRE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				IRE = { save_global_event_target_as = splittag2 }
				373 = { add_core = IRE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				IRE = { save_global_event_target_as = splittag1 }
				373 = { add_core = IRE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 252 NOT = { exists = HSC } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				HSC = { save_global_event_target_as = splittag3 }
				252 = { add_core = HSC set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				HSC = { save_global_event_target_as = splittag2 }
				252 = { add_core = HSC set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				HSC = { save_global_event_target_as = splittag1 }
				252 = { add_core = HSC set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 196 NOT = { exists = TOU } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				TOU = { save_global_event_target_as = splittag3 }
				196 = { add_core = TOU set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				TOU = { save_global_event_target_as = splittag2 }
				196 = { add_core = TOU set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				TOU = { save_global_event_target_as = splittag1 }
				196 = { add_core = TOU set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 234 NOT = { exists = WSX } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				WSX = { save_global_event_target_as = splittag3 }
				234 = { add_core = WSX set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				WSX = { save_global_event_target_as = splittag2 }
				234 = { add_core = WSX set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				WSX = { save_global_event_target_as = splittag1 }
				234 = { add_core = WSX set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 97 NOT = { exists = HOL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				HOL = { save_global_event_target_as = splittag3 }
				97 = { add_core = HOL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				HOL = { save_global_event_target_as = splittag2 }
				97 = { add_core = HOL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				HOL = { save_global_event_target_as = splittag1 }
				97 = { add_core = HOL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 104 NOT = { exists = LOM } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				LOM = { save_global_event_target_as = splittag3 }
				104 = { add_core = LOM set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				LOM = { save_global_event_target_as = splittag2 }
				104 = { add_core = LOM set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				LOM = { save_global_event_target_as = splittag1 }
				104 = { add_core = LOM set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1775 NOT = { exists = SHL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SHL = { save_global_event_target_as = splittag3 }
				1775 = { add_core = SHL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SHL = { save_global_event_target_as = splittag2 }
				1775 = { add_core = SHL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SHL = { save_global_event_target_as = splittag1 }
				1775 = { add_core = SHL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 50 NOT = { exists = BRA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BRA = { save_global_event_target_as = splittag3 }
				50 = { add_core = BRA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BRA = { save_global_event_target_as = splittag2 }
				50 = { add_core = BRA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BRA = { save_global_event_target_as = splittag1 }
				50 = { add_core = BRA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 3117 NOT = { exists = BOS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BOS = { save_global_event_target_as = splittag3 }
				3117 = { add_core = BOS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BOS = { save_global_event_target_as = splittag2 }
				3117 = { add_core = BOS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BOS = { save_global_event_target_as = splittag1 }
				3117 = { add_core = BOS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 144 NOT = { exists = EPI } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				EPI = { save_global_event_target_as = splittag3 }
				144 = { add_core = EPI set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				EPI = { save_global_event_target_as = splittag2 }
				144 = { add_core = EPI set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				EPI = { save_global_event_target_as = splittag1 }
				144 = { add_core = EPI set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 419 NOT = { exists = ARM } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ARM = { save_global_event_target_as = splittag3 }
				419 = { add_core = ARM set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ARM = { save_global_event_target_as = splittag2 }
				419 = { add_core = ARM set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ARM = { save_global_event_target_as = splittag1 }
				419 = { add_core = ARM set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 379 NOT = { exists = KOJ } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				KOJ = { save_global_event_target_as = splittag3 }
				379 = { add_core = KOJ set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				KOJ = { save_global_event_target_as = splittag2 }
				379 = { add_core = KOJ set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				KOJ = { save_global_event_target_as = splittag1 }
				379 = { add_core = KOJ set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 257 NOT = { exists = MAZ } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MAZ = { save_global_event_target_as = splittag3 }
				257 = { add_core = MAZ set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MAZ = { save_global_event_target_as = splittag2 }
				257 = { add_core = MAZ set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MAZ = { save_global_event_target_as = splittag1 }
				257 = { add_core = MAZ set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 272 NOT = { exists = LIT } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				LIT = { save_global_event_target_as = splittag3 }
				272 = { add_core = LIT set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				LIT = { save_global_event_target_as = splittag2 }
				272 = { add_core = LIT set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				LIT = { save_global_event_target_as = splittag1 }
				272 = { add_core = LIT set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 280 NOT = { exists = KIE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				KIE = { save_global_event_target_as = splittag3 }
				280 = { add_core = KIE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				KIE = { save_global_event_target_as = splittag2 }
				280 = { add_core = KIE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				KIE = { save_global_event_target_as = splittag1 }
				280 = { add_core = KIE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 295 NOT = { exists = MOS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MOS = { save_global_event_target_as = splittag3 }
				295 = { add_core = MOS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MOS = { save_global_event_target_as = splittag2 }
				295 = { add_core = MOS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MOS = { save_global_event_target_as = splittag1 }
				295 = { add_core = MOS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 205 NOT = { exists = SAV } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SAV = { save_global_event_target_as = splittag3 }
				205 = { add_core = SAV set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SAV = { save_global_event_target_as = splittag2 }
				205 = { add_core = SAV set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SAV = { save_global_event_target_as = splittag1 }
				205 = { add_core = SAV set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 238 NOT = { exists = ESX } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ESX = { save_global_event_target_as = splittag3 }
				238 = { add_core = ESX set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ESX = { save_global_event_target_as = splittag2 }
				238 = { add_core = ESX set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ESX = { save_global_event_target_as = splittag1 }
				238 = { add_core = ESX set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 100 NOT = { exists = FRI } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				FRI = { save_global_event_target_as = splittag3 }
				100 = { add_core = FRI set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				FRI = { save_global_event_target_as = splittag2 }
				100 = { add_core = FRI set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				FRI = { save_global_event_target_as = splittag1 }
				100 = { add_core = FRI set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 121 NOT = { exists = NAP } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				NAP = { save_global_event_target_as = splittag3 }
				121 = { add_core = NAP set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				NAP = { save_global_event_target_as = splittag2 }
				121 = { add_core = NAP set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				NAP = { save_global_event_target_as = splittag1 }
				121 = { add_core = NAP set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 4 NOT = { exists = SVE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SVE = { save_global_event_target_as = splittag3 }
				4 = { add_core = SVE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SVE = { save_global_event_target_as = splittag2 }
				4 = { add_core = SVE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SVE = { save_global_event_target_as = splittag1 }
				4 = { add_core = SVE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 63 NOT = { exists = THU } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				THU = { save_global_event_target_as = splittag3 }
				63 = { add_core = THU set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				THU = { save_global_event_target_as = splittag2 }
				63 = { add_core = THU set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				THU = { save_global_event_target_as = splittag1 }
				63 = { add_core = THU set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 138 NOT = { exists = MON } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MON = { save_global_event_target_as = splittag3 }
				138 = { add_core = MON set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MON = { save_global_event_target_as = splittag2 }
				138 = { add_core = MON set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MON = { save_global_event_target_as = splittag1 }
				138 = { add_core = MON set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 2007 NOT = { exists = THS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				THS = { save_global_event_target_as = splittag3 }
				2007 = { add_core = THS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				THS = { save_global_event_target_as = splittag2 }
				2007 = { add_core = THS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				THS = { save_global_event_target_as = splittag1 }
				2007 = { add_core = THS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 423 NOT = { exists = GEO } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				GEO = { save_global_event_target_as = splittag3 }
				423 = { add_core = GEO set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				GEO = { save_global_event_target_as = splittag2 }
				423 = { add_core = GEO set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				GEO = { save_global_event_target_as = splittag1 }
				423 = { add_core = GEO set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 378 NOT = { exists = TPL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				TPL = { save_global_event_target_as = splittag3 }
				378 = { add_core = TPL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				TPL = { save_global_event_target_as = splittag2 }
				378 = { add_core = TPL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				TPL = { save_global_event_target_as = splittag1 }
				378 = { add_core = TPL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 264 NOT = { exists = SIL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SIL = { save_global_event_target_as = splittag3 }
				264 = { add_core = SIL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SIL = { save_global_event_target_as = splittag2 }
				264 = { add_core = SIL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SIL = { save_global_event_target_as = splittag1 }
				264 = { add_core = SIL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 39 NOT = { exists = KUR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				KUR = { save_global_event_target_as = splittag3 }
				39 = { add_core = KUR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				KUR = { save_global_event_target_as = splittag2 }
				39 = { add_core = KUR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				KUR = { save_global_event_target_as = splittag1 }
				39 = { add_core = KUR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 3114 NOT = { exists = VOL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				VOL = { save_global_event_target_as = splittag3 }
				3114 = { add_core = VOL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				VOL = { save_global_event_target_as = splittag2 }
				3114 = { add_core = VOL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				VOL = { save_global_event_target_as = splittag1 }
				3114 = { add_core = VOL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 310 NOT = { exists = NOV } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				NOV = { save_global_event_target_as = splittag3 }
				310 = { add_core = NOV set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				NOV = { save_global_event_target_as = splittag2 }
				310 = { add_core = NOV set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				NOV = { save_global_event_target_as = splittag1 }
				310 = { add_core = NOV set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 178 NOT = { exists = ANJ } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ANJ = { save_global_event_target_as = splittag3 }
				178 = { add_core = ANJ set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ANJ = { save_global_event_target_as = splittag2 }
				178 = { add_core = ANJ set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ANJ = { save_global_event_target_as = splittag1 }
				178 = { add_core = ANJ set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 240 NOT = { exists = MRC } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MRC = { save_global_event_target_as = splittag3 }
				240 = { add_core = MRC set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MRC = { save_global_event_target_as = splittag2 }
				240 = { add_core = MRC set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MRC = { save_global_event_target_as = splittag1 }
				240 = { add_core = MRC set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 92 NOT = { exists = BRB } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BRB = { save_global_event_target_as = splittag3 }
				92 = { add_core = BRB set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BRB = { save_global_event_target_as = splittag2 }
				92 = { add_core = BRB set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BRB = { save_global_event_target_as = splittag1 }
				92 = { add_core = BRB set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 125 NOT = { exists = SIC } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SIC = { save_global_event_target_as = splittag3 }
				125 = { add_core = SIC set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SIC = { save_global_event_target_as = splittag2 }
				125 = { add_core = SIC set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SIC = { save_global_event_target_as = splittag1 }
				125 = { add_core = SIC set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 24 NOT = { exists = ROG } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ROG = { save_global_event_target_as = splittag3 }
				24 = { add_core = ROG set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ROG = { save_global_event_target_as = splittag2 }
				24 = { add_core = ROG set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ROG = { save_global_event_target_as = splittag1 }
				24 = { add_core = ROG set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 57 NOT = { exists = BRU } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BRU = { save_global_event_target_as = splittag3 }
				57 = { add_core = BRU set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BRU = { save_global_event_target_as = splittag2 }
				57 = { add_core = BRU set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BRU = { save_global_event_target_as = splittag1 }
				57 = { add_core = BRU set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 4266 NOT = { exists = ALB } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ALB = { save_global_event_target_as = splittag3 }
				4266 = { add_core = ALB set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ALB = { save_global_event_target_as = splittag2 }
				4266 = { add_core = ALB set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ALB = { save_global_event_target_as = splittag1 }
				4266 = { add_core = ALB set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 146 NOT = { exists = ATH } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ATH = { save_global_event_target_as = splittag3 }
				146 = { add_core = ATH set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ATH = { save_global_event_target_as = splittag2 }
				146 = { add_core = ATH set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ATH = { save_global_event_target_as = splittag1 }
				146 = { add_core = ATH set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 462 NOT = { exists = IME } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				IME = { save_global_event_target_as = splittag3 }
				462 = { add_core = IME set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				IME = { save_global_event_target_as = splittag2 }
				462 = { add_core = IME set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				IME = { save_global_event_target_as = splittag1 }
				462 = { add_core = IME set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 2367 NOT = { exists = ANC } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ANC = { save_global_event_target_as = splittag3 }
				2367 = { add_core = ANC set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ANC = { save_global_event_target_as = splittag2 }
				2367 = { add_core = ANC set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ANC = { save_global_event_target_as = splittag1 }
				2367 = { add_core = ANC set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 262 NOT = { exists = KRA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				KRA = { save_global_event_target_as = splittag3 }
				262 = { add_core = KRA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				KRA = { save_global_event_target_as = splittag2 }
				262 = { add_core = KRA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				KRA = { save_global_event_target_as = splittag1 }
				262 = { add_core = KRA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 36 NOT = { exists = EST } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				EST = { save_global_event_target_as = splittag3 }
				36 = { add_core = EST set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				EST = { save_global_event_target_as = splittag2 }
				36 = { add_core = EST set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				EST = { save_global_event_target_as = splittag1 }
				36 = { add_core = EST set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 289 NOT = { exists = CHR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				CHR = { save_global_event_target_as = splittag3 }
				289 = { add_core = CHR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				CHR = { save_global_event_target_as = splittag2 }
				289 = { add_core = CHR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				CHR = { save_global_event_target_as = splittag1 }
				289 = { add_core = CHR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 274 NOT = { exists = PSK } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				PSK = { save_global_event_target_as = splittag3 }
				274 = { add_core = PSK set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				PSK = { save_global_event_target_as = splittag2 }
				274 = { add_core = PSK set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				PSK = { save_global_event_target_as = splittag1 }
				274 = { add_core = PSK set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 176 NOT = { exists = FOI } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				FOI = { save_global_event_target_as = splittag3 }
				176 = { add_core = FOI set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				FOI = { save_global_event_target_as = splittag2 }
				176 = { add_core = FOI set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				FOI = { save_global_event_target_as = splittag1 }
				176 = { add_core = FOI set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 235 NOT = { exists = KEN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				KEN = { save_global_event_target_as = splittag3 }
				235 = { add_core = KEN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				KEN = { save_global_event_target_as = splittag2 }
				235 = { add_core = KEN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				KEN = { save_global_event_target_as = splittag1 }
				235 = { add_core = KEN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 98 NOT = { exists = UTR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				UTR = { save_global_event_target_as = splittag3 }
				98 = { add_core = UTR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				UTR = { save_global_event_target_as = splittag2 }
				98 = { add_core = UTR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				UTR = { save_global_event_target_as = splittag1 }
				98 = { add_core = UTR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 116 NOT = { exists = TUS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				TUS = { save_global_event_target_as = splittag3 }
				116 = { add_core = TUS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				TUS = { save_global_event_target_as = splittag2 }
				116 = { add_core = TUS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				TUS = { save_global_event_target_as = splittag1 }
				116 = { add_core = TUS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 23 NOT = { exists = HOR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				HOR = { save_global_event_target_as = splittag3 }
				23 = { add_core = HOR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				HOR = { save_global_event_target_as = splittag2 }
				23 = { add_core = HOR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				HOR = { save_global_event_target_as = splittag1 }
				23 = { add_core = HOR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 81 NOT = { exists = HES } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				HES = { save_global_event_target_as = splittag3 }
				81 = { add_core = HES set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				HES = { save_global_event_target_as = splittag2 }
				81 = { add_core = HES set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				HES = { save_global_event_target_as = splittag1 }
				81 = { add_core = HES set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1772 NOT = { exists = SLO } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SLO = { save_global_event_target_as = splittag3 }
				1772 = { add_core = SLO set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SLO = { save_global_event_target_as = splittag2 }
				1772 = { add_core = SLO set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SLO = { save_global_event_target_as = splittag1 }
				1772 = { add_core = SLO set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 145 NOT = { exists = MOE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MOE = { save_global_event_target_as = splittag3 }
				145 = { add_core = MOE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MOE = { save_global_event_target_as = splittag2 }
				145 = { add_core = MOE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MOE = { save_global_event_target_as = splittag1 }
				145 = { add_core = MOE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1856 NOT = { exists = ABK } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ABK = { save_global_event_target_as = splittag3 }
				1856 = { add_core = ABK set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ABK = { save_global_event_target_as = splittag2 }
				1856 = { add_core = ABK set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ABK = { save_global_event_target_as = splittag1 }
				1856 = { add_core = ABK set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 2269 NOT = { exists = EDE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				EDE = { save_global_event_target_as = splittag3 }
				2269 = { add_core = EDE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				EDE = { save_global_event_target_as = splittag2 }
				2269 = { add_core = EDE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				EDE = { save_global_event_target_as = splittag1 }
				2269 = { add_core = EDE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 43 NOT = { exists = DNZ } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				DNZ = { save_global_event_target_as = splittag3 }
				43 = { add_core = DNZ set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				DNZ = { save_global_event_target_as = splittag2 }
				43 = { add_core = DNZ set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				DNZ = { save_global_event_target_as = splittag1 }
				43 = { add_core = DNZ set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 41 NOT = { exists = PRU } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				PRU = { save_global_event_target_as = splittag3 }
				41 = { add_core = PRU set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				PRU = { save_global_event_target_as = splittag2 }
				41 = { add_core = PRU set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				PRU = { save_global_event_target_as = splittag1 }
				41 = { add_core = PRU set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 276 NOT = { exists = MSK } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MSK = { save_global_event_target_as = splittag3 }
				276 = { add_core = MSK set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MSK = { save_global_event_target_as = splittag2 }
				276 = { add_core = MSK set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MSK = { save_global_event_target_as = splittag1 }
				276 = { add_core = MSK set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 307 NOT = { exists = VLA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				VLA = { save_global_event_target_as = splittag3 }
				307 = { add_core = VLA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				VLA = { save_global_event_target_as = splittag2 }
				307 = { add_core = VLA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				VLA = { save_global_event_target_as = splittag1 }
				307 = { add_core = VLA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 175 NOT = { exists = AMG } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				AMG = { save_global_event_target_as = splittag3 }
				175 = { add_core = AMG set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				AMG = { save_global_event_target_as = splittag2 }
				175 = { add_core = AMG set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				AMG = { save_global_event_target_as = splittag1 }
				175 = { add_core = AMG set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 233 NOT = { exists = CRN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				CRN = { save_global_event_target_as = splittag3 }
				233 = { add_core = CRN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				CRN = { save_global_event_target_as = splittag2 }
				233 = { add_core = CRN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				CRN = { save_global_event_target_as = splittag1 }
				233 = { add_core = CRN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 99 NOT = { exists = GEL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				GEL = { save_global_event_target_as = splittag3 }
				99 = { add_core = GEL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				GEL = { save_global_event_target_as = splittag2 }
				99 = { add_core = GEL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				GEL = { save_global_event_target_as = splittag1 }
				99 = { add_core = GEL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 104 NOT = { exists = MLO } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MLO = { save_global_event_target_as = splittag3 }
				104 = { add_core = MLO set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MLO = { save_global_event_target_as = splittag2 }
				104 = { add_core = MLO set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MLO = { save_global_event_target_as = splittag1 }
				104 = { add_core = MLO set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 21 NOT = { exists = HAL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				HAL = { save_global_event_target_as = splittag3 }
				21 = { add_core = HAL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				HAL = { save_global_event_target_as = splittag2 }
				21 = { add_core = HAL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				HAL = { save_global_event_target_as = splittag1 }
				21 = { add_core = HAL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 85 NOT = { exists = KOL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				KOL = { save_global_event_target_as = splittag3 }
				85 = { add_core = KOL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				KOL = { save_global_event_target_as = splittag2 }
				85 = { add_core = KOL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				KOL = { save_global_event_target_as = splittag1 }
				85 = { add_core = KOL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1951 NOT = { exists = TRA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				TRA = { save_global_event_target_as = splittag3 }
				1951 = { add_core = TRA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				TRA = { save_global_event_target_as = splittag2 }
				1951 = { add_core = TRA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				TRA = { save_global_event_target_as = splittag1 }
				1951 = { add_core = TRA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1773 NOT = { exists = ACH } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ACH = { save_global_event_target_as = splittag3 }
				1773 = { add_core = ACH set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ACH = { save_global_event_target_as = splittag2 }
				1773 = { add_core = ACH set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ACH = { save_global_event_target_as = splittag1 }
				1773 = { add_core = ACH set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 2265 NOT = { exists = KKE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				KKE = { save_global_event_target_as = splittag3 }
				2265 = { add_core = KKE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				KKE = { save_global_event_target_as = splittag2 }
				2265 = { add_core = KKE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				KKE = { save_global_event_target_as = splittag1 }
				2265 = { add_core = KKE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 321 NOT = { exists = CYP } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				CYP = { save_global_event_target_as = splittag3 }
				321 = { add_core = CYP set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				CYP = { save_global_event_target_as = splittag2 }
				321 = { add_core = CYP set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				CYP = { save_global_event_target_as = splittag1 }
				321 = { add_core = CYP set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 259 NOT = { exists = SNZ } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SNZ = { save_global_event_target_as = splittag3 }
				259 = { add_core = SNZ set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SNZ = { save_global_event_target_as = splittag2 }
				259 = { add_core = SNZ set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SNZ = { save_global_event_target_as = splittag1 }
				259 = { add_core = SNZ set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 37 NOT = { exists = LVA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				LVA = { save_global_event_target_as = splittag3 }
				37 = { add_core = LVA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				LVA = { save_global_event_target_as = splittag2 }
				37 = { add_core = LVA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				LVA = { save_global_event_target_as = splittag1 }
				37 = { add_core = LVA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 275 NOT = { exists = PLT } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				PLT = { save_global_event_target_as = splittag3 }
				275 = { add_core = PLT set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				PLT = { save_global_event_target_as = splittag2 }
				275 = { add_core = PLT set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				PLT = { save_global_event_target_as = splittag1 }
				275 = { add_core = PLT set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 301 NOT = { exists = RYA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				RYA = { save_global_event_target_as = splittag3 }
				301 = { add_core = RYA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				RYA = { save_global_event_target_as = splittag2 }
				301 = { add_core = RYA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				RYA = { save_global_event_target_as = splittag1 }
				301 = { add_core = RYA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 199 NOT = { exists = AUV } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				AUV = { save_global_event_target_as = splittag3 }
				199 = { add_core = AUV set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				AUV = { save_global_event_target_as = splittag2 }
				199 = { add_core = AUV set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				AUV = { save_global_event_target_as = splittag1 }
				199 = { add_core = AUV set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1860 NOT = { exists = EAN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				EAN = { save_global_event_target_as = splittag3 }
				1860 = { add_core = EAN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				EAN = { save_global_event_target_as = splittag2 }
				1860 = { add_core = EAN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				EAN = { save_global_event_target_as = splittag1 }
				1860 = { add_core = EAN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1742 NOT = { exists = LIM } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				LIM = { save_global_event_target_as = splittag3 }
				1742 = { add_core = LIM set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				LIM = { save_global_event_target_as = splittag2 }
				1742 = { add_core = LIM set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				LIM = { save_global_event_target_as = splittag1 }
				1742 = { add_core = LIM set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 111 NOT = { exists = AQU } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				AQU = { save_global_event_target_as = splittag3 }
				111 = { add_core = AQU set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				AQU = { save_global_event_target_as = splittag2 }
				111 = { add_core = AQU set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				AQU = { save_global_event_target_as = splittag1 }
				111 = { add_core = AQU set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 17 NOT = { exists = VES } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				VES = { save_global_event_target_as = splittag3 }
				17 = { add_core = VES set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				VES = { save_global_event_target_as = splittag2 }
				17 = { add_core = VES set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				VES = { save_global_event_target_as = splittag1 }
				17 = { add_core = VES set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 78 NOT = { exists = MAI } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MAI = { save_global_event_target_as = splittag3 }
				78 = { add_core = MAI set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MAI = { save_global_event_target_as = splittag2 }
				78 = { add_core = MAI set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MAI = { save_global_event_target_as = splittag1 }
				78 = { add_core = MAI set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 161 NOT = { exists = WAL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				WAL = { save_global_event_target_as = splittag3 }
				161 = { add_core = WAL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				WAL = { save_global_event_target_as = splittag2 }
				161 = { add_core = WAL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				WAL = { save_global_event_target_as = splittag1 }
				161 = { add_core = WAL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 147 NOT = { exists = NEO } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				NEO = { save_global_event_target_as = splittag3 }
				147 = { add_core = NEO set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				NEO = { save_global_event_target_as = splittag2 }
				147 = { add_core = NEO set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				NEO = { save_global_event_target_as = splittag1 }
				147 = { add_core = NEO set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 330 NOT = { exists = TRE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				TRE = { save_global_event_target_as = splittag3 }
				330 = { add_core = TRE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				TRE = { save_global_event_target_as = splittag2 }
				330 = { add_core = TRE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				TRE = { save_global_event_target_as = splittag1 }
				330 = { add_core = TRE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 263 NOT = { exists = RAT } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				RAT = { save_global_event_target_as = splittag3 }
				263 = { add_core = RAT set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				RAT = { save_global_event_target_as = splittag2 }
				263 = { add_core = RAT set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				RAT = { save_global_event_target_as = splittag1 }
				263 = { add_core = RAT set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 38 NOT = { exists = RIG } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				RIG = { save_global_event_target_as = splittag3 }
				38 = { add_core = RIG set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				RIG = { save_global_event_target_as = splittag2 }
				38 = { add_core = RIG set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				RIG = { save_global_event_target_as = splittag1 }
				38 = { add_core = RIG set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 2606 NOT = { exists = PRY } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				PRY = { save_global_event_target_as = splittag3 }
				2606 = { add_core = PRY set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				PRY = { save_global_event_target_as = splittag2 }
				2606 = { add_core = PRY set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				PRY = { save_global_event_target_as = splittag1 }
				2606 = { add_core = PRY set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 293 NOT = { exists = SMO } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SMO = { save_global_event_target_as = splittag3 }
				293 = { add_core = SMO set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SMO = { save_global_event_target_as = splittag2 }
				293 = { add_core = SMO set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SMO = { save_global_event_target_as = splittag1 }
				293 = { add_core = SMO set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 190 NOT = { exists = BOU } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BOU = { save_global_event_target_as = splittag3 }
				190 = { add_core = BOU set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BOU = { save_global_event_target_as = splittag2 }
				190 = { add_core = BOU set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BOU = { save_global_event_target_as = splittag1 }
				190 = { add_core = BOU set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 243 NOT = { exists = LIN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				LIN = { save_global_event_target_as = splittag3 }
				243 = { add_core = LIN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				LIN = { save_global_event_target_as = splittag2 }
				243 = { add_core = LIN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				LIN = { save_global_event_target_as = splittag1 }
				243 = { add_core = LIN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 93 NOT = { exists = LIE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				LIE = { save_global_event_target_as = splittag3 }
				93 = { add_core = LIE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				LIE = { save_global_event_target_as = splittag2 }
				93 = { add_core = LIE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				LIE = { save_global_event_target_as = splittag1 }
				93 = { add_core = LIE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 112 NOT = { exists = VEN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				VEN = { save_global_event_target_as = splittag3 }
				112 = { add_core = VEN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				VEN = { save_global_event_target_as = splittag2 }
				112 = { add_core = VEN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				VEN = { save_global_event_target_as = splittag1 }
				112 = { add_core = VEN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 4292 NOT = { exists = AGD } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				AGD = { save_global_event_target_as = splittag3 }
				4292 = { add_core = AGD set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				AGD = { save_global_event_target_as = splittag2 }
				4292 = { add_core = AGD set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				AGD = { save_global_event_target_as = splittag1 }
				4292 = { add_core = AGD set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 77 NOT = { exists = PAL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				PAL = { save_global_event_target_as = splittag3 }
				77 = { add_core = PAL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				PAL = { save_global_event_target_as = splittag2 }
				77 = { add_core = PAL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				PAL = { save_global_event_target_as = splittag1 }
				77 = { add_core = PAL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 268 NOT = { exists = MOL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MOL = { save_global_event_target_as = splittag3 }
				268 = { add_core = MOL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MOL = { save_global_event_target_as = splittag2 }
				268 = { add_core = MOL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MOL = { save_global_event_target_as = splittag1 }
				268 = { add_core = MOL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 142 NOT = { exists = CEP } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				CEP = { save_global_event_target_as = splittag3 }
				142 = { add_core = CEP set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				CEP = { save_global_event_target_as = splittag2 }
				142 = { add_core = CEP set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				CEP = { save_global_event_target_as = splittag1 }
				142 = { add_core = CEP set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 2260 NOT = { exists = CIR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				CIR = { save_global_event_target_as = splittag3 }
				2260 = { add_core = CIR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				CIR = { save_global_event_target_as = splittag2 }
				2260 = { add_core = CIR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				CIR = { save_global_event_target_as = splittag1 }
				2260 = { add_core = CIR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 283 NOT = { exists = ZAZ } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ZAZ = { save_global_event_target_as = splittag3 }
				283 = { add_core = ZAZ set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ZAZ = { save_global_event_target_as = splittag2 }
				283 = { add_core = ZAZ set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ZAZ = { save_global_event_target_as = splittag1 }
				283 = { add_core = ZAZ set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 294 NOT = { exists = TVE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				TVE = { save_global_event_target_as = splittag3 }
				294 = { add_core = TVE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				TVE = { save_global_event_target_as = splittag2 }
				294 = { add_core = TVE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				TVE = { save_global_event_target_as = splittag1 }
				294 = { add_core = TVE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 179 NOT = { exists = BER } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BER = { save_global_event_target_as = splittag3 }
				179 = { add_core = BER set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BER = { save_global_event_target_as = splittag2 }
				179 = { add_core = BER set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BER = { save_global_event_target_as = splittag1 }
				179 = { add_core = BER set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 246 NOT = { exists = NOL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				NOL = { save_global_event_target_as = splittag3 }
				246 = { add_core = NOL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				NOL = { save_global_event_target_as = splittag2 }
				246 = { add_core = NOL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				NOL = { save_global_event_target_as = splittag1 }
				246 = { add_core = NOL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1866 NOT = { exists = NAM } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				NAM = { save_global_event_target_as = splittag3 }
				1866 = { add_core = NAM set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				NAM = { save_global_event_target_as = splittag2 }
				1866 = { add_core = NAM set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				NAM = { save_global_event_target_as = splittag1 }
				1866 = { add_core = NAM set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 101 NOT = { exists = GEN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				GEN = { save_global_event_target_as = splittag3 }
				101 = { add_core = GEN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				GEN = { save_global_event_target_as = splittag2 }
				101 = { add_core = GEN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				GEN = { save_global_event_target_as = splittag1 }
				101 = { add_core = GEN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 370 NOT = { exists = ICE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ICE = { save_global_event_target_as = splittag3 }
				370 = { add_core = ICE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ICE = { save_global_event_target_as = splittag2 }
				370 = { add_core = ICE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ICE = { save_global_event_target_as = splittag1 }
				370 = { add_core = ICE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 70 NOT = { exists = WUR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				WUR = { save_global_event_target_as = splittag3 }
				70 = { add_core = WUR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				WUR = { save_global_event_target_as = splittag2 }
				70 = { add_core = WUR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				WUR = { save_global_event_target_as = splittag1 }
				70 = { add_core = WUR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 150 NOT = { exists = BUL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BUL = { save_global_event_target_as = splittag3 }
				150 = { add_core = BUL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BUL = { save_global_event_target_as = splittag2 }
				150 = { add_core = BUL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BUL = { save_global_event_target_as = splittag1 }
				150 = { add_core = BUL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 164 NOT = { exists = NAX } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				NAX = { save_global_event_target_as = splittag3 }
				164 = { add_core = NAX set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				NAX = { save_global_event_target_as = splittag2 }
				164 = { add_core = NAX set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				NAX = { save_global_event_target_as = splittag1 }
				164 = { add_core = NAX set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 463 NOT = { exists = ALA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ALA = { save_global_event_target_as = splittag3 }
				463 = { add_core = ALA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ALA = { save_global_event_target_as = splittag2 }
				463 = { add_core = ALA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ALA = { save_global_event_target_as = splittag1 }
				463 = { add_core = ALA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 308 NOT = { exists = YAR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				YAR = { save_global_event_target_as = splittag3 }
				308 = { add_core = YAR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				YAR = { save_global_event_target_as = splittag2 }
				308 = { add_core = YAR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				YAR = { save_global_event_target_as = splittag1 }
				308 = { add_core = YAR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 184 NOT = { exists = ORL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ORL = { save_global_event_target_as = splittag3 }
				184 = { add_core = ORL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ORL = { save_global_event_target_as = splittag2 }
				184 = { add_core = ORL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ORL = { save_global_event_target_as = splittag1 }
				184 = { add_core = ORL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 375 NOT = { exists = MST } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MST = { save_global_event_target_as = splittag3 }
				375 = { add_core = MST set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MST = { save_global_event_target_as = splittag2 }
				375 = { add_core = MST set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MST = { save_global_event_target_as = splittag1 }
				375 = { add_core = MST set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 94 NOT = { exists = LUX } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				LUX = { save_global_event_target_as = splittag3 }
				94 = { add_core = LUX set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				LUX = { save_global_event_target_as = splittag2 }
				94 = { add_core = LUX set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				LUX = { save_global_event_target_as = splittag1 }
				94 = { add_core = LUX set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 108 NOT = { exists = VRN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				VRN = { save_global_event_target_as = splittag3 }
				108 = { add_core = VRN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				VRN = { save_global_event_target_as = splittag2 }
				108 = { add_core = VRN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				VRN = { save_global_event_target_as = splittag1 }
				108 = { add_core = VRN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 10 NOT = { exists = JMT } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				JMT = { save_global_event_target_as = splittag3 }
				10 = { add_core = JMT set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				JMT = { save_global_event_target_as = splittag2 }
				10 = { add_core = JMT set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				JMT = { save_global_event_target_as = splittag1 }
				10 = { add_core = JMT set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 79 NOT = { exists = WBG } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				WBG = { save_global_event_target_as = splittag3 }
				79 = { add_core = WBG set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				WBG = { save_global_event_target_as = splittag2 }
				79 = { add_core = WBG set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				WBG = { save_global_event_target_as = splittag1 }
				79 = { add_core = WBG set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 153 NOT = { exists = HUN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				HUN = { save_global_event_target_as = splittag3 }
				153 = { add_core = HUN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				HUN = { save_global_event_target_as = splittag2 }
				153 = { add_core = HUN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				HUN = { save_global_event_target_as = splittag1 }
				153 = { add_core = HUN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 163 NOT = { exists = CRT } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				CRT = { save_global_event_target_as = splittag3 }
				163 = { add_core = CRT set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				CRT = { save_global_event_target_as = splittag2 }
				163 = { add_core = CRT set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				CRT = { save_global_event_target_as = splittag1 }
				163 = { add_core = CRT set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 2608 NOT = { exists = FEO } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				FEO = { save_global_event_target_as = splittag3 }
				2608 = { add_core = FEO set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				FEO = { save_global_event_target_as = splittag2 }
				2608 = { add_core = FEO set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				FEO = { save_global_event_target_as = splittag1 }
				2608 = { add_core = FEO set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 306 NOT = { exists = NZH } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				NZH = { save_global_event_target_as = splittag3 }
				306 = { add_core = NZH set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				NZH = { save_global_event_target_as = splittag2 }
				306 = { add_core = NZH set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				NZH = { save_global_event_target_as = splittag1 }
				306 = { add_core = NZH set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1879 NOT = { exists = ALE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ALE = { save_global_event_target_as = splittag3 }
				1879 = { add_core = ALE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ALE = { save_global_event_target_as = splittag2 }
				1879 = { add_core = ALE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ALE = { save_global_event_target_as = splittag1 }
				1879 = { add_core = ALE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 4240 NOT = { exists = ULS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ULS = { save_global_event_target_as = splittag3 }
				4240 = { add_core = ULS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ULS = { save_global_event_target_as = splittag2 }
				4240 = { add_core = ULS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ULS = { save_global_event_target_as = splittag1 }
				4240 = { add_core = ULS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 91 NOT = { exists = HAI } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				HAI = { save_global_event_target_as = splittag3 }
				91 = { add_core = HAI set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				HAI = { save_global_event_target_as = splittag2 }
				91 = { add_core = HAI set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				HAI = { save_global_event_target_as = splittag1 }
				91 = { add_core = HAI set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 107 NOT = { exists = BRS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BRS = { save_global_event_target_as = splittag3 }
				107 = { add_core = BRS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BRS = { save_global_event_target_as = splittag2 }
				107 = { add_core = BRS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BRS = { save_global_event_target_as = splittag1 }
				107 = { add_core = BRS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1776 NOT = { exists = KRL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				KRL = { save_global_event_target_as = splittag3 }
				1776 = { add_core = KRL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				KRL = { save_global_event_target_as = splittag2 }
				1776 = { add_core = KRL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				KRL = { save_global_event_target_as = splittag1 }
				1776 = { add_core = KRL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 165 NOT = { exists = SWI } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SWI = { save_global_event_target_as = splittag3 }
				165 = { add_core = SWI set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SWI = { save_global_event_target_as = splittag2 }
				165 = { add_core = SWI set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SWI = { save_global_event_target_as = splittag1 }
				165 = { add_core = SWI set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 137 NOT = { exists = RAG } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				RAG = { save_global_event_target_as = splittag3 }
				137 = { add_core = RAG set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				RAG = { save_global_event_target_as = splittag2 }
				137 = { add_core = RAG set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				RAG = { save_global_event_target_as = splittag1 }
				137 = { add_core = RAG set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 305 NOT = { exists = PRM } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				PRM = { save_global_event_target_as = splittag3 }
				305 = { add_core = PRM set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				PRM = { save_global_event_target_as = splittag2 }
				305 = { add_core = PRM set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				PRM = { save_global_event_target_as = splittag1 }
				305 = { add_core = PRM set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 177 NOT = { exists = MNE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MNE = { save_global_event_target_as = splittag3 }
				177 = { add_core = MNE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MNE = { save_global_event_target_as = splittag2 }
				177 = { add_core = MNE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MNE = { save_global_event_target_as = splittag1 }
				177 = { add_core = MNE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 372 NOT = { exists = TYR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				TYR = { save_global_event_target_as = splittag3 }
				372 = { add_core = TYR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				TYR = { save_global_event_target_as = splittag2 }
				372 = { add_core = TYR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				TYR = { save_global_event_target_as = splittag1 }
				372 = { add_core = TYR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1931 NOT = { exists = EFR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				EFR = { save_global_event_target_as = splittag3 }
				1931 = { add_core = EFR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				EFR = { save_global_event_target_as = splittag2 }
				1931 = { add_core = EFR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				EFR = { save_global_event_target_as = splittag1 }
				1931 = { add_core = EFR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 106 NOT = { exists = MOD } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MOD = { save_global_event_target_as = splittag3 }
				106 = { add_core = MOD set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MOD = { save_global_event_target_as = splittag2 }
				106 = { add_core = MOD set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MOD = { save_global_event_target_as = splittag1 }
				106 = { add_core = MOD set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 25 NOT = { exists = GOT } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				GOT = { save_global_event_target_as = splittag3 }
				25 = { add_core = GOT set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				GOT = { save_global_event_target_as = splittag2 }
				25 = { add_core = GOT set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				GOT = { save_global_event_target_as = splittag1 }
				25 = { add_core = GOT set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 86 NOT = { exists = MUN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MUN = { save_global_event_target_as = splittag3 }
				86 = { add_core = MUN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MUN = { save_global_event_target_as = splittag2 }
				86 = { add_core = MUN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MUN = { save_global_event_target_as = splittag1 }
				86 = { add_core = MUN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1766 NOT = { exists = KOS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				KOS = { save_global_event_target_as = splittag3 }
				1766 = { add_core = KOS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				KOS = { save_global_event_target_as = splittag2 }
				1766 = { add_core = KOS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				KOS = { save_global_event_target_as = splittag1 }
				1766 = { add_core = KOS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1754 NOT = { exists = MUR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MUR = { save_global_event_target_as = splittag3 }
				1754 = { add_core = MUR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MUR = { save_global_event_target_as = splittag2 }
				1754 = { add_core = MUR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MUR = { save_global_event_target_as = splittag1 }
				1754 = { add_core = MUR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 168 NOT = { exists = NRM } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				NRM = { save_global_event_target_as = splittag3 }
				168 = { add_core = NRM set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				NRM = { save_global_event_target_as = splittag2 }
				168 = { add_core = NRM set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				NRM = { save_global_event_target_as = splittag1 }
				168 = { add_core = NRM set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 4238 NOT = { exists = KID } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				KID = { save_global_event_target_as = splittag3 }
				4238 = { add_core = KID set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				KID = { save_global_event_target_as = splittag2 }
				4238 = { add_core = KID set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				KID = { save_global_event_target_as = splittag1 }
				4238 = { add_core = KID set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 113 NOT = { exists = FER } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				FER = { save_global_event_target_as = splittag3 }
				113 = { add_core = FER set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				FER = { save_global_event_target_as = splittag2 }
				113 = { add_core = FER set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				FER = { save_global_event_target_as = splittag1 }
				113 = { add_core = FER set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 5 NOT = { exists = GEW } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				GEW = { save_global_event_target_as = splittag3 }
				5 = { add_core = GEW set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				GEW = { save_global_event_target_as = splittag2 }
				5 = { add_core = GEW set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				GEW = { save_global_event_target_as = splittag1 }
				5 = { add_core = GEW set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 45 NOT = { exists = HSA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				HSA = { save_global_event_target_as = splittag3 }
				45 = { add_core = HSA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				HSA = { save_global_event_target_as = splittag2 }
				45 = { add_core = HSA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				HSA = { save_global_event_target_as = splittag1 }
				45 = { add_core = HSA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 4247 NOT = { exists = OKA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				OKA = { save_global_event_target_as = splittag3 }
				4247 = { add_core = OKA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				OKA = { save_global_event_target_as = splittag2 }
				4247 = { add_core = OKA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				OKA = { save_global_event_target_as = splittag1 }
				4247 = { add_core = OKA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 203 NOT = { exists = LYO } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				LYO = { save_global_event_target_as = splittag3 }
				203 = { add_core = LYO set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				LYO = { save_global_event_target_as = splittag2 }
				203 = { add_core = LYO set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				LYO = { save_global_event_target_as = splittag1 }
				203 = { add_core = LYO set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 374 NOT = { exists = LEI } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				LEI = { save_global_event_target_as = splittag3 }
				374 = { add_core = LEI set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				LEI = { save_global_event_target_as = splittag2 }
				374 = { add_core = LEI set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				LEI = { save_global_event_target_as = splittag1 }
				374 = { add_core = LEI set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1875 NOT = { exists = CUN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				CUN = { save_global_event_target_as = splittag3 }
				1875 = { add_core = CUN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				CUN = { save_global_event_target_as = splittag2 }
				1875 = { add_core = CUN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				CUN = { save_global_event_target_as = splittag1 }
				1875 = { add_core = CUN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 2 NOT = { exists = GEE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				GEE = { save_global_event_target_as = splittag3 }
				2 = { add_core = GEE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				GEE = { save_global_event_target_as = splittag2 }
				2 = { add_core = GEE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				GEE = { save_global_event_target_as = splittag1 }
				2 = { add_core = GEE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 47 NOT = { exists = POM } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				POM = { save_global_event_target_as = splittag3 }
				47 = { add_core = POM set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				POM = { save_global_event_target_as = splittag2 }
				47 = { add_core = POM set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				POM = { save_global_event_target_as = splittag1 }
				47 = { add_core = POM set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 313 NOT = { exists = BJA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BJA = { save_global_event_target_as = splittag3 }
				313 = { add_core = BJA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BJA = { save_global_event_target_as = splittag2 }
				313 = { add_core = BJA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BJA = { save_global_event_target_as = splittag1 }
				313 = { add_core = BJA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 204 NOT = { exists = DAU } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				DAU = { save_global_event_target_as = splittag3 }
				204 = { add_core = DAU set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				DAU = { save_global_event_target_as = splittag2 }
				204 = { add_core = DAU set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				DAU = { save_global_event_target_as = splittag1 }
				204 = { add_core = DAU set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 376 NOT = { exists = CNN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				CNN = { save_global_event_target_as = splittag3 }
				376 = { add_core = CNN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				CNN = { save_global_event_target_as = splittag2 }
				376 = { add_core = CNN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				CNN = { save_global_event_target_as = splittag1 }
				376 = { add_core = CNN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 102 NOT = { exists = NIC } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				NIC = { save_global_event_target_as = splittag3 }
				102 = { add_core = NIC set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				NIC = { save_global_event_target_as = splittag2 }
				102 = { add_core = NIC set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				NIC = { save_global_event_target_as = splittag1 }
				102 = { add_core = NIC set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 29 NOT = { exists = TAV } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				TAV = { save_global_event_target_as = splittag3 }
				29 = { add_core = TAV set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				TAV = { save_global_event_target_as = splittag2 }
				29 = { add_core = TAV set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				TAV = { save_global_event_target_as = splittag1 }
				29 = { add_core = TAV set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 46 NOT = { exists = MKL } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MKL = { save_global_event_target_as = splittag3 }
				46 = { add_core = MKL set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MKL = { save_global_event_target_as = splittag2 }
				46 = { add_core = MKL set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MKL = { save_global_event_target_as = splittag1 }
				46 = { add_core = MKL set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 202 NOT = { exists = AVI } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				AVI = { save_global_event_target_as = splittag3 }
				202 = { add_core = AVI set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				AVI = { save_global_event_target_as = splittag2 }
				202 = { add_core = AVI set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				AVI = { save_global_event_target_as = splittag1 }
				202 = { add_core = AVI set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 4239 NOT = { exists = MNS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MNS = { save_global_event_target_as = splittag3 }
				4239 = { add_core = MNS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MNS = { save_global_event_target_as = splittag2 }
				4239 = { add_core = MNS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MNS = { save_global_event_target_as = splittag1 }
				4239 = { add_core = MNS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 3123 NOT = { exists = MFA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MFA = { save_global_event_target_as = splittag3 }
				3123 = { add_core = MFA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MFA = { save_global_event_target_as = splittag2 }
				3123 = { add_core = MFA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MFA = { save_global_event_target_as = splittag1 }
				3123 = { add_core = MFA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 32 NOT = { exists = KKS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				KKS = { save_global_event_target_as = splittag3 }
				32 = { add_core = KKS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				KKS = { save_global_event_target_as = splittag2 }
				32 = { add_core = KKS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				KKS = { save_global_event_target_as = splittag1 }
				32 = { add_core = KKS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 44 NOT = { exists = HAM } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				HAM = { save_global_event_target_as = splittag3 }
				44 = { add_core = HAM set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				HAM = { save_global_event_target_as = splittag2 }
				44 = { add_core = HAM set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				HAM = { save_global_event_target_as = splittag1 }
				44 = { add_core = HAM set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 191 NOT = { exists = NEV } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				NEV = { save_global_event_target_as = splittag3 }
				191 = { add_core = NEV set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				NEV = { save_global_event_target_as = splittag2 }
				191 = { add_core = NEV set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				NEV = { save_global_event_target_as = splittag1 }
				191 = { add_core = NEV set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 375 NOT = { exists = DMS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				DMS = { save_global_event_target_as = splittag3 }
				375 = { add_core = DMS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				DMS = { save_global_event_target_as = splittag2 }
				375 = { add_core = DMS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				DMS = { save_global_event_target_as = splittag1 }
				375 = { add_core = DMS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 3126 NOT = { exists = LUC } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				LUC = { save_global_event_target_as = splittag3 }
				3126 = { add_core = LUC set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				LUC = { save_global_event_target_as = splittag2 }
				3126 = { add_core = LUC set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				LUC = { save_global_event_target_as = splittag1 }
				3126 = { add_core = LUC set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 4282 NOT = { exists = SMI } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SMI = { save_global_event_target_as = splittag3 }
				4282 = { add_core = SMI set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SMI = { save_global_event_target_as = splittag2 }
				4282 = { add_core = SMI set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SMI = { save_global_event_target_as = splittag1 }
				4282 = { add_core = SMI set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 54 NOT = { exists = VER } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				VER = { save_global_event_target_as = splittag3 }
				54 = { add_core = VER set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				VER = { save_global_event_target_as = splittag2 }
				54 = { add_core = VER set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				VER = { save_global_event_target_as = splittag1 }
				54 = { add_core = VER set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 186 NOT = { exists = CHP } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				CHP = { save_global_event_target_as = splittag3 }
				186 = { add_core = CHP set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				CHP = { save_global_event_target_as = splittag2 }
				186 = { add_core = CHP set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				CHP = { save_global_event_target_as = splittag1 }
				186 = { add_core = CHP set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 4237 NOT = { exists = SLN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SLN = { save_global_event_target_as = splittag3 }
				4237 = { add_core = SLN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SLN = { save_global_event_target_as = splittag2 }
				4237 = { add_core = SLN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SLN = { save_global_event_target_as = splittag1 }
				4237 = { add_core = SLN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 115 NOT = { exists = PIS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				PIS = { save_global_event_target_as = splittag3 }
				115 = { add_core = PIS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				PIS = { save_global_event_target_as = splittag2 }
				115 = { add_core = PIS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				PIS = { save_global_event_target_as = splittag1 }
				115 = { add_core = PIS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1874 NOT = { exists = BRE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BRE = { save_global_event_target_as = splittag3 }
				1874 = { add_core = BRE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BRE = { save_global_event_target_as = splittag2 }
				1874 = { add_core = BRE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BRE = { save_global_event_target_as = splittag1 }
				1874 = { add_core = BRE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 187 NOT = { exists = BAR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BAR = { save_global_event_target_as = splittag3 }
				187 = { add_core = BAR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BAR = { save_global_event_target_as = splittag2 }
				187 = { add_core = BAR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BAR = { save_global_event_target_as = splittag1 }
				187 = { add_core = BAR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 373 NOT = { exists = MTH } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MTH = { save_global_event_target_as = splittag3 }
				373 = { add_core = MTH set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MTH = { save_global_event_target_as = splittag2 }
				373 = { add_core = MTH set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MTH = { save_global_event_target_as = splittag1 }
				373 = { add_core = MTH set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 117 NOT = { exists = SIE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SIE = { save_global_event_target_as = splittag3 }
				117 = { add_core = SIE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SIE = { save_global_event_target_as = splittag2 }
				117 = { add_core = SIE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SIE = { save_global_event_target_as = splittag1 }
				117 = { add_core = SIE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 55 NOT = { exists = OLD } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				OLD = { save_global_event_target_as = splittag3 }
				55 = { add_core = OLD set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				OLD = { save_global_event_target_as = splittag2 }
				55 = { add_core = OLD set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				OLD = { save_global_event_target_as = splittag1 }
				55 = { add_core = OLD set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 109 NOT = { exists = MAN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MAN = { save_global_event_target_as = splittag3 }
				109 = { add_core = MAN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MAN = { save_global_event_target_as = splittag2 }
				109 = { add_core = MAN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MAN = { save_global_event_target_as = splittag1 }
				109 = { add_core = MAN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 56 NOT = { exists = OSN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				OSN = { save_global_event_target_as = splittag3 }
				56 = { add_core = OSN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				OSN = { save_global_event_target_as = splittag2 }
				56 = { add_core = OSN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				OSN = { save_global_event_target_as = splittag1 }
				56 = { add_core = OSN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1774 NOT = { exists = TVS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				TVS = { save_global_event_target_as = splittag3 }
				1774 = { add_core = TVS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				TVS = { save_global_event_target_as = splittag2 }
				1774 = { add_core = TVS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				TVS = { save_global_event_target_as = splittag1 }
				1774 = { add_core = TVS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 53 NOT = { exists = LUN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				LUN = { save_global_event_target_as = splittag3 }
				53 = { add_core = LUN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				LUN = { save_global_event_target_as = splittag2 }
				53 = { add_core = LUN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				LUN = { save_global_event_target_as = splittag1 }
				53 = { add_core = LUN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 114 NOT = { exists = RAV } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				RAV = { save_global_event_target_as = splittag3 }
				114 = { add_core = RAV set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				RAV = { save_global_event_target_as = splittag2 }
				114 = { add_core = RAV set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				RAV = { save_global_event_target_as = splittag1 }
				114 = { add_core = RAV set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1857 NOT = { exists = LAU } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				LAU = { save_global_event_target_as = splittag3 }
				1857 = { add_core = LAU set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				LAU = { save_global_event_target_as = splittag2 }
				1857 = { add_core = LAU set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				LAU = { save_global_event_target_as = splittag1 }
				1857 = { add_core = LAU set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 3128 NOT = { exists = URB } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				URB = { save_global_event_target_as = splittag3 }
				3128 = { add_core = URB set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				URB = { save_global_event_target_as = splittag2 }
				3128 = { add_core = URB set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				URB = { save_global_event_target_as = splittag1 }
				3128 = { add_core = URB set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 59 NOT = { exists = MEI } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MEI = { save_global_event_target_as = splittag3 }
				59 = { add_core = MEI set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MEI = { save_global_event_target_as = splittag2 }
				59 = { add_core = MEI set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MEI = { save_global_event_target_as = splittag1 }
				59 = { add_core = MEI set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 110 NOT = { exists = TNT } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				TNT = { save_global_event_target_as = splittag3 }
				110 = { add_core = TNT set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				TNT = { save_global_event_target_as = splittag2 }
				110 = { add_core = TNT set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				TNT = { save_global_event_target_as = splittag1 }
				110 = { add_core = TNT set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1758 NOT = { exists = HAN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				HAN = { save_global_event_target_as = splittag3 }
				1758 = { add_core = HAN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				HAN = { save_global_event_target_as = splittag2 }
				1758 = { add_core = HAN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				HAN = { save_global_event_target_as = splittag1 }
				1758 = { add_core = HAN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 104 NOT = { exists = LAN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				LAN = { save_global_event_target_as = splittag3 }
				104 = { add_core = LAN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				LAN = { save_global_event_target_as = splittag2 }
				104 = { add_core = LAN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				LAN = { save_global_event_target_as = splittag1 }
				104 = { add_core = LAN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 3119 NOT = { exists = MAG } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MAG = { save_global_event_target_as = splittag3 }
				3119 = { add_core = MAG set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MAG = { save_global_event_target_as = splittag2 }
				3119 = { add_core = MAG set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MAG = { save_global_event_target_as = splittag1 }
				3119 = { add_core = MAG set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 127 NOT = { exists = SAR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SAR = { save_global_event_target_as = splittag3 }
				127 = { add_core = SAR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SAR = { save_global_event_target_as = splittag2 }
				127 = { add_core = SAR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SAR = { save_global_event_target_as = splittag1 }
				127 = { add_core = SAR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 83 NOT = { exists = NSA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				NSA = { save_global_event_target_as = splittag3 }
				83 = { add_core = NSA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				NSA = { save_global_event_target_as = splittag2 }
				83 = { add_core = NSA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				NSA = { save_global_event_target_as = splittag1 }
				83 = { add_core = NSA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1247 NOT = { exists = COR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				COR = { save_global_event_target_as = splittag3 }
				1247 = { add_core = COR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				COR = { save_global_event_target_as = splittag2 }
				1247 = { add_core = COR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				COR = { save_global_event_target_as = splittag1 }
				1247 = { add_core = COR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 3104 NOT = { exists = KLE } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				KLE = { save_global_event_target_as = splittag3 }
				3104 = { add_core = KLE set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				KLE = { save_global_event_target_as = splittag2 }
				3104 = { add_core = KLE set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				KLE = { save_global_event_target_as = splittag1 }
				3104 = { add_core = KLE set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 126 NOT = { exists = JAI } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				JAI = { save_global_event_target_as = splittag3 }
				126 = { add_core = JAI set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				JAI = { save_global_event_target_as = splittag2 }
				126 = { add_core = JAI set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				JAI = { save_global_event_target_as = splittag1 }
				126 = { add_core = JAI set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1878 NOT = { exists = AAC } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				AAC = { save_global_event_target_as = splittag3 }
				1878 = { add_core = AAC set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				AAC = { save_global_event_target_as = splittag2 }
				1878 = { add_core = AAC set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				AAC = { save_global_event_target_as = splittag1 }
				1878 = { add_core = AAC set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 80 NOT = { exists = TRI } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				TRI = { save_global_event_target_as = splittag3 }
				80 = { add_core = TRI set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				TRI = { save_global_event_target_as = splittag2 }
				80 = { add_core = TRI set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				TRI = { save_global_event_target_as = splittag1 }
				80 = { add_core = TRI set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1876 NOT = { exists = FRN } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				FRN = { save_global_event_target_as = splittag3 }
				1876 = { add_core = FRN set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				FRN = { save_global_event_target_as = splittag2 }
				1876 = { add_core = FRN set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				FRN = { save_global_event_target_as = splittag1 }
				1876 = { add_core = FRN set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 75 NOT = { exists = ALS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ALS = { save_global_event_target_as = splittag3 }
				75 = { add_core = ALS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ALS = { save_global_event_target_as = splittag2 }
				75 = { add_core = ALS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ALS = { save_global_event_target_as = splittag1 }
				75 = { add_core = ALS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 74 NOT = { exists = BAD } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BAD = { save_global_event_target_as = splittag3 }
				74 = { add_core = BAD set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BAD = { save_global_event_target_as = splittag2 }
				74 = { add_core = BAD set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BAD = { save_global_event_target_as = splittag1 }
				74 = { add_core = BAD set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1880 NOT = { exists = SDG } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SDG = { save_global_event_target_as = splittag3 }
				1880 = { add_core = SDG set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SDG = { save_global_event_target_as = splittag2 }
				1880 = { add_core = SDG set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SDG = { save_global_event_target_as = splittag1 }
				1880 = { add_core = SDG set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1869 NOT = { exists = ZUR } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ZUR = { save_global_event_target_as = splittag3 }
				1869 = { add_core = ZUR set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ZUR = { save_global_event_target_as = splittag2 }
				1869 = { add_core = ZUR set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ZUR = { save_global_event_target_as = splittag1 }
				1869 = { add_core = ZUR set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 69 NOT = { exists = RVA } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				RVA = { save_global_event_target_as = splittag3 }
				69 = { add_core = RVA set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				RVA = { save_global_event_target_as = splittag2 }
				69 = { add_core = RVA set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				RVA = { save_global_event_target_as = splittag1 }
				69 = { add_core = RVA set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1872 NOT = { exists = ULM } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ULM = { save_global_event_target_as = splittag3 }
				1872 = { add_core = ULM set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ULM = { save_global_event_target_as = splittag2 }
				1872 = { add_core = ULM set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ULM = { save_global_event_target_as = splittag1 }
				1872 = { add_core = ULM set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 71 NOT = { exists = ANS } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ANS = { save_global_event_target_as = splittag3 }
				71 = { add_core = ANS set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ANS = { save_global_event_target_as = splittag2 }
				71 = { add_core = ANS set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ANS = { save_global_event_target_as = splittag1 }
				71 = { add_core = ANS set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 1868 NOT = { exists = AUG } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				AUG = { save_global_event_target_as = splittag3 }
				1868 = { add_core = AUG set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				AUG = { save_global_event_target_as = splittag2 }
				1868 = { add_core = AUG set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				AUG = { save_global_event_target_as = splittag1 }
				1868 = { add_core = AUG set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 67 NOT = { exists = NUM } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				NUM = { save_global_event_target_as = splittag3 }
				67 = { add_core = NUM set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				NUM = { save_global_event_target_as = splittag2 }
				67 = { add_core = NUM set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				NUM = { save_global_event_target_as = splittag1 }
				67 = { add_core = NUM set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 66 NOT = { exists = BAM } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				BAM = { save_global_event_target_as = splittag3 }
				66 = { add_core = BAM set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				BAM = { save_global_event_target_as = splittag2 }
				66 = { add_core = BAM set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				BAM = { save_global_event_target_as = splittag1 }
				66 = { add_core = BAM set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 58 NOT = { exists = ANH } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				ANH = { save_global_event_target_as = splittag3 }
				58 = { add_core = ANH set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				ANH = { save_global_event_target_as = splittag2 }
				58 = { add_core = ANH set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				ANH = { save_global_event_target_as = splittag1 }
				58 = { add_core = ANH set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 76 NOT = { exists = SLZ } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				SLZ = { save_global_event_target_as = splittag3 }
				76 = { add_core = SLZ set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				SLZ = { save_global_event_target_as = splittag2 }
				76 = { add_core = SLZ set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				SLZ = { save_global_event_target_as = splittag1 }
				76 = { add_core = SLZ set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 68 NOT = { exists = MEM } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MEM = { save_global_event_target_as = splittag3 }
				68 = { add_core = MEM set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MEM = { save_global_event_target_as = splittag2 }
				68 = { add_core = MEM set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MEM = { save_global_event_target_as = splittag1 }
				68 = { add_core = MEM set_province_flag = splittag1_prov }
			}
		}
		if = { limit = { owns = 148 NOT = { exists = MAC } }
			if = { limit = { is_variable_equal = { which = splittags_set value = 2 } }
				set_variable = { which = splittags_set value = 3 }
				MAC = { save_global_event_target_as = splittag3 }
				148 = { add_core = MAC set_province_flag = splittag3_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 1 } }
				set_variable = { which = splittags_set value = 2 }
				MAC = { save_global_event_target_as = splittag2 }
				148 = { add_core = MAC set_province_flag = splittag2_prov }
			}
			if = { limit = { is_variable_equal = { which = splittags_set value = 0 } }
				set_variable = { which = splittags_set value = 1 }
				MAC = { save_global_event_target_as = splittag1 }
				148 = { add_core = MAC set_province_flag = splittag1_prov }
			}
		}
		
		if = {
			limit = { 
				OR = {
					has_country_modifier = two_sons 
					is_variable_equal = { which = splittags_set value = 2 } 
				}
			}
			clear_global_event_target = splittag3
			set_global_flag = divide_in_two
		}
		remove_country_modifier = two_sons
		remove_country_modifier = three_sons
		
		if = {
			limit = { 
				OR = {
					NOT = { num_of_cities = 6 }
					is_variable_equal = { which = splittags_set value = 0 } 
					is_variable_equal = { which = splittags_set value = 1 } 
				}
			}
			clr_country_flag = feudal_split_in_country
			clr_global_flag = feudal_split_in_progress
			country_event = {
				id = et_feudal.12
				days = 1
			}
		}
	}
	
	option = {
		name = et_feudal.1.a
	}
}

country_event = {
	id = et_feudal.2
	title = et_feudal.1.t
	desc = et_feudal.1.d
	picture = COLONIZATION_eventPicture
	
	hidden = yes
	
	trigger = {
		has_global_flag = feudal_split_in_progress
		any_province = {
			owner = { has_country_flag = feudal_split_in_country }
			any_neighbor_province = { has_province_flag = splittag1_prov }
			NOT = { has_province_flag = splittag1_prov }
			NOT = { has_province_flag = splittag2_prov }
			NOT = { has_province_flag = splittag3_prov }
		}
	}
	
	mean_time_to_happen = {
		days = 10
	}
	
	immediate = {
		random_province = {
			limit = { 
				owner = { has_country_flag = feudal_split_in_country }
				any_neighbor_province = { has_province_flag = splittag1_prov }
				NOT = { has_province_flag = splittag1_prov }
				NOT = { has_province_flag = splittag2_prov }
				NOT = { has_province_flag = splittag3_prov }
			}
			set_province_flag = splittag1_prov
			add_core = event_target:splittag1
		}
	}
	
	option = {
		name = et_feudal.1.a
	}
}

country_event = {
	id = et_feudal.3
	title = et_feudal.1.t
	desc = et_feudal.1.d
	picture = COLONIZATION_eventPicture
	
	hidden = yes
	
	trigger = {
		has_global_flag = feudal_split_in_progress
		any_province = {
			owner = { has_country_flag = feudal_split_in_country }
			any_neighbor_province = { has_province_flag = splittag2_prov }
			NOT = { has_province_flag = splittag1_prov }
			NOT = { has_province_flag = splittag2_prov }
			NOT = { has_province_flag = splittag3_prov }
		}
	}
	
	mean_time_to_happen = {
		days = 10
	}
	
	immediate = {
		random_province = {
			limit = { 
				owner = { has_country_flag = feudal_split_in_country }
				any_neighbor_province = { has_province_flag = splittag2_prov }
				NOT = { has_province_flag = splittag1_prov }
				NOT = { has_province_flag = splittag2_prov }
				NOT = { has_province_flag = splittag3_prov }
			}
			set_province_flag = splittag2_prov
			add_core = event_target:splittag2
		}
	}
	
	option = {
		name = et_feudal.1.a
	}
}

country_event = {
	id = et_feudal.4
	title = et_feudal.1.t
	desc = et_feudal.1.d
	picture = COLONIZATION_eventPicture
	
	hidden = yes
	
	trigger = {
		has_global_flag = feudal_split_in_progress
		NOT = { has_global_flag = divide_in_two }
		any_province = {
			owner = { has_country_flag = feudal_split_in_country }
			any_neighbor_province = { has_province_flag = splittag3_prov }
			NOT = { has_province_flag = splittag1_prov }
			NOT = { has_province_flag = splittag2_prov }
			NOT = { has_province_flag = splittag3_prov }
		}
	}
	
	mean_time_to_happen = {
		days = 10
	}
	
	immediate = {
		random_province = {
			limit = { 
				owner = { has_country_flag = feudal_split_in_country }
				any_neighbor_province = { has_province_flag = splittag3_prov }
				NOT = { has_province_flag = splittag1_prov }
				NOT = { has_province_flag = splittag2_prov }
				NOT = { has_province_flag = splittag3_prov }
			}
			set_province_flag = splittag3_prov
			add_core = event_target:splittag3
		}
	}
	
	option = {
		name = et_feudal.1.a
	}
}

province_event = {
	id = et_feudal.5
	title = et_feudal.1.t
	desc = et_feudal.1.d
	picture = COLONIZATION_eventPicture
	
	hidden = yes
	
	trigger = {
		owner = { has_country_flag = feudal_split_in_country }
		NOT = { has_province_flag = splittag1_prov }
		NOT = { has_province_flag = splittag2_prov }
		NOT = { has_province_flag = splittag3_prov }
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		if = {
			limit = { has_global_flag = divide_in_two }
			random_list = {
				50 = { set_province_flag = splittag1_prov add_core = event_target:splittag1 }
				50 = { set_province_flag = splittag2_prov add_core = event_target:splittag2 }
			}
		}
		if = {
			limit = { NOT = { has_global_flag = divide_in_two } }
			random_list = {
				33 = { set_province_flag = splittag1_prov add_core = event_target:splittag1 }
				33 = { set_province_flag = splittag2_prov add_core = event_target:splittag2 }
				33 = { set_province_flag = splittag3_prov add_core = event_target:splittag3 }
			}
		}
	}
	
	option = {
		name = et_feudal.1.a
	}
}

country_event = {
	id = et_feudal.6
	title = et_feudal.6.t
	desc = et_feudal.6.d
	picture = GOOD_WITH_MONARCH_eventPicture
	
	trigger = {
		has_country_flag = feudal_split_in_country
		NOT = { has_country_flag = feudal_split_finished }
		all_owned_province = {
			OR = {
				has_province_flag = splittag1_prov
				has_province_flag = splittag2_prov
				has_province_flag = splittag3_prov
			}
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		clr_global_flag = feudal_split_in_progress
		clr_country_flag = feudal_split_in_country
		set_country_flag = feudal_split_finished
		if = {
			limit = { government_rank = 3 }
			set_government_rank = 2
		}
		if = {
			limit = { NOT = { government_rank = 3 } NOT = { government_rank = 1 } }
			set_government_rank = 1 
		}
	}
	
	option = {
		name = et_feudal.6.a
		add_stability = 1
		clr_country_flag = feudal_split_finished
		every_owned_province = {
			limit = { has_province_flag = splittag2_prov }
			cede_province = event_target:splittag2
			clr_province_flag = splittag2_prov
		}
		event_target:splittag2 = { 
			change_government = salic_monarchy
			change_religion = ROOT
			set_government_rank = ROOT 
			define_ruler = {
				dynasty = ROOT
				female = no
			}
			add_casus_belli = {
				target = event_target:splittag1
				type = cb_salic_reunification
				months = 600
			}
		}
		add_casus_belli = {
			target = event_target:splittag2
			type = cb_salic_reunification
			months = 600
		}
		if = {
			limit = { NOT = { has_global_flag = divide_in_two } }
			every_owned_province = {
				limit = { has_province_flag = splittag3_prov }
				cede_province = event_target:splittag3
				clr_province_flag = splittag3_prov
			}
			event_target:splittag3 = { 
				change_government = salic_monarchy
				change_religion = ROOT
				set_government_rank = ROOT 
				define_ruler = {
					dynasty = ROOT
					female = no
				}
				add_casus_belli = {
					target = event_target:splittag1
					type = cb_salic_reunification
					months = 600
				}
				add_casus_belli = {
					target = event_target:splittag2
					type = cb_salic_reunification
					months = 600
				}
			}
			event_target:splittag2 = { 
				add_casus_belli = {
					target = event_target:splittag3
					type = cb_salic_reunification
					months = 600
				}
			}
			add_casus_belli = {
				target = event_target:splittag3
				type = cb_salic_reunification
				months = 600
			}
		}
		change_tag = event_target:splittag1
		every_owned_province = { clr_province_flag = splittag1_prov }
	}
	
	option = {
		name = et_feudal.6.b
		add_stability = 1
		clr_country_flag = feudal_split_finished
		every_owned_province = {
			limit = { has_province_flag = splittag1_prov }
			cede_province = event_target:splittag1
			clr_province_flag = splittag1_prov
		}
		event_target:splittag1 = { 
			change_government = salic_monarchy
			change_religion = ROOT
			set_government_rank = ROOT 
			define_ruler = {
				dynasty = ROOT
				female = no
			}
			add_casus_belli = {
				target = event_target:splittag2
				type = cb_salic_reunification
				months = 600
			}
		}
		add_casus_belli = {
			target = event_target:splittag1
			type = cb_salic_reunification
			months = 600
		}
		if = {
			limit = { NOT = { has_global_flag = divide_in_two } }
			every_owned_province = {
				limit = { has_province_flag = splittag3_prov }
				cede_province = event_target:splittag3
				clr_province_flag = splittag3_prov
			}
			event_target:splittag3 = { 
				change_government = salic_monarchy
				change_religion = ROOT
				set_government_rank = ROOT 
				define_ruler = {
					dynasty = ROOT
					female = no
				}
				add_casus_belli = {
					target = event_target:splittag1
					type = cb_salic_reunification
					months = 600
				}
				add_casus_belli = {
					target = event_target:splittag2
					type = cb_salic_reunification
					months = 600
				}
			}
			event_target:splittag1 = { 
				add_casus_belli = {
					target = event_target:splittag3
					type = cb_salic_reunification
					months = 600
				}
			}
			add_casus_belli = {
				target = event_target:splittag3
				type = cb_salic_reunification
				months = 600
			}
		}
		change_tag = event_target:splittag2
		every_owned_province = { clr_province_flag = splittag2_prov }
	}
	
	option = {
		trigger = { NOT = { has_global_flag = divide_in_two } }
		name = et_feudal.6.c
		add_stability = 1
		clr_country_flag = feudal_split_finished
		every_owned_province = {
			limit = { has_province_flag = splittag1_prov }
			cede_province = event_target:splittag1
			clr_province_flag = splittag1_prov
		}
		event_target:splittag1 = { 
			change_government = salic_monarchy
			change_religion = ROOT
			set_government_rank = ROOT 
			define_ruler = {
				dynasty = ROOT
				female = no
			}
			add_casus_belli = {
				target = event_target:splittag2
				type = cb_salic_reunification
				months = 600
			}
			add_casus_belli = {
				target = event_target:splittag3
				type = cb_salic_reunification
				months = 600
			}
		}
		every_owned_province = {
			limit = { has_province_flag = splittag2_prov }
			cede_province = event_target:splittag2
			clr_province_flag = splittag2_prov
		}
		event_target:splittag2 = { 
			change_government = salic_monarchy
			change_religion = ROOT
			set_government_rank = ROOT 
			define_ruler = {
				dynasty = ROOT
				female = no
			}
			add_casus_belli = {
				target = event_target:splittag1
				type = cb_salic_reunification
				months = 600
			}
			add_casus_belli = {
				target = event_target:splittag3
				type = cb_salic_reunification
				months = 600
			}
		}
		add_casus_belli = {
			target = event_target:splittag1
			type = cb_salic_reunification
			months = 600
		}
		add_casus_belli = {
			target = event_target:splittag2
			type = cb_salic_reunification
			months = 600
		}
		change_tag = event_target:splittag3
		every_owned_province = { clr_province_flag = splittag3_prov }
	}
}

#Salic Monarchy, extra son
country_event = {
	id = et_feudal.7
	title = et_feudal.7.t
	desc = et_feudal.7.d
	picture = NEW_HEIR_eventPicture
	
	trigger = {
		government = salic_monarchy
		has_regency = no
		has_heir = yes
		has_female_heir = no
		NOT = { has_country_modifier = three_sons }
		OR = {
			has_consort = no
			NOT = { consort_age = 40 }
		}
		OR = {
			is_female = no
			NOT = { ruler_age = 40 }
		}
	}
	
	mean_time_to_happen = {
		months = 240
	}
	
	option = {
		name = et_feudal.7.a
		trigger = { NOT = { has_country_modifier = two_sons } }
		add_prestige = 5
		add_legitimacy = 5
		add_country_modifier = {
			name = two_sons
			duration = -1
		}
	}
	
	option = {
		name = et_feudal.7.b
		trigger = { has_country_modifier = two_sons }
		add_prestige = 5
		add_legitimacy = 5
		remove_country_modifier = two_sons
		add_country_modifier = {
			name = three_sons
			duration = -1
		}
	}
}

#Salic Monarchy, death of a son
country_event = {
	id = et_feudal.8
	title = et_feudal.8.t
	desc = et_feudal.8.d
	picture = DEATH_OF_HEIR_eventPicture
	
	trigger = {
		government = salic_monarchy
		OR = {
			has_country_modifier = two_sons
			has_country_modifier = three_sons
		}
	}
	
	mean_time_to_happen = {
		months = 840
	}
	
	option = {
		name = et_feudal.8.a
		trigger = { has_country_modifier = two_sons }
		add_prestige = -5
		remove_country_modifier = two_sons
	}
	
	option = {
		name = et_feudal.8.b
		trigger = { has_country_modifier = three_sons }
		add_prestige = -5
		remove_country_modifier = three_sons
		add_country_modifier = {
			name = two_sons
			duration = -1
		}
	}
}

#Clear son modifiers
country_event = {
	id = et_feudal.9
	title = et_feudal.1.t
	desc = et_feudal.1.d
	picture = DEATH_OF_HEIR_eventPicture
	
	hidden = yes
	
	trigger = {
		OR = {
			has_country_modifier = two_sons
			has_country_modifier = three_sons
		}
		NOT = { government = salic_monarchy }
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	immediate = {
		remove_country_modifier = two_sons
		remove_country_modifier = three_sons
	}
	
	option = {
		name = et_feudal.1.a
	}
}

#Salic Monarchy, death of heir
country_event = {
	id = et_feudal.10
	title = et_feudal.10.t
	desc = et_feudal.10.d
	picture = DEATH_OF_HEIR_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		government = salic_monarchy
		OR = {
			has_country_modifier = two_sons
			has_country_modifier = three_sons
		}
	}
	
	option = {
		name = et_feudal.10.a
		trigger = { has_country_modifier = two_sons }
		remove_country_modifier = two_sons
		if = {
			limit = { has_heir = no }
			define_heir = {
				dynasty = ROOT
				female = no
			}
		}
	}
	
	option = {
		name = et_feudal.10.b
		trigger = { has_country_modifier = three_sons }
		remove_country_modifier = three_sons
		add_country_modifier = {
			name = two_sons
			duration = -1
		}
		if = {
			limit = { has_heir = no }
			define_heir = {
				dynasty = ROOT
				female = no
			}
		}
	}
}

#Salic Monarchy, death of ruler
country_event = {
	id = et_feudal.11
	title = et_feudal.11.t
	desc = et_feudal.11.d
	picture = DEATH_OF_HEIR_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		government = salic_monarchy
		OR = {
			has_country_modifier = two_sons
			has_country_modifier = three_sons
		}
	}
	
	option = {
		name = et_feudal.11.a
		trigger = { 
			adm_power = 200
			adm = 4
			dip = 4 
			mil = 4
			has_regency = no
		}
		add_adm_power = -200
		country_event = {
			id = et_feudal.12
			days = 1
		}
	}
	
	option = {
		name = et_feudal.11.b
		if = {
			limit = { NOT = { has_global_flag = feudal_split_in_progress } }
			random_list = {
				50 = {
					country_event = {
						id = et_feudal.1
						days = 1
					}
				}
				50 = {
					country_event = {
						id = et_feudal.12
						days = 1
					}
				}
			}
		}
		if = {
			limit = { has_global_flag = feudal_split_in_progress }
			country_event = {
				id = et_feudal.12
				days = 1
			}
		}
	}
}

#Salic Monarchy, no split
country_event = {
	id = et_feudal.12
	title = et_feudal.12.t
	desc = et_feudal.12.d
	picture = GOOD_WITH_MONARCH_eventPicture
	
	is_triggered_only = yes

	option = {
		name = et_feudal.12.a
		add_prestige = 5
		hidden_effect = {
			remove_country_modifier = two_sons
			remove_country_modifier = three_sons
		}
	}
}