#	Example:
# 
#	example_trigger = {
#		tag = GER
#		is_ai = no
#	}
#
#
#	In a script file:
#
#	trigger = {
#		exampel_trigger = yes
#	}
#
has_war_with_non_exiled_country = {
	custom_trigger_tooltip = {
		tooltip = has_war_with_non_exiled_country_tt
		has_war = yes
		any_enemy_country = {
			is_government_in_exile = no
		}
	}

}

can_unlock_new_special_forces_tree = {
	if = {
		limit = { NOT = { has_variable = sf_trees } }
		custom_trigger_tooltip = {
			tooltip = can_unlock_new_special_forces_tree_none
			NOT = { has_variable = sf_trees }
		}
	}
	else_if = {
		limit = { check_variable = { sf_trees > 0 } }
		custom_trigger_tooltip = {
			tooltip = can_unlock_new_special_forces_tree_more_yes
			check_variable = { sf_trees > 0 }
		}
	}
	else = {
		custom_trigger_tooltip = {
			tooltip = can_unlock_new_special_forces_tree_more_no
			always = no
		}
	}
}
ai_has_completed_army_doctrine = {
	is_ai = yes
	OR = {
		has_tech = werwolf_guerillas
		has_tech = modern_blitzkrieg
		has_tech = air_land_battle
		has_tech = shock_and_awe
		has_tech = c3i_theory
		has_tech = infiltration_in_depth
		has_tech = continuous_offensive
		has_tech = guerilla_warfare
	}
}

ai_has_completed_air_doctrine = {
	is_ai = yes
	OR = {
		has_tech = offensive_formations
		has_tech = mass_destruction
		has_tech = forward_interception
		has_tech = high_level_bombing
	}
}

ai_has_completed_naval_doctrine = {
	is_ai = yes
	OR = {
		has_tech = grand_battlefleet
		has_tech = submarine_offensive
		has_tech = floating_airfield
		has_tech = combined_operations_raiding
		has_tech = integrated_convoy_defence
		has_tech = submarine_offensive_bs
		has_tech = carrier_battlegroups
	}
}


ai_air_doctrine_tier_1_trigger = {
	OR = {
		has_tech = naval_strike_tactics
		has_tech = direct_ground_support
		has_tech = low_echelon_support
	}
}

ai_air_doctrine_tier_2_trigger = {
	OR = {
		has_tech = multialtitude_flying
		has_tech = hunt_and_destroy
		has_tech = operational_destruction
	}
}
ai_air_doctrine_tier_3_trigger = {
	OR = {
		has_tech = flying_fortress
		has_tech = naval_strike_torpedo_tactics
		has_tech = infiltration_bombing
	}
}

ai_land_doctrine_tier_1_trigger = {
	OR = {
		has_tech = elastic_defence
		has_tech = mobile_defence
		has_tech = grand_assault
		has_tech = defence_in_depth
	}
}

ai_land_doctrine_tier_2_trigger = {
	OR = {
		has_tech = kampfgruppe
		has_tech = mechanised_offensive
		has_tech = branch_interoperation
		has_tech = infiltration_assault
		has_tech = vast_offensives
		has_tech = large_front_offensive
	}
}


anti_submarine_strategy_required_trigger = {
	OR = {
		AND = {
			tag = ENG
			not = { is_in_faction_with = GER }
			GER = {
				has_navy_size = {
					type = submarine
					size > 30
				}
			}
		}
		AND = {
			tag = USA
			not = { is_in_faction_with = GER }
			GER = {
				has_navy_size = {
					type = submarine
					size > 30
				}
			}
		}
		AND = {
			tag = JAP
			not = { is_in_faction_with = USA }
		}
		AND = {
			has_war = yes
			any_enemy_country = {
				has_navy_size = {
					type = submarine
					size > 30
				}
			}
		}
		convoy_threat > 0.3
	}
}

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
		}
	}
}

is_unlikely_country_tag = {
	OR = {
	    tag = BRI
	    tag = CAT
	    tag = NAV
	    tag = GLC
	    tag = ADU
	    tag = BRI
	    tag = OCC
	    tag = COR
	    tag = DNZ
	    tag = KSH
	    tag = CKK
	    tag = FER
	    tag = YAK
	    tag = VLA
	    tag = KKP
	    tag = YAM
	    tag = TAY
	    tag = OVO
	    tag = NEN
	    tag = KOM
	    tag = CHU
	    tag = MEL
	    tag = RIF
	    tag = HAR
	    tag = TIG
	    tag = AFA
	    tag = BEG
	    tag = GBA
	    tag = SID
	    tag = ORO
	    tag = QEM
	    tag = LBV
	    tag = PAP
	    tag = TOS
	    tag = SPM
	    tag = TTS
		tag = BSK
		tag = TAT
		tag = UDM
		tag = KHA
		tag = VGE
		tag = KAL
		tag = KAR
		tag = SIL
		tag = KSH
		tag = ALT
		tag = UZB
		tag = KHI
		tag = SMI
	}
}