Does a script for creating a sloped roof exist?

Does anyone know of a complete or partially functioning script for creating a sloped roof inside of MAX? I've not been able to find anything. Despite the numerous roof building tools for CAD I'm still surprised a script or plug-in doesn't exist for Max.