A downloadable asset pack

Download NowName your own price

Made this for my own game and figured others might find it useful. You define named loot pools in the Plugin Manager,  each pool is a list of entries like armor 830-847 or weapon 5-12. One entry covers an entire ID range so you can set up a crate that pulls from hundreds of items without a single conditional branch.

What it does:

  • Define as many named pools as you want in parameters. Each pool holds item, weapon, and armor entries with single IDs or ranges.
  • ID ranges skip empty database slots automatically so gaps in your IDs don't cause errors or need cleanup.
  • Two plugin commands. Roll Loot picks one random item from a pool and gives it to the player. Roll Multiple does several rolls in one go, useful for chests that drop a handful of things at once.
  • The name of whatever dropped gets stored in a game variable so you can use \V[X] in a Show Text right after to tell the player what they got.
  • Optional variables for item type and database ID if you need to do something more specific based on what dropped, like playing a different animation for weapons vs armor.
  • Configurable roll sound effect.

The main thing I wanted was to stop writing 30-branch conditional trees every time I added a new loot table. Define the pool once, call it with one plugin command, done.

Download

Download NowName your own price

Click download now to get access to the following files:

DSS_LootCrate.js 10 kB
DSS_LootCrate_Docs.pdf 65 kB

Leave a comment

Log in with itch.io to leave a comment.