The general form for dice rolls is:
The parameters in { } brackets are optional. Specifying "sets" indicates that you want to roll multiple groups of dice and get the results of each group displayed separately. You must follow the number of sets with a pound sign. The "dice" parameter indicates how many dice you want to roll in a group, and defaults to 1 if you do not specify a value. The "sides" parameter indicates how many sides are on the dice you want to roll.
Example 1
You can use the symbols + and - to apply modifiers to a dice roll:
Example 2
You can use the * symbol to apply critical hit damage to a roll. The multiplier is applied to the number of dice and any modifier, just as specified by the D&D 3rd Edition rules. If you apply successive multipliers, each one after the first has one less than its value added to the first multiplier:
Example 3
The final value used as the multiplier would be 5 + ( 4 - 1 ) + ( 3 - 1 ) = 5 + 3 + 2 = 10.
Finally, you may specify an optional description following the dice commands, which will be echoed in the output:
Example 4
The sneak attack is a special case in the D&D 3E rules. To make a sneak attack damage roll, syntax is:
Bonus damage is a dice expression indicating damage to be added after the regular dice roll is made.
Example 5
Here, the 1d10+5*2 part gets resolved, then has 3d6 added to it for the final result.
If you want to send the results of a roll privately to someone, the syntax is:
Or for a sneak attack:
where the suggestively named words inside brackets are replaced with the actual information they allude to.
Example
Here "dicebot" is the dicebot's nick, and "theGM" is the person you want to send the roll to.