Scale effect and higher-order boundary conditions for generalized lattices, with direct and indirect interactions