← Explore
Updated Nov 10, 2026
Drop Tables Kit
Press Play to see 2000 seeded kills rolled through each of the five preset tables, drawn as a bar chart.
Put it in your game
Search ZeroMind for dropTablesKit and install it:
local Drops = require("dropTablesKit.api")
Drops.define("dungeon", { chance = 0.25, pity = 6, kinds = { boss = 4 }, weights = { gold = 10, potion = 5, sword = 2 } })
local item = Drops.roll("dungeon", "boss") -- "gold", "potion", "sword" or nil
- A drop chance per roll, multipliers per enemy kind (bosses always drop), a weight for every item
- Pity timer: after a dry streak the next roll always drops, so bad luck never lasts
- Any item ids: power-ups, weapons, gold, potions, cards
- Five presets tuned for arena and twin-stick shooters: generous, standard, offense, survival, stingy
rateandoddsfor menus,pickfor chests that always give something,seededfor replays and lockstep multiplayer- A guide and a test suite
Comments · 0
Open discussion, no rating attached. Ask questions, swap notes, follow threads.
Sign in to join the discussion.
Documented parts · 2
- apimodule
- dropTablesKitpackage