Preparing some generic scripts beforehand is fine. I don't feel bad about rewarding efficient workflows. Making a full game now and then just slightly adjusting or reskinning it for the jam is not allowed, though. Use your own judgement to draw the line between the two. :)