This script rolls virtual Dungeons & Dragons dice in your terminal!
Rolls use standard D&D die types (4, 6, 8, 10, 12, 20, 100) but custom die types can be used with a script option. Multiple rolls can be added together. Modifiers are added to the total roll by default but can be added to each die rolled using a script option. The Advantage and Disadvantage options allow to roll a roll twice and return only the highest or the lowest result. Results are printed in the terminal but can also be saved to a text file using a script option.
Each roll must be passed in argument using the following pattern: [dice quantity] + d + [die type] + [optional: modifier]
For example: 1d20+2 or 3d4-1 or 2d6
I think this is every question ever answered in the Sage Advice of Dragon Magazine through its entire publication history.
5060 links, including 361 private