Log inGet started
← Explore
World media

Drop Tables Kit: Weighted Loot Rolls with Pity Timer

Weighted loot drop tables with a pity timer for any game: drop chance, per-enemy multipliers, item weights and bad luck protection, with five tuned shooter presets. Pure Luau, no dependencies.

0score
Embed

Embed this world

Paste this code into your own page and the world plays right there.

Updated Nov 10, 2026
lootdrop tablepity timerweighted randomrpgroguelikeshooterkit

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
  • rate and odds for menus, pick for chests that always give something, seeded for 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