From:  bemfarmer
For circular stairs, the slope is the rise divided by the run.
The narrow side of the stairs is steeper.
Transitioning to a straight section my involve a 3rd slope.
Then there are building codes...

Red line can be offset the width of the wall... extrude...

The red line is a helix.

For a castle, the defenders above were usually right handed(?)