IMPORTANT NOTE:
Current DiceTool code does not use the Parser used by MapTool, CharTool, and InitTool(it uses a Math library named JEP) so some of the existing Math functions may or may not work or may require different syntax. This will change once the code is ported to using the Parser library.
DiceTool supports basic rolls, including the ability to reference one or more of 10 specific pre-defined variables. The above is a very simple roll using a variable named "Con". On the bottom section of the screen, when you first open DiceTool, there be 10 variables(which you can rename as I have done here) which begin with the nameds var0 - var9. Each of these can take a simple numerical value in the cell below the name. If a named variable is referenced within a dice expression, it's value will be populated in the output. One issue with the above for some games is that you have to do the math to see what the actual ROLL result was prior to adding any values. Note that the Total column is empty(we will get to that later)
Basic Roll - Adding a Variable value WITH breakdown: The above picture is the same logical roll, but uses a slightly different syntax to produce different results in the User Interface of DiceTool. Using the ":"(colon) operator, indicates to DiceTool that you would like to see the break down of each step, so now I know that my original d20 roll was an 8(first row) and the Con bonus(4) was added to this for a total of 12 as a final result.
Cumulative Rolls : The next syntax introduces a concept of cumulative grouping dice rolls so that you can see the break down of each roll. This is done my using the square brackets with a dice expression PRECEDED by the number of times you wish to run the expression. In this case, the 3[d2]+5 means: roll three 2 sided dice and add 5, splitting the results over 3 lines.
Likewise, we could use the ":" operator to force the extra "addition" of the value 5 to be on a line by itself :