This is the template for creating the dice primitives for Button Men. If you're doing this for class, use the D4 and D20 models to complete the roll behaviours for the rest of the dice.
This is working towards an implementation of James Ernst's classic Button Men, available at the link below. https://cheapass.com/free-games/button-men/