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

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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 = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}

		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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 = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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 = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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 = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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 = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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_madras = {
	name = "je_colonial_administration_button_madras"

	visible = {
		any_scope_state = {
			region = sr:region_madras
		}
		NOT = {
			any_subject_or_below = {
				has_variable = madras_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_madras
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_madras
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_madras
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_madras
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_madras
			}
			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 = madras_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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_bengal = {
	name = "je_colonial_administration_button_bengal"

	visible = {
		any_scope_state = {
			region = sr:region_bengal
		}
		NOT = {
			any_subject_or_below = {
				has_variable = bengal_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_bengal
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_bengal
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_bengal
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_bengal
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_bengal
			}
			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 = bengal_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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_bombay = {
	name = "je_colonial_administration_button_bombay"

	visible = {
		any_scope_state = {
			region = sr:region_bombay
		}
		NOT = {
			any_subject_or_below = {
				has_variable = bombay_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_bombay
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_bombay
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_bombay
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_bombay
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_bombay
			}
			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 = bombay_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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_punjab = {
	name = "je_colonial_administration_button_punjab"

	visible = {
		any_scope_state = {
			region = sr:region_punjab
		}
		NOT = {
			any_subject_or_below = {
				has_variable = punjab_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_punjab
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_punjab
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_punjab
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_punjab
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_punjab
			}
			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 = punjab_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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_india = {
	name = "je_colonial_administration_button_central_india"

	visible = {
		any_scope_state = {
			region = sr:region_central_india
		}
		NOT = {
			any_subject_or_below = {
				has_variable = central_india_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_central_india
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_central_india
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					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 = {
					region = sr:region_central_india
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_central_india
			}
			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_india_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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_west_siberia = {
	name = "je_colonial_administration_button_west_siberia"

	visible = {
		any_scope_state = {
			region = sr:region_west_siberia
		}
		NOT = {
			any_subject_or_below = {
				has_variable = west_siberia_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_west_siberia
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_west_siberia
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					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 = {
					region = sr:region_west_siberia
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_west_siberia
			}
			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 = west_siberia_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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_east_siberia = {
	name = "je_colonial_administration_button_east_siberia"

	visible = {
		any_scope_state = {
			region = sr:region_east_siberia
		}
		NOT = {
			any_subject_or_below = {
				has_variable = east_siberia_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_east_siberia
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_east_siberia
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_east_siberia
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_east_siberia
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_east_siberia
			}
			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 = east_siberia_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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_china = {
	name = "je_colonial_administration_button_north_china"

	visible = {
		any_scope_state = {
			region = sr:region_north_china
		}
		NOT = {
			any_subject_or_below = {
				has_variable = north_china_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_north_china
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_north_china
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					region = sr:region_north_china
					has_decree = decree_greener_grass_campaign
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		else = {
			random_scope_state = {
				limit = {
					region = sr:region_north_china
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_north_china
			}
			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_china_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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_south_china = {
	name = "je_colonial_administration_button_south_china"

	visible = {
		any_scope_state = {
			region = sr:region_south_china
		}
		NOT = {
			any_subject_or_below = {
				has_variable = south_china_subject_var
			}
		}
	}

	possible = {
		any_scope_state = {
			region = sr:region_south_china
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	effect = {
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_south_china
					has_decree = decree_greener_grass_campaign
				}
			}
			random_scope_state = {
				limit = {
					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 = {
					region = sr:region_south_china
				}
				save_scope_as = newly_formed_colonial_nation_capital_scope
			}
		}
		every_scope_state = {
			limit = {
				region = sr:region_south_china
			}
			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 = south_china_subject_var
				set_variable = {
					name = newly_formed_colonial_nation_var
					months = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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"

	visible = {
		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
		}

		#prevents splitting off during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no

		custom_tooltip = {
			text = colonial_administration_cooldown
			NOT = {
				any_subject_or_below = {
					has_variable = newly_formed_colonial_nation_var
				}
			}
		}
		
		
	}

	ai_chance = {
		base = 0
	}

	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
			}
			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 = 1
				}
				every_scope_state = {
					remove_variable = state_to_cede
				}
				activate_law = law_type:law_presidential_republic
				activate_law = law_type:law_oligarchy
				activate_law = law_type:law_cultural_exclusion
				activate_law = law_type:law_freedom_of_conscience
				activate_law = law_type:law_appointed_bureaucrats
				activate_law = law_type:law_national_militia
				activate_law = law_type:law_no_home_affairs
				activate_law = law_type:law_extraction_economy
				activate_law = law_type:law_isolationism
				activate_law = law_type:law_per_capita_based_taxation
				activate_law = law_type:law_serfdom
				activate_law = law_type:law_no_colonial_affairs
				activate_law = law_type:law_no_police
				activate_law = law_type:law_no_schools
				activate_law = law_type:law_no_health_system
				activate_law = law_type:law_censorship
				activate_law = law_type:law_no_workers_rights
				activate_law = law_type:law_child_labor_allowed
				activate_law = law_type:law_no_womens_rights
				activate_law = law_type:law_no_social_security
				activate_law = law_type:law_closed_borders
				activate_law = law_type:law_debt_slavery
				add_modifier = {
					name = colonial_administration
				}
			}
		}
		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 = {
		any_subject_or_below = {
			has_variable = senegal_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_senegal
				is_under_colonization = no
			}

			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = senegal_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_senegal
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_senegal
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = senegal_subject_var
				}
			}
			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 = {
		any_subject_or_below = {
			has_variable = niger_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_niger
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = niger_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_niger
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_niger
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = niger_subject_var
				}
			}
			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 = {
		any_subject_or_below = {
			has_variable = ethiopia_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_ethiopia
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = ethiopia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_ethiopia
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_ethiopia
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = ethiopia_subject_var
				}
			}
			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 = {
		any_subject_or_below = {
			has_variable = zanj_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_zanj
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = zanj_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_zanj
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_zanj
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = zanj_subject_var
				}
			}
			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 = {
		any_subject_or_below = {
			has_variable = southern_africa_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_southern_africa
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = southern_africa_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_southern_africa
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_southern_africa
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = southern_africa_subject_var
				}
			}
			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 = {
		any_subject_or_below = {
			has_variable = congo_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_congo
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = congo_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_congo
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_congo
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = congo_subject_var
				}
			}
			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_north_africa = {
	name = "je_colonial_administration_button_expand_north_africa"

	visible = {
		any_subject_or_below = {
			has_variable = north_africa_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_north_africa
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = north_africa_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_north_africa
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_north_africa
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = north_africa_subject_var
				}
			}
			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_arabic = {
	name = "je_colonial_administration_button_expand_arabic"

	visible = {
		any_subject_or_below = {
			has_variable = arabic_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_arabic
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = arabic_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_arabic
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_arabic
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = arabic_subject_var
				}
			}
			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"

	visible = {
		any_subject_or_below = {
			has_variable = persia_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_persia
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = persia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_persia
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_persia
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = persia_subject_var
				}
			}
			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_madras = {
	name = "je_colonial_administration_button_expand_madras"

	visible = {
		any_subject_or_below = {
			has_variable = madras_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_madras
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = madras_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = madras_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_madras
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_madras
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = madras_subject_var
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = madras_subject_var
				}
				save_scope_as = madras_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = madras_subject_var
					NOT = {
						this = scope:madras_subject_scope
					}
				}
				save_scope_as = madras_subject_scope_2
			}
			scope:madras_subject_scope = {
				annex = scope:madras_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_bengal = {
	name = "je_colonial_administration_button_expand_bengal"

	visible = {
		any_subject_or_below = {
			has_variable = bengal_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_bengal
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = bengal_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = bengal_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_bengal
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_bengal
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = bengal_subject_var
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = bengal_subject_var
				}
				save_scope_as = bengal_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = bengal_subject_var
					NOT = {
						this = scope:bengal_subject_scope
					}
				}
				save_scope_as = bengal_subject_scope_2
			}
			scope:bengal_subject_scope = {
				annex = scope:bengal_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_bombay = {
	name = "je_colonial_administration_button_expand_bombay"

	visible = {
		any_subject_or_below = {
			has_variable = bombay_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_bombay
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = bombay_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = bombay_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_bombay
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_bombay
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = bombay_subject_var
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = bombay_subject_var
				}
				save_scope_as = bombay_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = bombay_subject_var
					NOT = {
						this = scope:bombay_subject_scope
					}
				}
				save_scope_as = bombay_subject_scope_2
			}
			scope:bombay_subject_scope = {
				annex = scope:bombay_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_punjab = {
	name = "je_colonial_administration_button_expand_punjab"

	visible = {
		any_subject_or_below = {
			has_variable = punjab_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_punjab
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = punjab_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = punjab_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_punjab
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_punjab
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = punjab_subject_var
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = punjab_subject_var
				}
				save_scope_as = punjab_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = punjab_subject_var
					NOT = {
						this = scope:punjab_subject_scope
					}
				}
				save_scope_as = punjab_subject_scope_2
			}
			scope:punjab_subject_scope = {
				annex = scope:punjab_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_central_india = {
	name = "je_colonial_administration_button_expand_central_india"

	visible = {
		any_subject_or_below = {
			has_variable = central_india_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_central_india
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = central_india_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = central_india_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_central_india
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_central_india
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = central_india_subject_var
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = central_india_subject_var
				}
				save_scope_as = central_india_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = central_india_subject_var
					NOT = {
						this = scope:central_india_subject_scope
					}
				}
				save_scope_as = central_india_subject_scope_2
			}
			scope:central_india_subject_scope = {
				annex = scope:central_india_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_himalayas = {
	name = "je_colonial_administration_button_expand_himalayas"

	visible = {
		any_subject_or_below = {
			has_variable = himalayas_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_himalayas
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = himalayas_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_himalayas
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_himalayas
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = himalayas_subject_var
				}
			}
			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_central_asia = {
	name = "je_colonial_administration_button_expand_central_asia"

	visible = {
		any_subject_or_below = {
			has_variable = central_asia_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_central_asia
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = central_asia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_central_asia
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_central_asia
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = central_asia_subject_var
				}
			}
			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_west_siberia = {
	name = "je_colonial_administration_button_expand_west_siberia"

	visible = {
		any_subject_or_below = {
			has_variable = west_siberia_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_west_siberia
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = west_siberia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = west_siberia_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_west_siberia
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_west_siberia
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = west_siberia_subject_var
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = west_siberia_subject_var
				}
				save_scope_as = west_siberia_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = west_siberia_subject_var
					NOT = {
						this = scope:west_siberia_subject_scope
					}
				}
				save_scope_as = west_siberia_subject_scope_2
			}
			scope:west_siberia_subject_scope = {
				annex = scope:west_siberia_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_east_siberia = {
	name = "je_colonial_administration_button_expand_east_siberia"

	visible = {
		any_subject_or_below = {
			has_variable = east_siberia_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_east_siberia
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = east_siberia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = east_siberia_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_east_siberia
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_east_siberia
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = east_siberia_subject_var
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = east_siberia_subject_var
				}
				save_scope_as = east_siberia_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = east_siberia_subject_var
					NOT = {
						this = scope:east_siberia_subject_scope
					}
				}
				save_scope_as = east_siberia_subject_scope_2
			}
			scope:east_siberia_subject_scope = {
				annex = scope:east_siberia_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_manchuria = {
	name = "je_colonial_administration_button_expand_manchuria"

	visible = {
		any_subject_or_below = {
			has_variable = manchuria_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_manchuria
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = manchuria_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_manchuria
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_manchuria
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = manchuria_subject_var
				}
			}
			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"

	visible = {
		any_subject_or_below = {
			has_variable = japan_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_japan
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = japan_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_japan
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_japan
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = japan_subject_var
				}
			}
			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_north_china = {
	name = "je_colonial_administration_button_expand_north_china"

	visible = {
		any_subject_or_below = {
			has_variable = north_china_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_north_china
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = north_china_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = north_china_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_north_china
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_north_china
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = north_china_subject_var
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = north_china_subject_var
				}
				save_scope_as = north_china_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = north_china_subject_var
					NOT = {
						this = scope:north_china_subject_scope
					}
				}
				save_scope_as = north_china_subject_scope_2
			}
			scope:north_china_subject_scope = {
				annex = scope:north_china_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_south_china = {
	name = "je_colonial_administration_button_expand_south_china"

	visible = {
		any_subject_or_below = {
			has_variable = south_china_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_south_china
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = south_china_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	effect = {
		custom_tooltip = {
			text = transfer_stuff_to_subject_tt
		}
		random_subject_or_below = {
			limit = {
				has_variable = south_china_subject_var
			}
			save_scope_as = colonial_transfer_subject_scope
		}
		if = {
			limit = {
				any_scope_state = {
					region = sr:region_south_china
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_south_china
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = south_china_subject_var
				}
			}
			random_subject_or_below = {
				limit = {
					has_variable = south_china_subject_var
				}
				save_scope_as = south_china_subject_scope
			}
			random_subject_or_below = {
				limit = {
					has_variable = south_china_subject_var
					NOT = {
						this = scope:south_china_subject_scope
					}
				}
				save_scope_as = south_china_subject_scope_2
			}
			scope:south_china_subject_scope = {
				annex = scope:south_china_subject_scope_2
			}
		}
	}
}

je_colonial_administration_button_expand_indochina = {
	name = "je_colonial_administration_button_expand_indochina"

	visible = {
		any_subject_or_below = {
			has_variable = indochina_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_indochina
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = indochina_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_indochina
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_indochina
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = indochina_subject_var
				}
			}
			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"

	visible = {
		any_subject_or_below = {
			has_variable = indonesia_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_indonesia
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = indonesia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_indonesia
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_indonesia
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = indonesia_subject_var
				}
			}
			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_oceania = {
	name = "je_colonial_administration_button_expand_oceania"

	visible = {
		any_subject_or_below = {
			has_variable = oceania_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_oceania
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = oceania_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_oceania
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_oceania
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = oceania_subject_var
				}
			}
			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_pacific_coast = {
	name = "je_colonial_administration_button_expand_pacific_coast"

	visible = {
		any_subject_or_below = {
			has_variable = pacific_coast_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_pacific_coast
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = pacific_coast_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_pacific_coast
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_pacific_coast
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = pacific_coast_subject_var
				}
			}
			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_canada = {
	name = "je_colonial_administration_button_expand_canada"

	visible = {
		any_subject_or_below = {
			has_variable = canada_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_canada
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = canada_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_canada
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_canada
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = canada_subject_var
				}
			}
			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_great_plains = {
	name = "je_colonial_administration_button_expand_great_plains"

	visible = {
		any_subject_or_below = {
			has_variable = great_plains_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_great_plains
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = great_plains_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_great_plains
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_great_plains
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = great_plains_subject_var
				}
			}
			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"

	visible = {
		any_subject_or_below = {
			has_variable = the_midwest_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_the_midwest
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = the_midwest_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_the_midwest
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_the_midwest
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = the_midwest_subject_var
				}
			}
			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_new_england = {
	name = "je_colonial_administration_button_expand_new_england"

	visible = {
		any_subject_or_below = {
			has_variable = new_england_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_new_england
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = new_england_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_new_england
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_new_england
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = new_england_subject_var
				}
			}
			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_dixie = {
	name = "je_colonial_administration_button_expand_dixie"

	visible = {
		any_subject_or_below = {
			has_variable = dixie_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_dixie
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = dixie_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_dixie
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_dixie
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = dixie_subject_var
				}
			}
			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"

	visible = {
		any_subject_or_below = {
			has_variable = mexico_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_mexico
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = mexico_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_mexico
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_mexico
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = mexico_subject_var
				}
			}
			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"

	visible = {
		any_subject_or_below = {
			has_variable = central_america_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_central_america
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = central_america_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_central_america
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_central_america
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = central_america_subject_var
				}
			}
			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"

	visible = {
		any_subject_or_below = {
			has_variable = caribbean_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_caribbean
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = caribbean_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_caribbean
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_caribbean
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = caribbean_subject_var
				}
			}
			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_gran_colombia = {
	name = "je_colonial_administration_button_expand_gran_colombia"

	visible = {
		any_subject_or_below = {
			has_variable = gran_colombia_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_gran_colombia
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = gran_colombia_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_gran_colombia
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_gran_colombia
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = gran_colombia_subject_var
				}
			}
			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_brazil = {
	name = "je_colonial_administration_button_expand_brazil"

	visible = {
		any_subject_or_below = {
			has_variable = brazil_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_brazil
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = brazil_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_brazil
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_brazil
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = brazil_subject_var
				}
			}
			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"

	visible = {
		any_subject_or_below = {
			has_variable = andes_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_andes
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = andes_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_andes
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_andes
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = andes_subject_var
				}
			}
			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"

	visible = {
		any_subject_or_below = {
			has_variable = la_plata_subject_var
		}
	}

	possible = {
		#prevents expanding during diplo play or war as it invalidates wargoals. is_at_war is there for clarity for players even though it's technically included in the former
		is_diplomatic_play_committed_participant = no
		is_at_war = no
		
		OR = {
			any_scope_state = {
				region = sr:region_la_plata
				is_under_colonization = no
			}
			custom_tooltip = {
				text = colonial_transfer_two_subjects_tt
				any_subject_or_below = {
					has_variable = la_plata_subject_var
					count >= 2
				}
			}
		}
	}

	ai_chance = {
		base = 0
	}

	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_scope_state = {
					region = sr:region_la_plata
				}
			}
			every_scope_state = {
				limit = {
					region = sr:region_la_plata
				}
				set_state_owner = scope:colonial_transfer_subject_scope
				set_state_type = incorporated
			}
		}
		if = {
			limit = {
				any_subject_or_below = {
					has_variable = la_plata_subject_var
				}
			}
			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
			}
		}
	}
}