ChanceTable | Loot Table System


Independent mode tests each eligible entry against its own chance. ... Inspect the actual distribution ... Chest rewards teaches weights and quantities. ... Get from import to your first draw


by Cyber Chroma


Price History +

Author weighted rewards and nested bundles, preview exact odds for simple tables, and compare seeded estimates before connecting your inventory.

- Failed reward calculations can preserve the deterministic random sequence for retries.

- ScriptableObject Reward Tables with Item, Table and Empty entries.

- Weighted selections and independent probability tests as distinct modes.

- Inclusive Item quantities from 1 to 1,000,000; duplicate IDs aggregate with checked integer arithmetic.

- Weighted without-replacement draws remove selected entries for one call and restore the pool next call.

- Case-sensitive reward exclusions and condition callbacks; nested empty branches are not rerolled.

- Graph validation rejects cycles, missing child tables, duplicate keys, invalid enum values, nonfinite weights/chances and invalid quantity ranges.

- Limits: 256 entries per table, 100 rolls, 12 nested tables and 4,096 execution steps per call.

- Deterministic uint-seeded random source, restorable state and IRewardRandom integration.

- Reward Source component: reward ID/quantity, empty and failure UnityEvents; result-only Roll API.

- Probability Workbench: exact flat one-roll previews, seeded estimates, mean quantities, empty-call counts, stale-result detection and CSV export.

- Workbench simulations: 100 to 10,000 samples. Runtime simulation API: 1 to 100,000 samples.

- Five example tables, reward-source prefab and four UGUI demos in Built-in, URP and HDRP folders.

- Six-page Getting Started tutorial and 10-page PDF manual. Editable C# source included.

- Runtime has no input or render-pipeline package dependency. Unity UI is required for included demonstrations.

- Exact export compiled and scanned in Unity 2022.3.62f3 and Unity 6000.6.4f1 across Built-in, URP and HDRP.

- Windows players built and passed automated reward, reset and navigation checks in Unity 6000.6.4f1 for Built-in, URP and HDRP. Built-in also passed under Old, New and Both input modes.

- All scene variants played under Old, New and Both input configurations in both editors; optional Input System tested with 1.7.0 and 1.19.0 respectively.

Author rewards. Understand the odds.


ChanceTable is a focused loot-table and probability-preview toolkit for small games. Build reusable reward assets for chests, enemy drops, reward bundles or entry drafts, then receive item IDs and quantities through a small runtime API or a UnityEvent component.


Choose clear draw semantics

Weighted mode selects from relative weights. Independent mode tests each eligible entry against its own chance. Configure roll counts, inclusive quantity ranges, explicit empty outcomes and weighted draws without replacement. Nested tables compose complete bundles without requiring an inventory framework.


Inspect the actual distribution

The Probability Workbench shows exact probability and expected quantity for supported flat, single-roll tables. For nested tables and multiple rolls, seeded simulations display clearly labeled estimates, sample counts, empty outcomes and mean quantities. Set a preview context, inspect the selection trace and export sampled results as CSV. Changed settings or table graphs mark earlier estimates as stale.


Control eligibility and reproduce draws

Filter reward IDs and resolve condition keys from your game. Eligible weighted entries renormalize. Use a deterministic random sequence independent of UnityEngine.Random and restore its state through your own save system. Cycle checks, invalid-data diagnostics and operation limits reject unsafe draws instead of returning partial rewards.


Learn through four interactive demos

Chest rewards teaches weights and quantities. Eligibility shows condition-gated entries and exclusions. Nested bundles combines guaranteed coins, independent item rolls and a weighted child table. Unique entry draft demonstrates selection without replacement. All displays use the included runtime, and the example C# source is included.


Get from import to your first draw

A six-page Unity Getting Started tutorial, starter-table action, Undo-aware scene-source setup, ready-to-use reward-source prefab and 10-page searchable PDF manual cover authoring, preview semantics, integration, random state and troubleshooting.


Scope and limits

ChanceTable returns reward IDs and quantities; inventory, persistence, networking, pity mechanics and payment systems are your game's responsibility. Without replacement is local to entries in one table call, not globally unique reward IDs. Exact analysis supports flat one-roll tables with Allow-empty policy and fixed context. Other supported cases use sampled estimates. A rejected simulation draw stops analysis. This is not a cryptographic random generator or an allocation-free high-frequency selection system.