Text this: Homoclinic Orbits for a Class of Nonperiodic Hamiltonian Systems with Some Twisted Conditions