is_sphere_leader = {
	custom_trigger_tooltip = {
		tooltip = is_sphere_leader_tt
		has_idea = sphere_leader
	}
}

is_sphere_member = {
	custom_trigger_tooltip = {
		tooltip = is_sphere_member_tt
		has_variable = sphere_overlord
	}
}

is_not_sphere_member = {
	custom_trigger_tooltip = {
		tooltip = is_not_sphere_member_tt
		has_variable = sphere_overlord
	}
}

african_state_owned_by_colonizers = {
	OR = {
		is_owned_by = SWE
		is_owned_by = HOL
		is_owned_by = BEL
		is_owned_by = ENG
		is_owned_by = PRS
		is_owned_by = AUS
		is_owned_by = PIE
		is_owned_by = FRA
		is_owned_by = SPR
		is_owned_by = POR
		is_owned_by = RUS
	}
}

is_border_conflict_defender_vs_FROM = {
	has_variable = ROOT.defender_state_vs_@FROM
}

has_not_initiated_border_incident_with_FROM = {
	custom_trigger_tooltip = {
		tooltip = not_initiated_border_incident_with_FROM
		NOT = {		
			any_state = {
				check_variable = { FROM.defender_state_vs_@PREV = id }
			}
		}
	}
}

has_not_initiated_border_incident_with_ROOT = {
	custom_trigger_tooltip = {
		tooltip = not_initiated_border_incident_with_ROOT
		NOT = {
			any_state = {
				check_variable = { ROOT.defender_state_vs_@PREV = id }
			}
		}
	}
}

#State scope
has_ROOT_at_least_1_div_in_current_state_scope = {
	custom_trigger_tooltip = {
		tooltip = at_least_one_division_in_state
		ROOT = { divisions_in_state = { state = PREV size > 0 } }
	}
}

#State scope
is_controlled_by_ROOT_or_subject = {
	custom_trigger_tooltip = {
		tooltip = is_controlled_by_ROOT_or_subject
		CONTROLLER = {
			OR = {
				tag = ROOT
				is_subject_of = ROOT
			}
		}
	}
}

#Country scope
is_free_or_subject_of_root = {
	OR = {
		is_subject = no
		is_subject_of = ROOT
	}
}

#State scope
is_controlled_by_ROOT_or_ally = {
	custom_trigger_tooltip = {
		tooltip = is_controlled_by_ROOT_or_ally
		CONTROLLER = {
			OR = {
				tag = ROOT
				is_subject_of = ROOT
				is_in_faction_with = ROOT
			}
		}
	}
}

is_available_to_collaboration_government = { # occupied_countries.1 should be updated along with this
	NOT = {
		any_country_with_original_tag = {
			original_tag_to_check = FROM
			is_puppet_of = PREV # if already created one do not create another
			has_autonomy_state = autonomy_collaboration_government
		}
	}
}
