Register

Random Loot Generator

An Add-on Module for Foundry Virtual Tabletop

Author: Shayulghul Project Source Versions 12 - 13 (Verified 12) Last Updated 2 weeks, 6 days ago

Why do I need this module?

Are your players a bunch of loot goblins who salivate over all the random junk you throw at them? Want to add more junk to NPC tokens with very little effort? Then, this is the module for you.  

This D&D 5e module adds loot to NPC tokens without replacing their existing items, speeding up loot generation. The module can pull from compendiums, folders, and roll tables—world items or compendium-direct—and lets you tweak quantities, rarities, and currency through global settings or creature-specific overrides. 

Loot settings

 

 

What's the best way to use this module?

The way you use this module depends on your DM style:   
- Loot Miser: Set just a few sources (maybe just one) and set the currency chance low. You'll get a bit of extra junk…I mean loot.  
- Lazy DM: Click some stuff randomly and don't worry too much about it. All the items and coins are just extra, so you're probably not breaking anything. Maybe.  
- Control Freak: Create a bunch of custom curated folders, roll tables, and compendiums by CR, creature type, genre, environment, and astrological sign. You do you; get funky.  
- Monty Python: Turn everything up to 11 and add every source that shows up in the list.

 

 

Loot settings


Additional Development Notes (FAQ)

This module seems to duplicate what other modules do. Was that on purpose?
- Yes and no. Pocket Change has mostly been abandoned, so I added a similar feature to this module. Any other similarities with other modules are purely a strange coincidence.

Why is the loot generation slow?
- Pulling from compendiums or large folders can take a few moments because of all the dice rolls in the background. For example, Items (SRD) has over 800 items that the module has to check before generating the loot. Consider using smaller folders or downloaded folders if the selected sources are too slow. 

Where are the currency formulas?
- The CR currency roles are baked into the code. I tweaked the rolls to be a bit lower to account for the extra chance of loot. It's pretty easy to add more coins if you think that a drop wasn't rich enough, but it's harder to remove extra coins. 

I'm not getting any results from my roll table?
- Verify that your roll table has items.

Are there any module conflicts?
- This module doesn't rely on any other modules, so there shouldn't be many conflicts. The loot generation happens either when you drag the token to the canvas or when you manually generate the loot. Modules that modify tokens when you drag them to the canvas might cause issues.

Can I use a macro to trigger the loot generation?
- Yes, use the following macro:

game.lootGenerator.generateLootForTokens(canvas.tokens.controlled);

Can this module add loot to player tokens/actors?
- Yes, but why are you that nice? Let them work for it. Kidding aside, it does, but you probably wouldn't be able to set custom treasure settings, just the default ones. 

 

 

Supported Game Systems

  1. Dungeons & Dragons Fifth Edition

    Latest Version: Version 4.3.8 Last Updated 5 days, 18 hours ago

Categories

Available Versions

  1. Version 1.0.0

    2 weeks, 6 days ago
    Foundry Version 12 - 13 (Verified 12) Manifest URL Read Notes