﻿je_colonial_administration_button_senegal = {
	name = "je_colonial_administration_button_senegal"
	desc = "je_colonial_administration_button_senegal_desc"

	visible = {
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_africa = no
			}
		any_scope_state = {
			region = sr:region_senegal
		}
		NOT = {
			any_subject_or_below = {
				has_variable = senegal_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_senegal
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_senegal
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_senegal
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_senegal
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_senegal
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = senegal_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_niger = {
	name = "je_colonial_administration_button_niger"
	desc = "je_colonial_administration_button_niger_desc"

	visible = {
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_africa = no
			}
		any_scope_state = {
			region = sr:region_niger
		}
		NOT = {
			any_subject_or_below = {
				has_variable = niger_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_niger
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_niger
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_niger
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_niger
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_niger
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = niger_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_ethiopia = {
	name = "je_colonial_administration_button_ethiopia"
	desc = "je_colonial_administration_button_ethiopia_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_africa = no
			}
		any_scope_state = {
			region = sr:region_ethiopia
		}
		NOT = {
			any_subject_or_below = {
				has_variable = ethiopia_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_ethiopia
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_ethiopia
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_ethiopia
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_ethiopia
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_ethiopia
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = ethiopia_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_zanj = {
	name = "je_colonial_administration_button_zanj"
	desc = "je_colonial_administration_button_zanj_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_africa = no
			}
		any_scope_state = {
			region = sr:region_zanj
		}
		NOT = {
			any_subject_or_below = {
				has_variable = zanj_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_zanj
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_zanj
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_zanj
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_zanj
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_zanj
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = zanj_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_southern_africa = {
	name = "je_colonial_administration_button_southern_africa"
	desc = "je_colonial_administration_button_southern_africa_desc"

	visible = {
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_africa = no
			}
		any_scope_state = {
			region = sr:region_southern_africa
		}
		NOT = {
			any_subject_or_below = {
				has_variable = southern_africa_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_southern_africa
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_southern_africa
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_southern_africa
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_southern_africa
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_southern_africa
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = southern_africa_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_congo = {
	name = "je_colonial_administration_button_congo"
	desc = "je_colonial_administration_button_congo_desc"

	visible = { 
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_africa = no
			}
		any_scope_state = {
			region = sr:region_congo
		}
		NOT = {
			any_subject_or_below = {
				has_variable = congo_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_congo
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_congo
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_congo
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_congo
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_congo
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = congo_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_nile_basin = {
	name = "je_colonial_administration_button_nile_basin"
	desc = "je_colonial_administration_button_nile_basin_desc"

	visible = {
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_north_africa = no
			}
		any_scope_state = {
			region = sr:region_nile_basin
		}
		NOT = {
			any_subject_or_below = {
				has_variable = nile_basin_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_nile_basin
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_nile_basin
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_nile_basin
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_nile_basin
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_nile_basin
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = nile_basin_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_north_africa = {
	name = "je_colonial_administration_button_north_africa"
	desc = "je_colonial_administration_button_north_africa_desc"

	visible = {
		OR = {
			is_player = yes
			NOT = {
				AND = {
				exists = c:FRA
				c:FRA = ROOT
				}
			}
		}
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_north_africa = no
			}
		any_scope_state = {
			region = sr:region_north_africa
		}
		NOT = {
			any_subject_or_below = {
				has_variable = north_africa_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_north_africa
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_north_africa
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_north_africa
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_north_africa
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_north_africa
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = north_africa_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_indochina = {
	name = "je_colonial_administration_button_indochina"
	desc = "je_colonial_administration_button_indochina_desc"

	visible = {
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_indochina = no
			}
		any_scope_state = {
			region = sr:region_indochina
		}
		NOT = {
			any_subject_or_below = {
				has_variable = indochina_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_indochina
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_indochina
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_indochina
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_indochina
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_indochina
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = indochina_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_indonesia = {
	name = "je_colonial_administration_button_indonesia"
	desc = "je_colonial_administration_button_indonesia_desc"

	visible = {
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_indonesia = no
			}
		any_scope_state = {
			region = sr:region_indonesia
		}
		NOT = {
			any_subject_or_below = {
				has_variable = indonesia_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_indonesia
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_indonesia
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_indonesia
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_indonesia
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_indonesia
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = indonesia_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_china = {
	name = "je_colonial_administration_button_china"
	desc = "je_colonial_administration_button_china_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_china = no
				country_is_from_manchuria = no
				country_is_from_russia = no
				}
			}
		any_scope_state = {
		OR = {
			region = sr:region_north_china
			region = sr:region_south_china
			}
		}
		NOT = {
			any_subject_or_below = {
				has_variable = china_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			OR = {
				region = sr:region_north_china
				region = sr:region_south_china
			}
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					OR = {
						region = sr:region_north_china
						region = sr:region_south_china
					}
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					OR = {
						region = sr:region_north_china
						region = sr:region_south_china
					}
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					OR = {
						region = sr:region_north_china
						region = sr:region_south_china
					}
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				OR = {
					region = sr:region_north_china
					region = sr:region_south_china
				}
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = china_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_manchuria = {
	name = "je_colonial_administration_button_manchuria"
	desc = "je_colonial_administration_button_manchuria_desc"

	visible = {
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_china = no
				country_is_from_manchuria = no
				country_is_from_russia = no
				}
			}
		any_scope_state = {
			region = sr:region_manchuria
		}
		NOT = {
			any_subject_or_below = {
				has_variable = manchuria_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_manchuria
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_manchuria
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_manchuria
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_manchuria
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_manchuria
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = manchuria_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_japan = {
	name = "je_colonial_administration_button_japan"
	desc = "je_colonial_administration_button_japan_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_japan = no
		}
		any_scope_state = {
			region = sr:region_japan
		}
		NOT = {
			any_subject_or_below = {
				has_variable = japan_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_japan
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_japan
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_japan
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_japan
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_japan
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = japan_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_siberia = {
	name = "je_colonial_administration_button_siberia"
	desc = "je_colonial_administration_button_siberia_desc"

	visible = {
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_siberia = no
				country_is_from_china = no
				country_is_from_manchuria = no
				country_is_from_russia = no
			}
		}
		any_scope_state = {
		OR = {
			region = sr:region_east_siberia
			region = sr:region_west_siberia
			}
		}
		NOT = {
			any_subject_or_below = {
				has_variable = siberia_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
		OR = {
			region = sr:region_east_siberia
			region = sr:region_west_siberia
			}
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					OR = {
					region = sr:region_east_siberia
					region = sr:region_west_siberia
					}
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					OR = {
					region = sr:region_east_siberia
					region = sr:region_west_siberia
					}
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					OR = {
					region = sr:region_east_siberia
					region = sr:region_west_siberia
					}
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				OR = {
				region = sr:region_east_siberia
				region = sr:region_west_siberia
				}
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = siberia_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_oceania = {
	name = "je_colonial_administration_button_oceania"
	desc = "je_colonial_administration_button_oceania_desc"

	visible = {
		NOT = {
			AND = {
			exists = c:GBR
			exists = c:AST
			c:GBR = ROOT
			c:AST = { is_subject_of = ROOT }
			}
		}
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_oceania = no
		}
		any_scope_state = {
			region = sr:region_oceania
		}
		NOT = {
			any_subject_or_below = {
				has_variable = oceania_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_oceania
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_oceania
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_oceania
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_oceania
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_oceania
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = oceania_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_canada = {
	name = "je_colonial_administration_button_canada"
	desc = "je_colonial_administration_button_canada_desc"

	visible = {
		NOT = {
			AND = {
			exists = c:GBR
			exists = c:HBC
			c:GBR = ROOT
			c:HBC = { is_subject_of = ROOT }
			}
		}  
		is_subject = no
		OR = {
			is_player = yes
		country_is_from_north_america = no
		}
		any_scope_state = {
			region = sr:region_canada
		}
		NOT = {
			any_subject_or_below = {
				has_variable = canada_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_canada
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_canada
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_canada
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_canada
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_canada
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = canada_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_new_england = {
	name = "je_colonial_administration_button_new_england"
	desc = "je_colonial_administration_button_new_england_desc"

	visible = {
		is_subject = no
		OR = {
			is_player = yes
		country_is_from_north_america = no
		}
		any_scope_state = {
			region = sr:region_new_england
		}
		NOT = {
			any_subject_or_below = {
				has_variable = new_england_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_new_england
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_new_england
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_new_england
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_new_england
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_new_england
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = new_england_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_pacific_coast = {
	name = "je_colonial_administration_button_pacific_coast"
	desc = "je_colonial_administration_button_pacific_coast_desc"

	visible = {
		NOT = {
			AND = {
			exists = c:RUS
			exists = c:ALK
			c:RUS = ROOT
			c:ALK = { is_subject_of = ROOT }
			}
		}
		is_subject = no
		OR = {
			is_player = yes
		country_is_from_north_america = no
		}
		any_scope_state = {
			region = sr:region_pacific_coast
		}
		NOT = {
			any_subject_or_below = {
				has_variable = pacific_coast_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_pacific_coast
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_pacific_coast
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_pacific_coast
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_pacific_coast
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_pacific_coast
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = pacific_coast_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_great_plains = {
	name = "je_colonial_administration_button_great_plains"
	desc = "je_colonial_administration_button_great_plains_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
		country_is_from_north_america = no
		}  
		any_scope_state = {
			region = sr:region_great_plains
		}
		NOT = {
			any_subject_or_below = {
				has_variable = great_plains_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_great_plains
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_great_plains
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_great_plains
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_great_plains
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_great_plains
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = great_plains_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_the_midwest = {
	name = "je_colonial_administration_button_the_midwest"
	desc = "je_colonial_administration_button_the_midwest_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
		country_is_from_north_america = no
		}
		any_scope_state = {
			region = sr:region_the_midwest
		}
		NOT = {
			any_subject_or_below = {
				has_variable = the_midwest_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_the_midwest
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_the_midwest
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_the_midwest
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_the_midwest
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_the_midwest
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = the_midwest_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_dixie = {
	name = "je_colonial_administration_button_dixie"
	desc = "je_colonial_administration_button_dixie_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_north_america = no
		}
		any_scope_state = {
			region = sr:region_dixie
		}
		NOT = {
			any_subject_or_below = {
				has_variable = dixie_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_dixie
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_dixie
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_dixie
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_dixie
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_dixie
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = dixie_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_mexico = {
	name = "je_colonial_administration_button_mexico"
	desc = "je_colonial_administration_button_mexico_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_north_america = no
		}
		any_scope_state = {
			region = sr:region_mexico
		}
		NOT = {
			any_subject_or_below = {
				has_variable = mexico_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_mexico
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_mexico
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_mexico
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_mexico
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_mexico
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = mexico_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_central_america = {
	name = "je_colonial_administration_button_central_america"
	desc = "je_colonial_administration_button_central_america_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_north_america = no
		}
		any_scope_state = {
			region = sr:region_central_america
		}
		NOT = {
			any_subject_or_below = {
				has_variable = central_america_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_central_america
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_central_america
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_central_america
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_central_america
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_central_america
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = central_america_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_caribbean = {
	name = "je_colonial_administration_button_caribbean"
	desc = "je_colonial_administration_button_caribbean_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_north_america = no
		}
		any_scope_state = {
			region = sr:region_caribbean
		}
		NOT = {
			any_subject_or_below = {
				has_variable = caribbean_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_caribbean
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_caribbean
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_caribbean
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_caribbean
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_caribbean
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = caribbean_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_brazil = {
	name = "je_colonial_administration_button_brazil"
	desc = "je_colonial_administration_button_brazil_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_south_america = no
		}
		any_scope_state = {
			region = sr:region_brazil
		}
		NOT = {
			any_subject_or_below = {
				has_variable = brazil_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_brazil
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_brazil
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_brazil
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_brazil
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_brazil
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = brazil_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_andes = {
	name = "je_colonial_administration_button_andes"
	desc = "je_colonial_administration_button_andes_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_south_america = no
		}
		any_scope_state = {
			region = sr:region_andes
		}
		NOT = {
			any_subject_or_below = {
				has_variable = andes_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_andes
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_andes
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_andes
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_andes
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_andes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = andes_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_la_plata = {
	name = "je_colonial_administration_button_la_plata"
	desc = "je_colonial_administration_button_la_plata_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_south_america = no
		}
		any_scope_state = {
			region = sr:region_la_plata
		}
		NOT = {
			any_subject_or_below = {
				has_variable = la_plata_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_la_plata
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_la_plata
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_la_plata
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_la_plata
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_la_plata
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = la_plata_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_gran_colombia = {
	name = "je_colonial_administration_button_gran_colombia"
	desc = "je_colonial_administration_button_gran_colombia_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_south_america = no
		}
		any_scope_state = {
			region = sr:region_gran_colombia
		}
		NOT = {
			any_subject_or_below = {
				has_variable = gran_colombia_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_gran_colombia
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_gran_colombia
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_gran_colombia
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_gran_colombia
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_gran_colombia
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = gran_colombia_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_arabic = {
	name = "je_colonial_administration_button_arabic"
	desc = "je_colonial_administration_button_arabic_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_north_africa = no
				country_is_from_byzantine_or_ottoman = no
				country_is_from_persia_or_arabia = no
			}
		}
		any_scope_state = {
			region = sr:region_arabic
		}
		NOT = {
			any_subject_or_below = {
				has_variable = arabic_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_arabic
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_arabic
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_arabic
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_arabic
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_arabic
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = arabic_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_persia = {
	name = "je_colonial_administration_button_persia"
	desc = "je_colonial_administration_button_persia_desc"

	visible = {
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_persia_or_arabia = no
				country_is_from_central_asia = no
				country_is_from_india = no
			}
		}
		any_scope_state = {
			region = sr:region_persia
		}
		NOT = {
			any_subject_or_below = {
				has_variable = persia_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_persia
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_persia
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_persia
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_persia
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_persia
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = persia_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_central_asia = {
	name = "je_colonial_administration_button_central_asia"
	desc = "je_colonial_administration_button_central_asia_desc"

	visible = {
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_persia = no
				country_is_from_central_asia = no
				country_is_from_india = no
				country_is_from_russia = no
				country_is_from_china = no
			}
		}
		any_scope_state = {
			region = sr:region_central_asia
		}
		NOT = {
			any_subject_or_below = {
				has_variable = central_asia_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_central_asia
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_central_asia
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_central_asia
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_central_asia
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_central_asia
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = central_asia_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_india = {
	name = "je_colonial_administration_button_india"
	desc = "je_colonial_administration_button_india_desc"

	visible = {  
		NOT = {
			AND = {
			exists = c:GBR
			exists = c:BIC
			c:GBR = ROOT
			c:BIC = { is_subject_of = ROOT }
			}
		}
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_indochina = no
				country_is_from_india = no
				country_is_from_himalayas = no
				country_is_from_persia = no
			}
		}
		any_scope_state = {
			OR = {
				region = sr:region_madras
				region = sr:region_bengal
				region = sr:region_bombay
				region = sr:region_punjab
				region = sr:region_central_india
			}
		}
		NOT = {
			any_subject_or_below = {
				has_variable = india_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			OR = {
				region = sr:region_madras
				region = sr:region_bengal
				region = sr:region_bombay
				region = sr:region_punjab
				region = sr:region_central_india
			}
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					OR = {
						region = sr:region_madras
						region = sr:region_bengal
						region = sr:region_bombay
						region = sr:region_punjab
						region = sr:region_central_india
					}
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					OR = {
						region = sr:region_madras
						region = sr:region_bengal
						region = sr:region_bombay
						region = sr:region_punjab
						region = sr:region_central_india
					}
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					OR = {
						region = sr:region_madras
						region = sr:region_bengal
						region = sr:region_bombay
						region = sr:region_punjab
						region = sr:region_central_india
					}
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				OR = {
					region = sr:region_madras
					region = sr:region_bengal
					region = sr:region_bombay
					region = sr:region_punjab
					region = sr:region_central_india
				}
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = india_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}
je_colonial_administration_button_himalayas = {
	name = "je_colonial_administration_button_himalayas"
	desc = "je_colonial_administration_button_himalayas_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_india = no
				country_is_from_himalayas = no
				country_is_from_persia = no
				country_is_from_china = no
			}
		}
		any_scope_state = {
			region = sr:region_himalayas
		}
		NOT = {
			any_subject_or_below = {
				has_variable = himalayas_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_himalayas
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_himalayas
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_himalayas
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_himalayas
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_himalayas
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = himalayas_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_british_isles = {
	name = "je_colonial_administration_button_british_isles"
	desc = "je_colonial_administration_button_british_isles_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			country_is_from_british_isles = no
		}
		any_scope_state = {
		OR = {
			region = sr:region_england
			region = sr:region_north_sea_coast
			}
		}
		NOT = {
			any_subject_or_below = {
				has_variable = british_isles_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			OR = {
				region = sr:region_england
				region = sr:region_north_sea_coast
			}
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 3
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					OR = {
						region = sr:region_england
						region = sr:region_north_sea_coast
					}
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					OR = {
						region = sr:region_england
						region = sr:region_north_sea_coast
					}
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					OR = {
						region = sr:region_england
						region = sr:region_north_sea_coast
					}
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				OR = {
					region = sr:region_england
					region = sr:region_north_sea_coast
				}
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = british_isles_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_iberia = {
	name = "je_colonial_administration_button_iberia"
	desc = "je_colonial_administration_button_iberia_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_iberia = no
				country_is_from_france = no
			}
		}
		any_scope_state = {
			region = sr:region_iberia
		}
		NOT = {
			any_subject_or_below = {
				has_variable = iberia_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_iberia
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_iberia
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_iberia
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_iberia
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_iberia
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = iberia_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_france = {
	name = "je_colonial_administration_button_france"
	desc = "je_colonial_administration_button_france_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_france = no
				country_is_from_iberia = no
				country_is_from_germany = no
				country_is_from_italy = no
			}
		}
		any_scope_state = {
		OR = {
			region = sr:region_france
			region = sr:region_occitania
			}
		}
		NOT = {
			any_subject_or_below = {
				has_variable = france_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			OR = {
				region = sr:region_france
				region = sr:region_occitania
			}
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					OR = {
						region = sr:region_france
						region = sr:region_occitania
					}
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					OR = {
						region = sr:region_france
						region = sr:region_occitania
					}
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					OR = {
						region = sr:region_france
						region = sr:region_occitania
					}
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				OR = {
					region = sr:region_france
					region = sr:region_occitania
				}
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = france_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_germany = {
	name = "je_colonial_administration_button_germany"
	desc = "je_colonial_administration_button_germany_desc"

	visible = {
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_germany = no
				country_is_from_france = no
				country_is_from_poland = no
				country_is_from_italy = no
				country_is_from_nordic_states = no
				country_is_from_danubia = no
				country_is_from_balkans = no
			}
		}
		any_scope_state = {
		OR = {
			region = sr:region_rhine
			region = sr:region_north_germany
			region = sr:region_south_germany
			}
		}
		NOT = {
			any_subject_or_below = {
				has_variable = germany_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			OR = {
				region = sr:region_rhine
				region = sr:region_north_germany
				region = sr:region_south_germany
			}
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					OR = {
						region = sr:region_rhine
						region = sr:region_north_germany
						region = sr:region_south_germany
					}
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					OR = {
						region = sr:region_rhine
						region = sr:region_north_germany
						region = sr:region_south_germany
					}
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					OR = {
						region = sr:region_rhine
						region = sr:region_north_germany
						region = sr:region_south_germany
					}
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				OR = {
						region = sr:region_rhine
						region = sr:region_north_germany
						region = sr:region_south_germany
				}
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = germany_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_italy = {
	name = "je_colonial_administration_button_italy"
	desc = "je_colonial_administration_button_italy_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_italy = no
				country_is_from_france = no
				country_is_from_germany = no
				country_is_from_balkans = no
			}
		}
		any_scope_state = {
			region = sr:region_italy
		}
		NOT = {
			any_subject_or_below = {
				has_variable = italy_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_italy
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_italy
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_italy
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_italy
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_italy
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = italy_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_balkans = {
	name = "je_colonial_administration_button_balkans"
	desc = "je_colonial_administration_button_balkans_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_balkans = no
				country_is_from_italy = no
				country_is_from_germany = no
				country_is_from_danubia = no
				country_is_from_anatolia = no
			}
		}
		any_scope_state = {
			region = sr:region_balkans
		}
		NOT = {
			any_subject_or_below = {
				has_variable = balkans_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_balkans
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_balkans
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_balkans
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_balkans
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_balkans
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = balkans_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_nordic_states = {
	name = "je_colonial_administration_button_nordic_states"
	desc = "je_colonial_administration_button_nordic_states_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_nordic_states = no
				country_is_from_russia = no
				country_is_from_germany = no
			}
		}
		any_scope_state = {
		OR = {
			region = sr:region_baltic
			region = sr:region_finland
			}
		}
		NOT = {
			any_subject_or_below = {
				has_variable = nordic_states_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			OR = {
				region = sr:region_baltic
				region = sr:region_finland
			}
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					OR = {
						region = sr:region_baltic
						region = sr:region_finland
					}
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					OR = {
						region = sr:region_baltic
						region = sr:region_finland
					}
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					OR = {
						region = sr:region_baltic
						region = sr:region_finland
					}
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				OR = {
					region = sr:region_baltic
					region = sr:region_finland
				}
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = nordic_states_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_russia = {
	name = "je_colonial_administration_button_russia"
	desc = "je_colonial_administration_button_russia_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_russia = no
				country_is_from_nordic_states = no
				country_is_from_poland = no
				country_is_from_baltic_states = no
				country_is_from_danubia = no
				country_is_from_caucasus = no
			}
		}
		any_scope_state = {
		OR = {
			region = sr:region_russia
			region = sr:region_dnieper
			region = sr:region_belarus
			region = sr:region_arctic_russia
			region = sr:region_urals
			}
		}
		NOT = {
			any_subject_or_below = {
				has_variable = russia_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			OR = {
				region = sr:region_russia
				region = sr:region_dnieper
				region = sr:region_belarus
				region = sr:region_arctic_russia
				region = sr:region_urals
			}
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					OR = {
						region = sr:region_russia
						region = sr:region_dnieper
						region = sr:region_belarus
						region = sr:region_arctic_russia
						region = sr:region_urals
					}
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					OR = {
						region = sr:region_russia
						region = sr:region_dnieper
						region = sr:region_belarus
						region = sr:region_arctic_russia
						region = sr:region_urals
					}
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					OR = {
						region = sr:region_russia
						region = sr:region_dnieper
						region = sr:region_belarus
						region = sr:region_arctic_russia
						region = sr:region_urals
					}
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				OR = {
						region = sr:region_russia
						region = sr:region_dnieper
						region = sr:region_belarus
						region = sr:region_arctic_russia
						region = sr:region_urals
				}
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = russia_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_danubia = {
	name = "je_colonial_administration_button_danubia"
	desc = "je_colonial_administration_button_danubia_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_danubia = no
				country_is_from_balkans = no
				country_is_from_germany = no
				country_is_from_poland = no
				country_is_from_russia = no
			}
		}
		any_scope_state = {
			region = sr:region_danubia
		}
		NOT = {
			any_subject_or_below = {
				has_variable = danubia_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_danubia
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_danubia
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_danubia
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_danubia
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_danubia
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = danubia_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_poland = {
	name = "je_colonial_administration_button_poland"
	desc = "je_colonial_administration_button_poland_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_poland = no
				country_is_from_germany = no
				country_is_from_danubia = no
				country_is_from_baltic_states = no
				country_is_from_russia = no
			}
		}
		any_scope_state = {
			region = sr:region_poland
		}
		NOT = {
			any_subject_or_below = {
				has_variable = poland_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_poland
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_poland
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_poland
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_poland
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_poland
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = poland_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_caucasus = {
	name = "je_colonial_administration_button_caucasus"
	desc = "je_colonial_administration_button_caucasus_desc"

	visible = {  
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_caucasus = no
				country_is_from_anatolia = no
				country_is_from_russia = no
			}
		}
		any_scope_state = {
			region = sr:region_caucasus
		}
		NOT = {
			any_subject_or_below = {
				has_variable = caucasus_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_caucasus
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_caucasus
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_caucasus
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_caucasus
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_caucasus
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = caucasus_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_anatolia = {
	name = "je_colonial_administration_button_anatolia"
	desc = "je_colonial_administration_button_anatolia_desc"

	visible = {
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_anatolia = no
				country_is_from_balkans = no
				country_is_from_caucasus = no
			}
		}
		any_scope_state = {
			region = sr:region_anatolia
		}
		NOT = {
			any_subject_or_below = {
				has_variable = anatolia_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_anatolia
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_anatolia
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_anatolia
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_anatolia
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_anatolia
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = anatolia_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

je_colonial_administration_button_baltic_states = {
	name = "je_colonial_administration_button_baltic_states"
	desc = "je_colonial_administration_button_baltic_states_desc"

	visible = {
		is_subject = no
		OR = {
			is_player = yes
			AND = {
				country_is_from_baltic_states = no
				country_is_from_poland = no
				country_is_from_russia = no
			}
		}
		any_scope_state = {
			region = sr:region_baltic_states
		}
		NOT = {
			any_subject_or_below = {
				has_variable = baltic_states_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_baltic_states
			is_largest_state_in_region = yes
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			count >= 2
		}
		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_baltic_states
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_baltic_states
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_baltic_states
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_baltic_states
			NOR = { is_homeland_of_country_cultures = ROOT
				is_incorporated = yes }
			}
			set_variable = state_to_cede
		}
		create_dynamic_country = {
			origin = root 
			country_type = colonial
			tier = principality
			capital = scope:newly_formed_colonial_nation_capital_scope
			cede_state_trigger = {
				has_variable = state_to_cede
			}
			on_created = { 
				set_variable = baltic_states_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 3
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_frontier_colonization
				activate_law = law_type:law_presidential_republic
			}
		}
		hidden_effect = {
			create_diplomatic_pact = {
				country = scope:newly_formed_colonial_nation_capital_scope.owner
				type = colony
			}
		}
		trigger_event = { id = colonial_administration_events.1 days = 1 popup = yes }
		custom_tooltip = je_colonial_administration_button_tt_1
		custom_tooltip = je_colonial_administration_button_tt_2
	}
}

# Expand Colonial Administration

je_colonial_administration_button_expand_senegal = {
	name = "je_colonial_administration_button_expand_senegal"
	desc = "je_colonial_administration_button_expand_senegal_desc"

	visible = { 
		country_is_from_africa = no
		any_subject_or_below = {
			has_variable = senegal_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_senegal}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_senegal
				is_under_colonization = no
				NOR = { is_homeland_of_country_cultures = ROOT
					is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = senegal_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = senegal_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_senegal}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = senegal_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_senegal}
						}
					save_scope_as = senegal_subject_to_annex_scope

					scope:senegal_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_senegal}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_senegal}
				}				
			}
			every_country = {
					limit = {
						OR = {  #this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_senegal}
						}
					save_scope_as = senegal_subject_to_annex_scope

					scope:senegal_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_senegal}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_senegal
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_senegal
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = senegal_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = senegal_subject_var
				}
				save_scope_as = senegal_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = senegal_subject_var
					NOT = {
						this = scope:senegal_subject_scope
					}
				}
				save_scope_as = senegal_subject_scope_2
			}
			scope:senegal_subject_scope = {
				annex = scope:senegal_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_niger = {
	name = "je_colonial_administration_button_expand_niger"
	desc = "je_colonial_administration_button_expand_niger_desc"

	visible = { 
		country_is_from_africa = no
		any_subject_or_below = {
			has_variable = niger_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_niger}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_niger
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = niger_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = niger_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_niger}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = niger_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_niger}
						}
					save_scope_as = niger_subject_to_annex_scope

					scope:niger_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_niger}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_niger}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							#this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_niger}
						}
					save_scope_as = niger_subject_to_annex_scope

					scope:niger_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_niger}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_niger
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_niger
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = niger_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = niger_subject_var
				}
				save_scope_as = niger_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = niger_subject_var
					NOT = {
						this = scope:niger_subject_scope
					}
				}
				save_scope_as = niger_subject_scope_2
			}
			scope:niger_subject_scope = {
				annex = scope:niger_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_ethiopia = {
	name = "je_colonial_administration_button_expand_ethiopia"
	desc = "je_colonial_administration_button_expand_ethiopia_desc"

	visible = {
		country_is_from_africa = no 
		any_subject_or_below = {
			has_variable = ethiopia_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_ethiopia}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_ethiopia
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = ethiopia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = ethiopia_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_ethiopia}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = ethiopia_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_ethiopia}
						}
					save_scope_as = ethiopia_subject_to_annex_scope

					scope:ethiopia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_ethiopia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_ethiopia}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							#this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_ethiopia}
						}
					save_scope_as = ethiopia_subject_to_annex_scope

					scope:ethiopia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_ethiopia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_ethiopia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_ethiopia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = ethiopia_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = ethiopia_subject_var
				}
				save_scope_as = ethiopia_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = ethiopia_subject_var
					NOT = {
						this = scope:ethiopia_subject_scope
					}
				}
				save_scope_as = ethiopia_subject_scope_2
			}
			scope:ethiopia_subject_scope = {
				annex = scope:ethiopia_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_zanj = {
	name = "je_colonial_administration_button_expand_zanj"
	desc = "je_colonial_administration_button_expand_zanj_desc"

	visible = { 
		country_is_from_africa = no
		any_subject_or_below = {
			has_variable = zanj_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_zanj}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_zanj
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = zanj_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = zanj_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_zanj}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = zanj_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_zanj}
						}
					save_scope_as = zanj_subject_to_annex_scope

					scope:zanj_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_zanj}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_zanj}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							#this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_zanj}
						}
					save_scope_as = zanj_subject_to_annex_scope

					scope:zanj_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_zanj}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_zanj
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_zanj
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = zanj_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = zanj_subject_var
				}
				save_scope_as = zanj_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = zanj_subject_var
					NOT = {
						this = scope:zanj_subject_scope
					}
				}
				save_scope_as = zanj_subject_scope_2
			}
			scope:zanj_subject_scope = {
				annex = scope:zanj_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_southern_africa = {
	name = "je_colonial_administration_button_expand_southern_africa"
	desc = "je_colonial_administration_button_expand_southern_africa_desc"

	visible = { 
		country_is_from_africa = no
		any_subject_or_below = {
			has_variable = southern_africa_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_southern_africa}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_southern_africa
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = southern_africa_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = southern_africa_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_southern_africa}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = southern_africa_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_southern_africa}
						}
					save_scope_as = southern_africa_subject_to_annex_scope

					scope:southern_africa_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_southern_africa}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_southern_africa}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							#this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_southern_africa}
						}
					save_scope_as = southern_africa_subject_to_annex_scope

					scope:southern_africa_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_southern_africa}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_southern_africa
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_southern_africa
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = southern_africa_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = southern_africa_subject_var
				}
				save_scope_as = southern_africa_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = southern_africa_subject_var
					NOT = {
						this = scope:southern_africa_subject_scope
					}
				}
				save_scope_as = southern_africa_subject_scope_2
			}
			scope:southern_africa_subject_scope = {
				annex = scope:southern_africa_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_congo = {
	name = "je_colonial_administration_button_expand_congo"
	desc = "je_colonial_administration_button_expand_congo_desc"

	visible = { 
		country_is_from_africa = no
		any_subject_or_below = {
			has_variable = congo_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_congo}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_congo
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = congo_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = congo_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_congo}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = congo_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_congo}
						}
					save_scope_as = congo_subject_to_annex_scope

					scope:congo_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_congo}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_congo}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							#this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_congo}
						}
					save_scope_as = congo_subject_to_annex_scope

					scope:congo_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_congo}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_congo
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_congo
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = congo_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = congo_subject_var
				}
				save_scope_as = congo_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = congo_subject_var
					NOT = {
						this = scope:congo_subject_scope
					}
				}
				save_scope_as = congo_subject_scope_2
			}
			scope:congo_subject_scope = {
				annex = scope:congo_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_nile_basin = {
	name = "je_colonial_administration_button_expand_nile_basin"
	desc = "je_colonial_administration_button_expand_nile_basin_desc"

	visible = { 
		country_is_from_north_africa = no
		any_subject_or_below = {
			has_variable = nile_basin_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_nile_basin}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_nile_basin
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = nile_basin_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = nile_basin_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_nile_basin}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = nile_basin_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_nile_basin}
						}
					save_scope_as = nile_basin_subject_to_annex_scope

					scope:nile_basin_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_nile_basin}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_nile_basin}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							#this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_nile_basin}
						}
					save_scope_as = nile_basin_subject_to_annex_scope

					scope:nile_basin_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_nile_basin}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_nile_basin
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_nile_basin
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = nile_basin_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = nile_basin_subject_var
				}
				save_scope_as = nile_basin_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = nile_basin_subject_var
					NOT = {
						this = scope:nile_basin_subject_scope
					}
				}
				save_scope_as = nile_basin_subject_scope_2
			}
			scope:nile_basin_subject_scope = {
				annex = scope:nile_basin_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_north_africa = {
	name = "je_colonial_administration_button_expand_north_africa"
	desc = "je_colonial_administration_button_expand_north_africa_desc"

	visible = { 
		country_is_from_north_africa = no
		any_subject_or_below = {
			has_variable = north_africa_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_north_africa}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_north_africa
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = north_africa_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = north_africa_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_north_africa}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = north_africa_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_north_africa}
						}
					save_scope_as = north_africa_subject_to_annex_scope

					scope:north_africa_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_north_africa}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_north_africa}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							#this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_north_africa}
						}
					save_scope_as = north_africa_subject_to_annex_scope

					scope:north_africa_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_north_africa}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_north_africa
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_north_africa
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = north_africa_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = north_africa_subject_var
				}
				save_scope_as = north_africa_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = north_africa_subject_var
					NOT = {
						this = scope:north_africa_subject_scope
					}
				}
				save_scope_as = north_africa_subject_scope_2
			}
			scope:north_africa_subject_scope = {
				annex = scope:north_africa_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_indochina = {
	name = "je_colonial_administration_button_expand_indochina"
	desc = "je_colonial_administration_button_expand_indochina_desc"

	visible = { 
		country_is_from_indochina = no
		any_subject_or_below = {
			has_variable = indochina_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_indochina}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_indochina
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = indochina_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = indochina_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_indochina}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = indochina_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_indochina}
						}
					save_scope_as = indochina_subject_to_annex_scope

					scope:indochina_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_indochina}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_indochina}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							#this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_indochina}
						}
					save_scope_as = indochina_subject_to_annex_scope

					scope:indochina_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_indochina}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_indochina
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_indochina
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = indochina_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = indochina_subject_var
				}
				save_scope_as = indochina_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = indochina_subject_var
					NOT = {
						this = scope:indochina_subject_scope
					}
				}
				save_scope_as = indochina_subject_scope_2
			}
			scope:indochina_subject_scope = {
				annex = scope:indochina_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_indonesia = {
	name = "je_colonial_administration_button_expand_indonesia"
	desc = "je_colonial_administration_button_expand_indonesia_desc"

	visible = { 
		country_is_from_indonesia = no
		any_subject_or_below = {
			has_variable = indonesia_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_indonesia}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_indonesia
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = indonesia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = indonesia_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_indonesia}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = indonesia_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_indonesia}
						}
					save_scope_as = indonesia_subject_to_annex_scope

					scope:indonesia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_indonesia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_indonesia}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							#this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_indonesia}
						}
					save_scope_as = indonesia_subject_to_annex_scope

					scope:indonesia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_indonesia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_indonesia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_indonesia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = indonesia_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = indonesia_subject_var
				}
				save_scope_as = indonesia_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = indonesia_subject_var
					NOT = {
						this = scope:indonesia_subject_scope
					}
				}
				save_scope_as = indonesia_subject_scope_2
			}
			scope:indonesia_subject_scope = {
				annex = scope:indonesia_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_china = {
	name = "je_colonial_administration_button_expand_china"
	desc = "je_colonial_administration_button_expand_china_desc"

	visible = { 
		country_is_from_china = no
		country_is_from_manchuria = no
		any_subject_or_below = {
			has_variable = china_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { 
						OR = {  region = sr:region_north_china
							region = sr:region_south_china }
						}
					}
			count >= 2
			}		
			any_scope_state = {
				OR = {
					region = sr:region_north_china
					region = sr:region_south_china
				}
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = china_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = china_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = {
						OR = {  region = sr:region_north_china
							region = sr:region_south_china }
					}
				}
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = china_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
							OR = {  region = sr:region_north_china
								region = sr:region_south_china }
							}
						}
					save_scope_as = china_subject_to_annex_scope

					scope:china_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {  region = sr:region_north_china
									region = sr:region_south_china }
								}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
						OR = {  region = sr:region_north_china
							region = sr:region_south_china }
					}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							#this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = {
								OR = {  region = sr:region_north_china
										region = sr:region_south_china }
							}
						}
					save_scope_as = china_subject_to_annex_scope

					scope:china_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {  region = sr:region_north_china
									region = sr:region_south_china }
							}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					OR = {
						region = sr:region_north_china
						region = sr:region_south_china
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					OR = {
						region = sr:region_north_china
						region = sr:region_south_china
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = china_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = china_subject_var
				}
				save_scope_as = china_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = china_subject_var
					NOT = {
						this = scope:china_subject_scope
					}
				}
				save_scope_as = china_subject_scope_2
			}
			scope:china_subject_scope = {
				annex = scope:china_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_manchuria = {
	name = "je_colonial_administration_button_expand_manchuria"
	desc = "je_colonial_administration_button_expand_manchuria_desc"

	visible = { 
		country_is_from_china = no
		country_is_from_manchuria = no
		any_subject_or_below = {
			has_variable = manchuria_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_manchuria}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_manchuria
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = manchuria_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = manchuria_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_manchuria}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = manchuria_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_manchuria}
						}
					save_scope_as = manchuria_subject_to_annex_scope

					scope:manchuria_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_manchuria}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_manchuria}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							#this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_manchuria}
						}
					save_scope_as = manchuria_subject_to_annex_scope

					scope:manchuria_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_manchuria}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_manchuria
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_manchuria
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = manchuria_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = manchuria_subject_var
				}
				save_scope_as = manchuria_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = manchuria_subject_var
					NOT = {
						this = scope:manchuria_subject_scope
					}
				}
				save_scope_as = manchuria_subject_scope_2
			}
			scope:manchuria_subject_scope = {
				annex = scope:manchuria_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_japan = {
	name = "je_colonial_administration_button_expand_japan"
	desc = "je_colonial_administration_button_expand_japan_desc"

	visible = { 
		country_is_from_japan = no
		any_subject_or_below = {
			has_variable = japan_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_japan}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_japan
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = japan_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = japan_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_japan}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = japan_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_japan}
						}
					save_scope_as = japan_subject_to_annex_scope

					scope:japan_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_japan}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_japan}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							#this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_japan}
						}
					save_scope_as = japan_subject_to_annex_scope

					scope:japan_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_japan}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_japan
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_japan
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = japan_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = japan_subject_var
				}
				save_scope_as = japan_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = japan_subject_var
					NOT = {
						this = scope:japan_subject_scope
					}
				}
				save_scope_as = japan_subject_scope_2
			}
			scope:japan_subject_scope = {
				annex = scope:japan_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_siberia = {
	name = "je_colonial_administration_button_expand_siberia"
	desc = "je_colonial_administration_button_expand_siberia_desc"

	visible = { 
		country_is_from_russia = no
		any_subject_or_below = {
			has_variable = siberia_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { 
							OR = {
								region = sr:region_east_siberia
								region = sr:region_west_siberia
							}
						}
					}
			count >= 2
			}		
			any_scope_state = {
				OR = {
					region = sr:region_east_siberia
					region = sr:region_west_siberia
				}
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = siberia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = siberia_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
							OR = {
								region = sr:region_east_siberia
								region = sr:region_west_siberia
							}
						}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = siberia_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
								OR = {
									region = sr:region_east_siberia
									region = sr:region_west_siberia
								}
							}
						}
					save_scope_as = siberia_subject_to_annex_scope

					scope:siberia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {
									region = sr:region_east_siberia
									region = sr:region_west_siberia
								}
							}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
							OR = {
								region = sr:region_east_siberia
								region = sr:region_west_siberia
							}
					}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							#this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
							OR = {
								region = sr:region_east_siberia
								region = sr:region_west_siberia
								}
							}
						}
					save_scope_as = siberia_subject_to_annex_scope

					scope:siberia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {
									region = sr:region_east_siberia
									region = sr:region_west_siberia
								}
							}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					OR = {
						region = sr:region_east_siberia
						region = sr:region_west_siberia
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					OR = {
						region = sr:region_east_siberia
						region = sr:region_west_siberia
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = siberia_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = siberia_subject_var
				}
				save_scope_as = siberia_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = siberia_subject_var
					NOT = {
						this = scope:siberia_subject_scope
					}
				}
				save_scope_as = siberia_subject_scope_2
			}
			scope:siberia_subject_scope = {
				annex = scope:siberia_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_oceania = {
	name = "je_colonial_administration_button_expand_oceania"
	desc = "je_colonial_administration_button_expand_oceania_desc"

	visible = { 
		country_is_from_oceania = no
		any_subject_or_below = {
			has_variable = oceania_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_oceania}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_oceania
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = oceania_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = oceania_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_oceania}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = oceania_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_oceania}
						}
					save_scope_as = oceania_subject_to_annex_scope

					scope:oceania_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_oceania}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_oceania}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							#this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_oceania}
						}
					save_scope_as = oceania_subject_to_annex_scope

					scope:oceania_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_oceania}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_oceania
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_oceania
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = oceania_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = oceania_subject_var
				}
				save_scope_as = oceania_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = oceania_subject_var
					NOT = {
						this = scope:oceania_subject_scope
					}
				}
				save_scope_as = oceania_subject_scope_2
			}
			scope:oceania_subject_scope = {
				annex = scope:oceania_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_canada = {
	name = "je_colonial_administration_button_expand_canada"
	desc = "je_colonial_administration_button_expand_canada_desc"

	visible = { 
		country_is_from_north_america = no
		any_subject_or_below = {
			has_variable = canada_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_canada}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_canada
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = canada_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = canada_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_canada}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = canada_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_canada}
						}
					save_scope_as = canada_subject_to_annex_scope

					scope:canada_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_canada}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_canada}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							#this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_canada}
						}
					save_scope_as = canada_subject_to_annex_scope

					scope:canada_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_canada}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_canada
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_canada
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = canada_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = canada_subject_var
				}
				save_scope_as = canada_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = canada_subject_var
					NOT = {
						this = scope:canada_subject_scope
					}
				}
				save_scope_as = canada_subject_scope_2
			}
			scope:canada_subject_scope = {
				annex = scope:canada_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_new_england = {
	name = "je_colonial_administration_button_expand_new_england"
	desc = "je_colonial_administration_button_expand_new_england_desc"

	visible = { 
		country_is_from_north_america = no
		any_subject_or_below = {
			has_variable = new_england_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_new_england}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_new_england
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = new_england_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = new_england_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_new_england}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = new_england_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_new_england}
						}
					save_scope_as = new_england_subject_to_annex_scope

					scope:new_england_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_new_england}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_new_england}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							#this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_new_england}
						}
					save_scope_as = new_england_subject_to_annex_scope

					scope:new_england_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_new_england}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_new_england
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_new_england
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = new_england_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = new_england_subject_var
				}
				save_scope_as = new_england_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = new_england_subject_var
					NOT = {
						this = scope:new_england_subject_scope
					}
				}
				save_scope_as = new_england_subject_scope_2
			}
			scope:new_england_subject_scope = {
				annex = scope:new_england_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_pacific_coast = {
	name = "je_colonial_administration_button_expand_pacific_coast"
	desc = "je_colonial_administration_button_expand_pacific_coast_desc"

	visible = { 
		country_is_from_north_america = no
		any_subject_or_below = {
			has_variable = pacific_coast_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_pacific_coast}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_pacific_coast
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = pacific_coast_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = pacific_coast_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_pacific_coast}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = pacific_coast_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_pacific_coast}
						}
					save_scope_as = pacific_coast_subject_to_annex_scope

					scope:pacific_coast_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_pacific_coast}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_pacific_coast}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							#this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_pacific_coast}
						}
					save_scope_as = pacific_coast_subject_to_annex_scope

					scope:pacific_coast_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_pacific_coast}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_pacific_coast
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_pacific_coast
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = pacific_coast_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = pacific_coast_subject_var
				}
				save_scope_as = pacific_coast_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = pacific_coast_subject_var
					NOT = {
						this = scope:pacific_coast_subject_scope
					}
				}
				save_scope_as = pacific_coast_subject_scope_2
			}
			scope:pacific_coast_subject_scope = {
				annex = scope:pacific_coast_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_great_plains = {
	name = "je_colonial_administration_button_expand_great_plains"
	desc = "je_colonial_administration_button_expand_great_plains_desc"

	visible = { 
		country_is_from_north_america = no
		any_subject_or_below = {
			has_variable = great_plains_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_great_plains}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_great_plains
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = great_plains_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = great_plains_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_great_plains}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = great_plains_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_great_plains}
						}
					save_scope_as = great_plains_subject_to_annex_scope

					scope:great_plains_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_great_plains}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_great_plains}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							#this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_great_plains}
						}
					save_scope_as = great_plains_subject_to_annex_scope

					scope:great_plains_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_great_plains}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_great_plains
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_great_plains
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = great_plains_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = great_plains_subject_var
				}
				save_scope_as = great_plains_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = great_plains_subject_var
					NOT = {
						this = scope:great_plains_subject_scope
					}
				}
				save_scope_as = great_plains_subject_scope_2
			}
			scope:great_plains_subject_scope = {
				annex = scope:great_plains_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_the_midwest = {
	name = "je_colonial_administration_button_expand_the_midwest"
	desc = "je_colonial_administration_button_expand_the_midwest_desc"

	visible = { 
		country_is_from_north_america = no
		any_subject_or_below = {
			has_variable = the_midwest_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_the_midwest}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_the_midwest
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = the_midwest_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = the_midwest_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_the_midwest}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = the_midwest_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_the_midwest}
						}
					save_scope_as = the_midwest_subject_to_annex_scope

					scope:the_midwest_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_the_midwest}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_the_midwest}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							#this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_the_midwest}
						}
					save_scope_as = the_midwest_subject_to_annex_scope

					scope:the_midwest_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_the_midwest}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_the_midwest
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_the_midwest
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = the_midwest_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = the_midwest_subject_var
				}
				save_scope_as = the_midwest_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = the_midwest_subject_var
					NOT = {
						this = scope:the_midwest_subject_scope
					}
				}
				save_scope_as = the_midwest_subject_scope_2
			}
			scope:the_midwest_subject_scope = {
				annex = scope:the_midwest_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_dixie = {
	name = "je_colonial_administration_button_expand_dixie"
	desc = "je_colonial_administration_button_expand_dixie_desc"

	visible = { 
		country_is_from_north_america = no
		any_subject_or_below = {
			has_variable = dixie_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_dixie}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_dixie
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = dixie_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = dixie_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_dixie}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = dixie_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_dixie}
						}
					save_scope_as = dixie_subject_to_annex_scope

					scope:dixie_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_dixie}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_dixie}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							#this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_dixie}
						}
					save_scope_as = dixie_subject_to_annex_scope

					scope:dixie_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_dixie}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_dixie
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_dixie
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = dixie_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = dixie_subject_var
				}
				save_scope_as = dixie_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = dixie_subject_var
					NOT = {
						this = scope:dixie_subject_scope
					}
				}
				save_scope_as = dixie_subject_scope_2
			}
			scope:dixie_subject_scope = {
				annex = scope:dixie_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_mexico = {
	name = "je_colonial_administration_button_expand_mexico"
	desc = "je_colonial_administration_button_expand_mexico_desc"

	visible = { 
		country_is_from_north_america = no
		any_subject_or_below = {
			has_variable = mexico_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_mexico}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_mexico
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = mexico_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = mexico_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_mexico}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = mexico_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_mexico}
						}
					save_scope_as = mexico_subject_to_annex_scope

					scope:mexico_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_mexico}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_mexico}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							#this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_mexico}
						}
					save_scope_as = mexico_subject_to_annex_scope

					scope:mexico_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_mexico}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_mexico
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_mexico
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = mexico_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = mexico_subject_var
				}
				save_scope_as = mexico_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = mexico_subject_var
					NOT = {
						this = scope:mexico_subject_scope
					}
				}
				save_scope_as = mexico_subject_scope_2
			}
			scope:mexico_subject_scope = {
				annex = scope:mexico_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_central_america = {
	name = "je_colonial_administration_button_expand_central_america"
	desc = "je_colonial_administration_button_expand_central_america_desc"

	visible = { 
		country_is_from_north_america = no
		any_subject_or_below = {
			has_variable = central_america_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_central_america}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_central_america
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = central_america_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = central_america_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_central_america}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = central_america_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_central_america}
						}
					save_scope_as = central_america_subject_to_annex_scope

					scope:central_america_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_central_america}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_central_america}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							#this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_central_america}
						}
					save_scope_as = central_america_subject_to_annex_scope

					scope:central_america_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_central_america}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_central_america
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_central_america
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = central_america_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = central_america_subject_var
				}
				save_scope_as = central_america_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = central_america_subject_var
					NOT = {
						this = scope:central_america_subject_scope
					}
				}
				save_scope_as = central_america_subject_scope_2
			}
			scope:central_america_subject_scope = {
				annex = scope:central_america_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_caribbean = {
	name = "je_colonial_administration_button_expand_caribbean"
	desc = "je_colonial_administration_button_expand_caribbean_desc"

	visible = { 
		country_is_from_north_america = no
		any_subject_or_below = {
			has_variable = caribbean_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_caribbean }
					}
			count >= 2
			}					
			any_scope_state = {
				region = sr:region_caribbean
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = caribbean_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = caribbean_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_caribbean }
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = caribbean_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_caribbean }
						}
					save_scope_as = caribbean_subject_to_annex_scope

					scope:caribbean_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_caribbean }
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_caribbean }
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							#this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_caribbean }
						}
					save_scope_as = caribbean_subject_to_annex_scope

					scope:caribbean_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_caribbean }
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_caribbean
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_caribbean
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = caribbean_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = caribbean_subject_var
				}
				save_scope_as = caribbean_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = caribbean_subject_var
					NOT = {
						this = scope:caribbean_subject_scope
					}
				}
				save_scope_as = caribbean_subject_scope_2
			}
			scope:caribbean_subject_scope = {
				annex = scope:caribbean_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_brazil = {
	name = "je_colonial_administration_button_expand_brazil"
	desc = "je_colonial_administration_button_expand_brazil_desc"

	visible = { 
		country_is_from_south_america = no
		any_subject_or_below = {
			has_variable = brazil_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_brazil}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_brazil
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = brazil_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = brazil_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_brazil}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = brazil_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_brazil}
						}
					save_scope_as = brazil_subject_to_annex_scope

					scope:brazil_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_brazil}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_brazil}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							#this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_brazil}
						}
					save_scope_as = brazil_subject_to_annex_scope

					scope:brazil_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_brazil}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_brazil
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_brazil
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = brazil_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = brazil_subject_var
				}
				save_scope_as = brazil_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = brazil_subject_var
					NOT = {
						this = scope:brazil_subject_scope
					}
				}
				save_scope_as = brazil_subject_scope_2
			}
			scope:brazil_subject_scope = {
				annex = scope:brazil_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_andes = {
	name = "je_colonial_administration_button_expand_andes"
	desc = "je_colonial_administration_button_expand_andes_desc"

	visible = { 
		country_is_from_south_america = no
		any_subject_or_below = {
			has_variable = andes_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_andes}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_andes
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = andes_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = andes_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_andes}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = andes_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_andes}
						}
					save_scope_as = andes_subject_to_annex_scope

					scope:andes_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_andes}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_andes}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							#this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_andes}
						}
					save_scope_as = andes_subject_to_annex_scope

					scope:andes_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_andes}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_andes
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_andes
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = andes_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = andes_subject_var
				}
				save_scope_as = andes_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = andes_subject_var
					NOT = {
						this = scope:andes_subject_scope
					}
				}
				save_scope_as = andes_subject_scope_2
			}
			scope:andes_subject_scope = {
				annex = scope:andes_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_la_plata = {
	name = "je_colonial_administration_button_expand_la_plata"
	desc = "je_colonial_administration_button_expand_la_plata_desc"

	visible = { 
		country_is_from_south_america = no
		any_subject_or_below = {
			has_variable = la_plata_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_la_plata}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_la_plata
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = la_plata_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = la_plata_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_la_plata}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = la_plata_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_la_plata}
						}
					save_scope_as = la_plata_subject_to_annex_scope

					scope:la_plata_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_la_plata}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_la_plata}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							#this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_la_plata}
						}
					save_scope_as = la_plata_subject_to_annex_scope

					scope:la_plata_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_la_plata}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_la_plata
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_la_plata
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = la_plata_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = la_plata_subject_var
				}
				save_scope_as = la_plata_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = la_plata_subject_var
					NOT = {
						this = scope:la_plata_subject_scope
					}
				}
				save_scope_as = la_plata_subject_scope_2
			}
			scope:la_plata_subject_scope = {
				annex = scope:la_plata_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_gran_colombia = {
	name = "je_colonial_administration_button_expand_gran_colombia"
	desc = "je_colonial_administration_button_expand_gran_colombia_desc"

	visible = { 
		country_is_from_south_america = no
		any_subject_or_below = {
			has_variable = gran_colombia_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_gran_colombia}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_gran_colombia
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = gran_colombia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = gran_colombia_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_gran_colombia}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = gran_colombia_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_gran_colombia}
						}
					save_scope_as = gran_colombia_subject_to_annex_scope

					scope:gran_colombia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_gran_colombia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_gran_colombia}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							#this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_gran_colombia}
						}
					save_scope_as = gran_colombia_subject_to_annex_scope

					scope:gran_colombia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_gran_colombia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_gran_colombia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_gran_colombia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = gran_colombia_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = gran_colombia_subject_var
				}
				save_scope_as = gran_colombia_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = gran_colombia_subject_var
					NOT = {
						this = scope:gran_colombia_subject_scope
					}
				}
				save_scope_as = gran_colombia_subject_scope_2
			}
			scope:gran_colombia_subject_scope = {
				annex = scope:gran_colombia_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_arabic = {
	name = "je_colonial_administration_button_expand_arabic"
	desc = "je_colonial_administration_button_expand_arabic_desc"

	visible = { 
		country_is_from_north_africa = no
		country_is_from_byzantine_or_ottoman = no
		country_is_from_persia_or_arabia = no
		any_subject_or_below = {
			has_variable = arabic_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_arabic}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_arabic
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = arabic_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = arabic_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_arabic}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = arabic_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_arabic}
						}
					save_scope_as = arabic_subject_to_annex_scope

					scope:arabic_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_arabic}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_arabic}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							#this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_arabic}
						}
					save_scope_as = arabic_subject_to_annex_scope

					scope:arabic_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_arabic}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_arabic
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_arabic
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = arabic_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = arabic_subject_var
				}
				save_scope_as = arabic_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = arabic_subject_var
					NOT = {
						this = scope:arabic_subject_scope
					}
				}
				save_scope_as = arabic_subject_scope_2
			}
			scope:arabic_subject_scope = {
				annex = scope:arabic_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_persia = {
	name = "je_colonial_administration_button_expand_persia"
	desc = "je_colonial_administration_button_expand_persia_desc"

	visible = { 
		country_is_from_persia_or_arabia = no
		country_is_from_central_asia = no
		country_is_from_india = no
		any_subject_or_below = {
			has_variable = persia_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_persia}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_persia
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = persia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = persia_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_persia}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = persia_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_persia}
						}
					save_scope_as = persia_subject_to_annex_scope

					scope:persia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_persia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_persia}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							#this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_persia}
						}
					save_scope_as = persia_subject_to_annex_scope

					scope:persia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_persia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_persia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_persia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = persia_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = persia_subject_var
				}
				save_scope_as = persia_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = persia_subject_var
					NOT = {
						this = scope:persia_subject_scope
					}
				}
				save_scope_as = persia_subject_scope_2
			}
			scope:persia_subject_scope = {
				annex = scope:persia_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_central_asia = {
	name = "je_colonial_administration_button_expand_central_asia"
	desc = "je_colonial_administration_button_expand_central_asia_desc"

	visible = { 
		country_is_from_persia = no
		country_is_from_central_asia = no
		country_is_from_india = no
		country_is_from_russia = no
		country_is_from_china = no
		any_subject_or_below = {
			has_variable = central_asia_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_central_asia}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_central_asia
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = central_asia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = central_asia_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_central_asia}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = central_asia_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_central_asia}
						}
					save_scope_as = central_asia_subject_to_annex_scope

					scope:central_asia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_central_asia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_central_asia}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							#this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_central_asia}
						}
					save_scope_as = central_asia_subject_to_annex_scope

					scope:central_asia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_central_asia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_central_asia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_central_asia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = central_asia_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = central_asia_subject_var
				}
				save_scope_as = central_asia_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = central_asia_subject_var
					NOT = {
						this = scope:central_asia_subject_scope
					}
				}
				save_scope_as = central_asia_subject_scope_2
			}
			scope:central_asia_subject_scope = {
				annex = scope:central_asia_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_india = {
	name = "je_colonial_administration_button_expand_india"
	desc = "je_colonial_administration_button_expand_india_desc"

	visible = { 
		country_is_from_indochina = no
		country_is_from_india = no
		country_is_from_himalayas = no
		country_is_from_persia = no
		any_subject_or_below = {
			has_variable = india_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { 
						OR = {
							region = sr:region_madras
							region = sr:region_bengal
							region = sr:region_bombay
							region = sr:region_punjab
							region = sr:region_central_india
							}
						}
					}
			count >= 2
			}		
			any_scope_state = {
				OR = {
					region = sr:region_madras
					region = sr:region_bengal
					region = sr:region_bombay
					region = sr:region_punjab
					region = sr:region_central_india
					}
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = india_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = india_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
						OR = {
							region = sr:region_madras
							region = sr:region_bengal
							region = sr:region_bombay
							region = sr:region_punjab
							region = sr:region_central_india
							}
					}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = india_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
							OR = {
								region = sr:region_madras
								region = sr:region_bengal
								region = sr:region_bombay
								region = sr:region_punjab
								region = sr:region_central_india
								}
							}
						}
					save_scope_as = india_subject_to_annex_scope

					scope:india_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {
									region = sr:region_madras
									region = sr:region_bengal
									region = sr:region_bombay
									region = sr:region_punjab
									region = sr:region_central_india
									}
							}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
						OR = {
							region = sr:region_madras
							region = sr:region_bengal
							region = sr:region_bombay
							region = sr:region_punjab
							region = sr:region_central_india
							}
					}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							#this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
							OR = {
								region = sr:region_madras
								region = sr:region_bengal
								region = sr:region_bombay
								region = sr:region_punjab
								region = sr:region_central_india
								}
							}
						}
					save_scope_as = india_subject_to_annex_scope

					scope:india_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {
									region = sr:region_madras
									region = sr:region_bengal
									region = sr:region_bombay
									region = sr:region_punjab
									region = sr:region_central_india
								}
							}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					OR = {
						region = sr:region_madras
						region = sr:region_bengal
						region = sr:region_bombay
						region = sr:region_punjab
						region = sr:region_central_india
						}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					OR = {
						region = sr:region_madras
						region = sr:region_bengal
						region = sr:region_bombay
						region = sr:region_punjab
						region = sr:region_central_india
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = india_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = india_subject_var
				}
				save_scope_as = india_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = india_subject_var
					NOT = {
						this = scope:india_subject_scope
					}
				}
				save_scope_as = india_subject_scope_2
			}
			scope:india_subject_scope = {
				annex = scope:india_subject_scope_2
			}
		}
	}
}
je_colonial_administration_button_expand_himalayas = {
	name = "je_colonial_administration_button_expand_himalayas"
	desc = "je_colonial_administration_button_expand_himalayas_desc"

	visible = { 
		country_is_from_india = no
		country_is_from_himalayas = no
		country_is_from_persia = no
		country_is_from_china = no
		any_subject_or_below = {
			has_variable = himalayas_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_himalayas}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_himalayas
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = himalayas_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = himalayas_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_himalayas}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = himalayas_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_himalayas}
						}
					save_scope_as = himalayas_subject_to_annex_scope

					scope:himalayas_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_himalayas}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_himalayas}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							#this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_himalayas}
						}
					save_scope_as = himalayas_subject_to_annex_scope

					scope:himalayas_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_himalayas}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_himalayas
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_himalayas
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = himalayas_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = himalayas_subject_var
				}
				save_scope_as = himalayas_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = himalayas_subject_var
					NOT = {
						this = scope:himalayas_subject_scope
					}
				}
				save_scope_as = himalayas_subject_scope_2
			}
			scope:himalayas_subject_scope = {
				annex = scope:himalayas_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_british_isles = {
	name = "je_colonial_administration_button_expand_british_isles"
	desc = "je_colonial_administration_button_expand_british_isles_desc"

	visible = { 
		country_is_from_british_isles = no
		any_subject_or_below = {
			has_variable = british_isles_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { 
						OR = {  
							region = sr:region_england
							region = sr:region_north_sea_coast }
						}
					}
			count >= 2
			}		
			any_scope_state = {
				OR = {
					region = sr:region_england
					region = sr:region_north_sea_coast
				}
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = british_isles_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = british_isles_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
						OR = {
							region = sr:region_england
							region = sr:region_north_sea_coast }
					}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = british_isles_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
							OR = {
							region = sr:region_england
							region = sr:region_north_sea_coast }
							}
						}
					save_scope_as = british_isles_subject_to_annex_scope

					scope:british_isles_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {
							region = sr:region_england
							region = sr:region_north_sea_coast }
								}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
						OR = {
							region = sr:region_england
							region = sr:region_north_sea_coast }
					}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = himalayas_subject_var
							#this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
								OR = {  region = sr:region_england
										region = sr:region_north_sea_coast }
							}
						}
					save_scope_as = british_isles_subject_to_annex_scope

					scope:british_isles_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = { region = sr:region_england
									   region = sr:region_north_sea_coast }
							}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					OR = {
						region = sr:region_england
						region = sr:region_north_sea_coast
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					OR = {
						region = sr:region_england
						region = sr:region_north_sea_coast
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = british_isles_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = british_isles_subject_var
				}
				save_scope_as = british_isles_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = british_isles_subject_var
					NOT = {
						this = scope:british_isles_subject_scope
					}
				}
				save_scope_as = british_isles_subject_scope_2
			}
			scope:british_isles_subject_scope = {
				annex = scope:british_isles_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_iberia = {
	name = "je_colonial_administration_button_expand_iberia"
	desc = "je_colonial_administration_button_expand_iberia_desc"

	visible = { 
		country_is_from_iberia = no
		country_is_from_france = no
		any_subject_or_below = {
			has_variable = iberia_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_iberia}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_iberia
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = iberia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = iberia_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_iberia}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = iberia_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_iberia}
						}
					save_scope_as = iberia_subject_to_annex_scope

					scope:iberia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_iberia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_iberia}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							#this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_iberia}
						}
					save_scope_as = iberia_subject_to_annex_scope

					scope:iberia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_iberia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_iberia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_iberia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = iberia_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = iberia_subject_var
				}
				save_scope_as = iberia_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = iberia_subject_var
					NOT = {
						this = scope:iberia_subject_scope
					}
				}
				save_scope_as = iberia_subject_scope_2
			}
			scope:iberia_subject_scope = {
				annex = scope:iberia_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_france = {
	name = "je_colonial_administration_button_expand_france"
	desc = "je_colonial_administration_button_expand_france_desc"

	visible = { 
		country_is_from_france = no
		country_is_from_iberia = no
		country_is_from_germany = no
		country_is_from_italy = no
		any_subject_or_below = {
			has_variable = france_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { 
						OR = {  
							region = sr:region_france
							region = sr:region_occitania }
						}
					}
			count >= 2
			}		
			any_scope_state = {
				OR = {
					region = sr:region_france
					region = sr:region_occitania
				}
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = france_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = france_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
						OR = {
							region = sr:region_france
							region = sr:region_occitania }
					}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = france_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
							OR = {
							region = sr:region_france
							region = sr:region_occitania }
							}
						}
					save_scope_as = france_subject_to_annex_scope

					scope:france_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {
							region = sr:region_france
							region = sr:region_occitania }
								}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
						OR = {
							region = sr:region_france
							region = sr:region_occitania }
					}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							#this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
								OR = {
									region = sr:region_france
									region = sr:region_occitania }
							}
						}
					save_scope_as = france_subject_to_annex_scope

					scope:france_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {
									region = sr:region_france
									region = sr:region_occitania }
							}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					OR = {
							region = sr:region_france
							region = sr:region_occitania
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					OR = {
							region = sr:region_france
							region = sr:region_occitania
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = france_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = france_subject_var
				}
				save_scope_as = france_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = france_subject_var
					NOT = {
						this = scope:france_subject_scope
					}
				}
				save_scope_as = france_subject_scope_2
			}
			scope:france_subject_scope = {
				annex = scope:france_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_germany = {
	name = "je_colonial_administration_button_expand_germany"
	desc = "je_colonial_administration_button_expand_germany_desc"

	visible = { 
		country_is_from_germany = no
		country_is_from_france = no
		country_is_from_italy = no
		country_is_from_danubia = no
		country_is_from_balkans = no
		country_is_from_poland = no
		country_is_from_nordic_states = no
		any_subject_or_below = {
			has_variable = germany_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { 
						OR = {  
							region = sr:region_rhine
							region = sr:region_north_germany
							region = sr:region_south_germany }
						}
					}
			count >= 2
			}		
			any_scope_state = {
				OR = {
							region = sr:region_rhine
							region = sr:region_north_germany
							region = sr:region_south_germany
				}
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = germany_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = germany_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
						OR = {
							region = sr:region_rhine
							region = sr:region_north_germany
							region = sr:region_south_germany }
					}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = germany_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
							OR = {
							region = sr:region_rhine
							region = sr:region_north_germany
							region = sr:region_south_germany }
							}
						}
					save_scope_as = germany_subject_to_annex_scope

					scope:germany_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {
							region = sr:region_rhine
							region = sr:region_north_germany
							region = sr:region_south_germany }
								}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
						OR = {
							region = sr:region_rhine
							region = sr:region_north_germany
							region = sr:region_south_germany }
					}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							#this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
								OR = {
									region = sr:region_rhine
									region = sr:region_north_germany
									region = sr:region_south_germany }
							}
						}
					save_scope_as = germany_subject_to_annex_scope

					scope:germany_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {
									region = sr:region_rhine
									region = sr:region_north_germany
									region = sr:region_south_germany }
							}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					OR = {
							region = sr:region_rhine
							region = sr:region_north_germany
							region = sr:region_south_germany
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					OR = {
							region = sr:region_rhine
							region = sr:region_north_germany
							region = sr:region_south_germany
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = germany_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = germany_subject_var
				}
				save_scope_as = germany_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = germany_subject_var
					NOT = {
						this = scope:germany_subject_scope
					}
				}
				save_scope_as = germany_subject_scope_2
			}
			scope:germany_subject_scope = {
				annex = scope:germany_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_italy = {
	name = "je_colonial_administration_button_expand_italy"
	desc = "je_colonial_administration_button_expand_italy_desc"

	visible = { 
		country_is_from_italy = no
		country_is_from_france = no
		country_is_from_germany = no
		country_is_from_balkans = no
		any_subject_or_below = {
			has_variable = italy_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_italy}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_italy
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = italy_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = italy_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_italy}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = italy_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_italy}
						}
					save_scope_as = italy_subject_to_annex_scope

					scope:italy_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_italy}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_italy}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							#this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_italy}
						}
					save_scope_as = italy_subject_to_annex_scope

					scope:italy_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_italy}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_italy
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_italy
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = italy_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = italy_subject_var
				}
				save_scope_as = italy_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = italy_subject_var
					NOT = {
						this = scope:italy_subject_scope
					}
				}
				save_scope_as = italy_subject_scope_2
			}
			scope:italy_subject_scope = {
				annex = scope:italy_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_balkans = {
	name = "je_colonial_administration_button_expand_balkans"
	desc = "je_colonial_administration_button_expand_balkans_desc"

	visible = { 
		country_is_from_balkans = no
		country_is_from_italy = no
		country_is_from_germany = no
		country_is_from_danubia = no
		country_is_from_anatolia = no
		any_subject_or_below = {
			has_variable = balkans_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_balkans}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_balkans
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = balkans_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = balkans_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_balkans}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = balkans_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_balkans}
						}
					save_scope_as = balkans_subject_to_annex_scope

					scope:balkans_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_balkans}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_balkans}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							#this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_balkans}
						}
					save_scope_as = balkans_subject_to_annex_scope

					scope:balkans_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_balkans}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_balkans
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_balkans
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = balkans_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = balkans_subject_var
				}
				save_scope_as = balkans_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = balkans_subject_var
					NOT = {
						this = scope:balkans_subject_scope
					}
				}
				save_scope_as = balkans_subject_scope_2
			}
			scope:balkans_subject_scope = {
				annex = scope:balkans_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_nordic_states = {
	name = "je_colonial_administration_button_expand_nordic_states"
	desc = "je_colonial_administration_button_expand_nordic_states_desc"

	visible = { 
		country_is_from_nordic_states = no
		country_is_from_germany = no
		country_is_from_russia = no
		any_subject_or_below = {
			has_variable = nordic_states_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { 
						OR = {  
							region = sr:region_baltic
							region = sr:region_finland }
						}
					}
			count >= 2
			}		
			any_scope_state = {
				OR = {
							region = sr:region_baltic
							region = sr:region_finland
				}
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = nordic_states_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = nordic_states_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
						OR = {
							region = sr:region_baltic
							region = sr:region_finland }
					}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = nordic_states_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
							OR = {
							region = sr:region_baltic
							region = sr:region_finland }
							}
						}
					save_scope_as = nordic_states_subject_to_annex_scope

					scope:nordic_states_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {
							region = sr:region_baltic
							region = sr:region_finland }
								}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
						OR = {
							region = sr:region_baltic
							region = sr:region_finland }
					}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							#this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
								OR = {
							region = sr:region_baltic
							region = sr:region_finland }
							}
						}
					save_scope_as = nordic_states_subject_to_annex_scope

					scope:nordic_states_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {
							region = sr:region_baltic
							region = sr:region_finland }
							}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					OR = {
							region = sr:region_baltic
							region = sr:region_finland
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					OR = {
							region = sr:region_baltic
							region = sr:region_finland
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = nordic_states_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = nordic_states_subject_var
				}
				save_scope_as = nordic_states_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = nordic_states_subject_var
					NOT = {
						this = scope:nordic_states_subject_scope
					}
				}
				save_scope_as = nordic_states_subject_scope_2
			}
			scope:nordic_states_subject_scope = {
				annex = scope:nordic_states_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_russia = {
	name = "je_colonial_administration_button_expand_russia"
	desc = "je_colonial_administration_button_expand_russia_desc"

	visible = { 
		country_is_from_russia = no
		country_is_from_poland = no
		country_is_from_baltic_states = no
		country_is_from_nordic_states = no
		country_is_from_danubia = no
		country_is_from_caucasus = no
		any_subject_or_below = {
			has_variable = russia_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { 
						OR = {  
							region = sr:region_russia
							region = sr:region_dnieper
							region = sr:region_belarus
							region = sr:region_arctic_russia
							region = sr:region_urals }
						}
					}
			count >= 2
			}		
			any_scope_state = {
				OR = {
							region = sr:region_russia
							region = sr:region_dnieper
							region = sr:region_belarus
							region = sr:region_arctic_russia
							region = sr:region_urals
				}
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = russia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = russia_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
						OR = {
							region = sr:region_russia
							region = sr:region_dnieper
							region = sr:region_belarus
							region = sr:region_arctic_russia
							region = sr:region_urals }
					}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = russia_subject_var  }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
							OR = {
							region = sr:region_russia
							region = sr:region_dnieper
							region = sr:region_belarus
							region = sr:region_arctic_russia
							region = sr:region_urals }
							}
						}
					save_scope_as = russia_subject_to_annex_scope

					scope:russia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {
							region = sr:region_russia
							region = sr:region_dnieper
							region = sr:region_belarus
							region = sr:region_arctic_russia
							region = sr:region_urals }
								}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { 
						OR = {
							region = sr:region_russia
							region = sr:region_dnieper
							region = sr:region_belarus
							region = sr:region_arctic_russia
							region = sr:region_urals }
					}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							#this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { 
								OR = {
							region = sr:region_russia
							region = sr:region_dnieper
							region = sr:region_belarus
							region = sr:region_arctic_russia
							region = sr:region_urals }
							}
						}
					save_scope_as = russia_subject_to_annex_scope

					scope:russia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { 
								OR = {
							region = sr:region_russia
							region = sr:region_dnieper
							region = sr:region_belarus
							region = sr:region_arctic_russia
							region = sr:region_urals }
							}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					OR = {
							region = sr:region_russia
							region = sr:region_dnieper
							region = sr:region_belarus
							region = sr:region_arctic_russia
							region = sr:region_urals
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					OR = {
							region = sr:region_russia
							region = sr:region_dnieper
							region = sr:region_belarus
							region = sr:region_arctic_russia
							region = sr:region_urals
					}
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = russia_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = russia_subject_var
				}
				save_scope_as = russia_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = russia_subject_var
					NOT = {
						this = scope:russia_subject_scope
					}
				}
				save_scope_as = russia_subject_scope_2
			}
			scope:russia_subject_scope = {
				annex = scope:russia_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_danubia = {
	name = "je_colonial_administration_button_expand_danubia"
	desc = "je_colonial_administration_button_expand_danubia_desc"

	visible = { 
		country_is_from_danubia = no
		country_is_from_germany = no
		country_is_from_balkans = no
		country_is_from_poland = no
		country_is_from_russia = no
		any_subject_or_below = {
			has_variable = danubia_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_danubia}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_danubia
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = danubia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = danubia_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_danubia}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = danubia_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_danubia}
						}
					save_scope_as = danubia_subject_to_annex_scope

					scope:danubia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_danubia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_danubia}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							#this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_danubia}
						}
					save_scope_as = danubia_subject_to_annex_scope

					scope:danubia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_danubia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_danubia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_danubia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = danubia_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = danubia_subject_var
				}
				save_scope_as = danubia_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = danubia_subject_var
					NOT = {
						this = scope:danubia_subject_scope
					}
				}
				save_scope_as = danubia_subject_scope_2
			}
			scope:danubia_subject_scope = {
				annex = scope:danubia_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_poland = {
	name = "je_colonial_administration_button_expand_poland"
	desc = "je_colonial_administration_button_expand_poland_desc"

	visible = { 
		country_is_from_poland = no
		country_is_from_russia = no
		country_is_from_germany = no
		country_is_from_danubia = no
		country_is_from_baltic_states = no
		any_subject_or_below = {
			has_variable = poland_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_poland}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_poland
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = poland_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = poland_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_poland}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = poland_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_poland}
						}
					save_scope_as = poland_subject_to_annex_scope

					scope:poland_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_poland}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_poland}
				}
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							#this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_poland}
						}
					save_scope_as = poland_subject_to_annex_scope

					scope:poland_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_poland}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_poland
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_poland
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = poland_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = poland_subject_var
				}
				save_scope_as = poland_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = poland_subject_var
					NOT = {
						this = scope:poland_subject_scope
					}
				}
				save_scope_as = poland_subject_scope_2
			}
			scope:poland_subject_scope = {
				annex = scope:poland_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_caucasus = {
	name = "je_colonial_administration_button_expand_caucasus"
	desc = "je_colonial_administration_button_expand_caucasus_desc"

	visible = { 
		country_is_from_caucasus = no
		country_is_from_russia = no
		country_is_from_anatolia = no
		any_subject_or_below = {
			has_variable = caucasus_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_caucasus}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_caucasus
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = caucasus_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = caucasus_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_caucasus}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = caucasus_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_caucasus}
						}
					save_scope_as = caucasus_subject_to_annex_scope

					scope:caucasus_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_caucasus}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_caucasus}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							#this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_caucasus}
						}
					save_scope_as = caucasus_subject_to_annex_scope

					scope:caucasus_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_caucasus}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_caucasus
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_caucasus
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = caucasus_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = caucasus_subject_var
				}
				save_scope_as = caucasus_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = caucasus_subject_var
					NOT = {
						this = scope:caucasus_subject_scope
					}
				}
				save_scope_as = caucasus_subject_scope_2
			}
			scope:caucasus_subject_scope = {
				annex = scope:caucasus_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_anatolia = {
	name = "je_colonial_administration_button_expand_anatolia"
	desc = "je_colonial_administration_button_expand_anatolia_desc"

	visible = { 
		country_is_from_anatolia = no
		country_is_from_caucasus = no
		country_is_from_balkans = no
		any_subject_or_below = {
			has_variable = anatolia_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_anatolia}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_anatolia
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = anatolia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = anatolia_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_anatolia}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = anatolia_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_anatolia}
						}
					save_scope_as = anatolia_subject_to_annex_scope

					scope:anatolia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_anatolia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_anatolia}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							#this = has_variable = anatolia_subject_var
							this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_anatolia}
						}
					save_scope_as = anatolia_subject_to_annex_scope

					scope:anatolia_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_anatolia}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_anatolia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_anatolia
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = anatolia_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = anatolia_subject_var
				}
				save_scope_as = anatolia_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = anatolia_subject_var
					NOT = {
						this = scope:anatolia_subject_scope
					}
				}
				save_scope_as = anatolia_subject_scope_2
			}
			scope:anatolia_subject_scope = {
				annex = scope:anatolia_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_baltic_states = {
	name = "je_colonial_administration_button_expand_baltic_states"
	desc = "je_colonial_administration_button_expand_baltic_states_desc"

	visible = { 
		country_is_from_baltic_states = no
		country_is_from_russia = no
		country_is_from_poland = no
		any_subject_or_below = {
			has_variable = baltic_states_subject_var
		}
	}

	possible = {
		OR = {
			any_subject_or_below = {
				AND = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
						}
					any_scope_state = { region = sr:region_baltic_states}
					}
			count >= 2
			}		
			any_scope_state = {
				region = sr:region_baltic_states
				is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = baltic_states_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		value = 100
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = baltic_states_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_baltic_states}
				}				
			}
			every_country = {
					limit = {
						NOT = { this =  has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_baltic_states}
						}
					save_scope_as = baltic_states_subject_to_annex_scope

					scope:baltic_states_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_baltic_states}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_subject_or_below = {
					OR = {
						is_subject_type = subject_type_puppet 
						is_subject_type = subject_type_dominion
					}
					any_scope_state = { region = sr:region_baltic_states}
				}				
			}
			every_country = {
					limit = {
						OR = {  this = has_variable = senegal_subject_var 
							this = has_variable = niger_subject_var 
							this = has_variable = ethiopia_subject_var 
							this = has_variable = zanj_subject_var 
							this = has_variable = southern_africa_subject_var 
							this = has_variable = congo_subject_var 
							this = has_variable = nile_basin_subject_var 
							this = has_variable = north_africa_subject_var 
							this = has_variable = indochina_subject_var 
							this = has_variable = indonesia_subject_var 
							this = has_variable = china_subject_var 
							this = has_variable = manchuria_subject_var 
							this = has_variable = japan_subject_var 
							this = has_variable = siberia_subject_var 
							this = has_variable = oceania_subject_var 
							this = has_variable = canada_subject_var 
							this = has_variable = new_england_subject_var
							this = has_variable = pacific_coast_subject_var
							this = has_variable = great_plains_subject_var
							this = has_variable = the_midwest_subject_var
							this = has_variable = dixie_subject_var
							this = has_variable = mexico_subject_var
							this = has_variable = central_america_subject_var
							this = has_variable = caribbean_subject_var
							this = has_variable = brazil_subject_var 
							this = has_variable = andes_subject_var
							this = has_variable = la_plata_subject_var
							this = has_variable = gran_colombia_subject_var
							this = has_variable = arabic_subject_var
							this = has_variable = persia_subject_var
							this = has_variable = central_asia_subject_var
							this = has_variable = india_subject_var
							this = has_variable = himalayas_subject_var
							this = has_variable = british_isles_subject_var
							this = has_variable = iberia_subject_var
							this = has_variable = france_subject_var
							this = has_variable = germany_subject_var
							this = has_variable = italy_subject_var
							this = has_variable = balkans_subject_var
							this = has_variable = nordic_states_subject_var
							this = has_variable = russia_subject_var
							this = has_variable = danubia_subject_var
							this = has_variable = poland_subject_var
							this = has_variable = caucasus_subject_var
							this = has_variable = anatolia_subject_var
							#this = has_variable = baltic_states_subject_var }
						is_subject_of = ROOT
						OR = {
							is_subject_type = subject_type_puppet
							is_subject_type = subject_type_vassal
							is_subject_type = subject_type_dominion
						}
						any_scope_state = { region = sr:region_baltic_states}
						}
						save_scope_as = baltic_states_subject_to_annex_scope

						scope:baltic_states_subject_to_annex_scope = { 
						every_scope_state = {
							limit = { region = sr:region_baltic_states}
							set_state_owner = scope:colonial_transfer_subject_scope
								}
					 	}
				}
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_baltic_states
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_baltic_states
					is_under_colonization = no
					NOR = { is_homeland_of_country_cultures = ROOT
						is_incorporated = yes }
				}
				set_state_owner = scope:colonial_transfer_subject_scope
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = baltic_states_subject_var
					count >= 2
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = baltic_states_subject_var
				}
				save_scope_as = baltic_states_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = baltic_states_subject_var
					NOT = {
						this = scope:baltic_states_subject_scope
					}
				}
				save_scope_as = baltic_states_subject_scope_2
			}
			scope:baltic_states_subject_scope = {
				annex = scope:baltic_states_subject_scope_2
			}
		}
	}
}