afr_scramble_for_africa={
	afr_annex_senegal={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Senegal
			NOT={has_global_flag = BC_Senegal_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			set_global_flag = BC_Senegal_Colonised
			every_state={#tribes are subsumed
				limit={
					is_in_senegal = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_senegal = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_senegal = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_senegal = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_senegal = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_senegal = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
					is_in_senegal = yes
					owner={
						
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_senegal = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_senegal = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_manuritania={
		available = {			
		}
		visible={
			has_country_flag = BC_Granted_Manuritania
			NOT={has_global_flag = BC_Manuritania_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_manuritania = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_manuritania = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_manuritania = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_manuritania = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_manuritania = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_manuritania = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
					is_in_manuritania = yes
					owner={
						
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_manuritania = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_manuritania = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_guinea={
		available = {		
		}
		visible={
			has_country_flag = BC_Granted_Guinea
			NOT={has_global_flag = BC_Guinea_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_guinea = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_guinea = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_guinea = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_guinea = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_guinea = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_guinea = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
					is_in_guinea = yes
					owner={
						
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_guinea = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_guinea = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_sierra_leone={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Sierra_Leone
			NOT={has_global_flag = BC_Sierra_Leone_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_sierra_leone = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_sierra_leone = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_sierra_leone = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_sierra_leone = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_sierra_leone = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_sierra_leone = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_sierra_leone = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_sierra_leone = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_sierra_leone = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_ivory_coast={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Ivory_Coast
			NOT={has_global_flag = BC_Ivory_Coast_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_ivory_coast = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_ivory_coast = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_ivory_coast = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_ivory_coast = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_ivory_coast = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_ivory_coast = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_ivory_coast = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_ivory_coast = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_ivory_coast = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_ghana={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Ghana
			NOT={has_global_flag = BC_Ghana_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_ghana = yes
					NOT={
						owner={
							OR={
								tag = ASH
								tag = ROOT
							}
						}	
					}
				}
				ROOT={transfer_state =PREV}
				if={
					limit={
						owner = {NOT={}}
					}
					owner={add_political_power = 100}
				}
			}
			declare_war_on = {
				target = ASH
				type = take_claimed_state
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_togo={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Togo
			NOT={has_global_flag = BC_Togo_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_togo = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_togo = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_togo = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_togo = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_togo = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_togo = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_togo = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_togo = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_togo = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_benin={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Benin
			NOT={has_global_flag = BC_Benin_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_benin = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_benin = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_benin = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_benin = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_benin = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_benin = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_benin = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_benin = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_benin = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_nigeria={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Nigeria
			NOT={has_global_flag = BC_Nigeria_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_nigeria = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
						}
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_nigeria = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_nigeria = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_nigeria = yes
					is_capital = no
					owner={
						
						OR={
							is_ai = yes
						}
						NOT={tag= SKT}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_nigeria = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_nigeria = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_nigeria = yes
					owner={
						
						NOT={tag= SKT}
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_nigeria = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_nigeria = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_equatorial_africa={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Equatorial_Africa
			NOT={has_global_flag = BC_Equatorial_Africa_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_equatorial_africa = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_equatorial_africa = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_equatorial_africa = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_equatorial_africa = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_equatorial_africa = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_equatorial_africa = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_equatorial_africa = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_equatorial_africa = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_equatorial_africa = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_gabon={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Gabon
			NOT={has_global_flag = BC_Gabon_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_gabon = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_gabon = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_gabon = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_gabon = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_gabon = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_gabon = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_gabon = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_gabon = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_gabon = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_kongo={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Kongo
			NOT={has_global_flag = BC_Kongo_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			if={##congo free state
				limit={
					tag = BEL
				}
				ZAI={
					set_cosmetic_tag = ZAI_CFS
				}
				every_state={#tribes are subsumed
					limit={
						is_in_kongo = yes
						owner={
							OR={
								tag = AFR
								tag = UCT
								
							}
							is_ai = yes
							NOT={
								is_subject_of = ZAN
							}
						}
					}
					ZAI={transfer_state = PREV}
					add_core_of = ZAI
				}
			}
			else={
				annex_country = {target = ZAI transfer_troops = no}
				every_state={#tribes are subsumed
					limit={
						is_in_kongo = yes
						owner={
							
						}
						owner={
							is_ai = yes
						}
					}
					if={
						limit={
							any_country={
								is_subject_of = ROOT
								capital_scope={
									is_in_kongo = yes
								}
							}
						}
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_kongo = yes
								}
							}
							transfer_state = PREV
							PREV={add_compliance = 50}
						}
					}
					else={
						ROOT={transfer_state = PREV}
						add_compliance = 50
					}
				}
				every_state={#the border states of resistors are annexed, but with high resistance
					limit={
						is_in_kongo = yes
						owner={
							
						}
						is_capital = no
						#is_ai = yes
						owner={
						}
					}
					if={
						limit={
							any_country={
								is_subject_of = ROOT
								capital_scope={
									is_in_kongo = yes
								}
							}
						}
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_kongo = yes
								}
							}
							transfer_state = PREV
							PREV={add_resistance = 30}
						}
					}
					else={
						ROOT={transfer_state = PREV}
						add_resistance = 30
					}
				}
				every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
					limit={
						is_in_kongo = yes
						owner={
							
						}
						is_capital = yes
						owner={
							OR={
								is_ai = yes
							}
						}
					}
					if={
						limit={
							any_country={
								is_subject_of = ROOT
								capital_scope={
									is_in_kongo = yes
								}
							}
						}
						owner={
							random_country={
								limit={
									is_subject_of = ROOT
									capital_scope={
										is_in_kongo = yes
									}
								}
								declare_war_on = {
									target = PREV
									type = take_claimed_state
								}
								ROOT={
									add_to_war = {
										targeted_alliance = PREV 
										enemy = PREV.PREV 
										hostility_reason = asked_to_join
									}
								}
							}
						}
					}
					else={
						owner={
							ROOT={
								declare_war_on = {
									target = PREV
									type = take_claimed_state
								}
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_angola={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Angola
			NOT={has_global_flag = BC_Angola_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_angola = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_angola = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_angola = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_angola = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_angola = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_angola = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_angola = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_angola = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_angola = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_nambia={
		available = {	
		}
		visible={
			has_country_flag = BC_Granted_Nambia
			NOT={has_global_flag = BC_Nambia_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_nambia = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_nambia = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_nambia = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_nambia = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_nambia = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_nambia = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_nambia = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_nambia = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_nambia = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_zanzabar={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Zanzabar
			NOT={has_global_flag = BC_Zanzabar_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_zanzabar = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
						if={
							limit={
								is_puppet = yes
							}
							overlord={
								
							}
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_zanzabar = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_zanzabar = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_zanzabar = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_zanzabar = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_zanzabar = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_zanzabar = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_zanzabar = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_zanzabar = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_kenya={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Kenya
			NOT={has_global_flag = BC_Kenya_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_kenya = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
						if={
							limit={
								is_puppet = yes
							}
							overlord={
								
							}
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_kenya = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_kenya = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_kenya = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_kenya = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_kenya = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_kenya = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_kenya = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_kenya = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_african_horn={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_African_Horn
			NOT={has_global_flag = BC_African_Horn_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			#take somailand if oman is not colonial
			if={
				limit={
					OMA={
						NOT={
							OR={
								owns_state = 821
								owns_state = 559
								owns_state = 1165
								MAJ={is_subject_of = PREV}
								GLD={is_subject_of = PREV}
								SOM={
									exists = yes
									is_subject_of = PREV
								}
							}
						}
					}
				}
				transfer_state = 821
				add_state_core = 821
				transfer_state = 559
				add_state_core = 559
				transfer_state = 1165
				add_state_core = 1165
				transfer_state = 914
				add_state_core = 914
			}
			if={#if egpyt is distracted, take eritrea
				limit={
					OR={
						AND={
							MED={
								is_subject_of = EGY
							}
							EGY={
								OR={
									check_variable = {EGY_debt > 20}
									has_idea = EGY_ENG_controlled_government
									has_idea = EGY_FRA_controlled_government
									has_idea = EGY_ITA_controlled_government
								}
							}
						}
						MED = {
							is_subject = no
						}
					}
				}
				transfer_state = 550
				add_state_core = 550
				transfer_state = 983
				add_state_core = 983
				if={
					limit={
						MED={owns_state = 815}
					}
					transfer_state = 815
					add_state_core = 815
				}
			}
			else={#buy eritrea later
				add_state_core = 550
				add_state_core = 983
				add_state_core = 815
				set_country_flag = EDC_can_buy_eritrea
			}
			add_state_claim = 816
			add_state_claim = 818
			add_state_claim = 819
			add_state_claim = 271
			add_state_claim = 820
			if={
				limit={
					ETH={owns_state = 815}
				}
				add_state_claim = 815
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_uganda={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Uganda
			NOT={has_global_flag = BC_Uganda_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_uganda = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_uganda = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_uganda = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_uganda = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_uganda = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_uganda = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_uganda = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_uganda = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_uganda = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_rhodesia={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Rhodesia
			NOT={has_global_flag = BC_Rhodesia_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_rhodesia = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_rhodesia = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_rhodesia = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_rhodesia = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_rhodesia = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_rhodesia = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_rhodesia = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_rhodesia = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_rhodesia = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_central_africa={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Central_Africa
			NOT={has_global_flag = BC_Central_Africa_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_central_africa = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_central_africa = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_central_africa = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_central_africa = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_central_africa = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_central_africa = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_central_africa = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_central_africa = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_central_africa = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_mali={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Mali
			NOT={has_global_flag = BC_Mali_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_mali = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_mali = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_mali = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_mali = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_mali = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_mali = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_mali = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_mali = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_mali = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_niger={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Niger
			NOT={has_global_flag = BC_Niger_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_niger = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_niger = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_niger = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_niger = yes
					owner={
						
						OR={
							is_ai = no
						}
					}
					is_capital = no
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_niger = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_niger = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_niger = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = no
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_niger = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_niger = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_burkina_faso={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Burkina_Faso
			NOT={has_global_flag = BC_Burkina_Faso_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_burkina_faso = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
					}
					owner={
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_burkina_faso = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_burkina_faso = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_burkina_faso = yes
					owner={
						
					}
					is_capital = no
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_burkina_faso = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_burkina_faso = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_burkina_faso = yes
					owner={
						
					}
					is_capital = yes
					owner={
						OR={
							is_ai = yes
						}
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_burkina_faso = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_burkina_faso = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
	afr_annex_chad={
		available = {
		}
		visible={
			has_country_flag = BC_Granted_Chad
			NOT={has_global_flag = BC_Chad_Colonised}
		}
		cost = 50
		fire_only_once = yes
		days_remove = 240
		remove_effect = {
			every_state={#tribes are subsumed
				limit={
					is_in_chad = yes
					owner={
						OR={
							tag = AFR
							tag = UCT
							
						}
						NOT={tag = WDD}
						is_ai = yes
					}
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_chad = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_chad = yes
							}
						}
						transfer_state = PREV
						PREV={add_compliance = 50}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_compliance = 50
				}
			}
			every_state={#the border states of resistors are annexed, but with high resistance
				limit={
					is_in_chad = yes
					owner={
						
						NOT={tag=WDD}
						OR={
							is_ai = yes
						}
					}
					is_capital = no
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_chad = yes
							}
						}
					}
					random_country={
						limit={
							is_subject_of = ROOT
							capital_scope={
								is_in_chad = yes
							}
						}
						transfer_state = PREV
						PREV={add_resistance = 30}
					}
				}
				else={
					ROOT={transfer_state = PREV}
					add_resistance = 30
				}
			}
			every_state={#declare war on resistor capitals, due to cores if they win they should get thier land back, will likely script the peace later
				limit={
					is_in_chad = yes
					owner={
						
						NOT={tag=WDD}
						OR={
							is_ai = yes
						}
					}
					is_capital = yes
				}
				if={
					limit={
						any_country={
							is_subject_of = ROOT
							capital_scope={
								is_in_chad = yes
							}
						}
					}
					owner={
						random_country={
							limit={
								is_subject_of = ROOT
								capital_scope={
									is_in_chad = yes
								}
							}
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
							ROOT={
								add_to_war = {
									targeted_alliance = PREV 
									enemy = PREV.PREV 
									hostility_reason = asked_to_join
								}
							}
						}
					}
				}
				else={
					owner={
						ROOT={
							declare_war_on = {
								target = PREV
								type = take_claimed_state
							}
						}
					}
				}
			}
		}
		ai_will_do = { 
			factor = 16
		}
	}
}
