Core Rules
WoTC AD&D 2nd Edition -- Drakein API Reference
Loading...
Searching...
No Matches
Treasure.dat — Random treasure tables

Holds the dice-driven treasure tables the game rolls on to generate loot. Each table is a named collection of rows, and each row pairs a chance of being rolled with the item — or further sub-table lookups — that the roll produces.

Data in this file includes

  • Table Name — The name of the treasure table, used to look it up and to reference it from other tables.
  • Roll Probability — For each row, the likelihood that this row is the one selected when the table is rolled.
  • Guaranteed Item — The item a row always yields, held as a sub-inventory entry that may itself carry contained items.
  • Number Found — The dice that decide how many are found: a count of dice, a die type, and a modifier (for example count × d*type* + modifier).
  • Random Contents — Up to two further sub-table references a row can chain to, each with its own set of dice and the name of the sub-table to roll on for the additional contents.
  • Intelligent-Item Chance — The percent chance (0–100) that the generated item is intelligent.
  • Spell Parameters — For rows that produce spell-bearing items such as scrolls or spellbooks: the range of spell levels drawn from, how many spells are generated, and whether they are wizard or priest spells.