Hello. I've been using tables and macros to let players generate loot in my games from encounters (not treasure hordes, but just what they find on henchmen or random monsters). My friend asked me to copy it into his game, but I don't think you can import tables, so I made it into a script. edit: This is for D&D 5E, I should have specified I haven't tested it much, and given how much I typed, there may be some typos in there, but so far it seems to work. To generate loot, you either type !MinorLoot or !MediumLoot (or put them in a macro). It can obviously be extended for greater loot levels, and also can be changed to whisper the result to the GM. It's obscenely long, mostly because of the tables I hand coded in. Hopefully this is useful for someone. Here's the GIST: edit below for updated. Edit: fixed a bug (was adding 1 to random rolls to make them 1-100, but also added 1 for arrays, which put the index outside the array, and never hit the 0th index). <a href="https://gist.github.com/anonymous/223e51487e67122e" rel="nofollow">https://gist.github.com/anonymous/223e51487e67122e</a>... Edit update 2: coins now generate in a for loop, instead of multiplying just a single d6 roll: <a href="https://gist.github.com/anonymous/c180cdbc189ecf9c" rel="nofollow">https://gist.github.com/anonymous/c180cdbc189ecf9c</a>...