Night-generation script