The first two lines are because I don't trust weak typing. I'm explicitly telling it to convert the string values, read in as a base-10 number, to an integer. The rest is me just making sure players don't do anything ludicrous, like display -6 d203949032 dice.