It appears that modifiers are also not being included in the calculation (i.e. 1d10+2b2). Is there any way to inlcude these within the logic?
The exception case is really the botches. Would it be possible to make the "z" flag display the rolled total (i.e. 0+mods on botch, otherwise the number rolled + mods)?