Polygon Stair

In this grasshopper example file you can model different stair types by changing the base polygon. Download this definition https://parametrichouse.com/polygon-stair