v.0.0.3 (2014-12-27) BUGFIX: Changed "friends" to "fiends" in Scroll of Protection types BUGFIX: Art rewards are now whispered to GM instead of sent to all chat Spell scrolls of a certain level now properly pull from lists of ALL spells that can be cast at that level (all levels below it) v.0.0.2 (2014-12-25) Functional for first tier of challenge levels (0-4) as per the 5e DMG v.0.0.1 (2014-12-24) Alpha Dungeons and Dragons' 5e Dungeon Master's Guide has a section dedicated to randomly generating treasure hoards based on their challenge level. As I plan on using this system in my campaign, I have created an exhaustive script that follows the books instructions with the following remarks: When the book allows for "DM choice" or "randomly selected," this script assumes the latter option Any magical item that calls for a weapon or armor will select from a list that is weighed by "utility," which for armor is AC (- stealth disadvantages) and for weapons is (max dmg + min dmg) + 1 for every positive trait (versatility, thrown, finesse) and -1 for negative ones (two-handed, heavy). In short, plate is more rare than padded armor, and greatswords are more rare than clubs. This script even goes so far as to perform rolls that an individual item calls for. For example, this script will automatically roll the amount of beads on a Necklace of Fireballs, and will roll whether a Ring of Spell Storing has spells stored when you find it, what the spells are, and what level they are. To do: Complete all tables and challenge levels Adjust scroll loot to reflect different levels. For example, a lvl 2 scroll should also sometimes have lvl 1 spells that are cast at level 2. Allow variables, such as manual control of the roll or other features Pretty up the results, which are currently spat out to the GM in the form of an enormous wall of text. (CSS possibly) Clean up the code USAGE: !mtt [challenge level] (example: !mtt 3) <a href="https://gist.github.com/anonymous/0e870941508204ca6624" rel="nofollow">https://gist.github.com/anonymous/0e870941508204ca6624</a>