
Currently the only way to get custom dice is with GM-only creation/maintenance of rollable tables which have to be customised for every possible combination of modifiers, target values, etc.
I suggest that custom dice could be defined in macros using a comma separated list of values, ranges, and dice expressions each with an optional colon separated weighting. Some examples:-
Some amount of d10's with a minimum of 3 could be defined
?{How Many}dC(3:3,4,5,6,7,8,9,10)
Some amount of 1d4+1, useful for magic missle
?{How Many}dC(2..5)
Some amount of 2d20k1, useful for mob attacks with advantage
?{How Many}dC(2d20k1)
A few things to note
- negative values should be allowed
- weights of zero should be allowed for easier attribute/calculation based handling
- a range could represent a single value eg. 6..6
- a range could be written descending eg. 6..1
- a range could have a weighting in which case each element in that range would have that weight. eg 3..6:2
- ranges could overlap
- dice expressions could have a weighting and would be considered a single element for that.