run_generic_operation = {
	enable = {
		NOT = { check_variable = { generic_operation_target = 0 } }
		NOT = { check_variable = { generic_operation_type_to_run = 0 } }
		
		var:generic_operation_target = {
			exists = yes
			has_capitulated = no
			NOT = { is_ally_with = PREV }
		}
	}
	
	abort_when_not_enabled = yes

	ai_strategy = {
		type = operative_operation
		operation = var:generic_operation_type_to_run
		value = 200
		operation_target = var:generic_operation_target
	}
	
	ai_strategy = {
		type = operation_equipment_priority
		value = 100
	}
	
	ai_strategy = {
		type = operative_mission
		mission = build_intel_network
		value = 200
		mission_target = var:generic_operation_target
	}
}

run_generic_operation_add_more_operatives = {
	enable = {
		NOT = { check_variable = { generic_operation_target = 0 } }
		NOT = { check_variable = { generic_operation_type_to_run = 0 } }
		
		var:generic_operation_target = {
			exists = yes
			has_capitulated = no
			NOT = { is_ally_with = PREV }
		}
		num_of_operatives > 4
	}
	
	abort_when_not_enabled = yes

	
	ai_strategy = {
		type = operative_mission
		mission = build_intel_network
		value = 200
		mission_target = var:generic_operation_target
		num_operatives = 2
	}
}


run_generic_rescue_operation = {
	enable = {
		NOT = { check_variable = { rescue_operative_from = 0 } }
	}
	
	abort_when_not_enabled = yes

	ai_strategy = {
		type = operative_operation
		operation = operation_rescue_operative
		value = 200
		operation_target = var:rescue_operative_from
	}
	
	ai_strategy = {
		type = operation_equipment_priority
		value = 50
	}
	
	ai_strategy = {
		type = operative_mission
		mission = build_intel_network
		value = 150
		mission_target = var:rescue_operative_from
	}
}