Skip to content
- TC (Treasure Class): a weighted, recursive drop table (
TreasureClassEx). Each pick lands on an item, on nothing (NoDrop) or on another TC. A monster’s TC depends on difficulty and on whether it is normal, champion, unique or superunique, and in Nightmare/Hell expansion games it may move up its group by monster level.
- Picks: a TC’s pick count. Positive: that many weighted random picks, each of which may be NoDrop. Negative: |Picks| picks with no draw, entry i taken
Prob_i times in order.
- NoDrop: a TC’s weight for “nothing” on a positive pick. It is scaled down by the player count (party members in the killer’s level count fully, other players half) through an x87 formula, recomputed every pick.
- Ratio (TC): the
Magic/Rare/Set/Unique columns of a TC (plus two upgrade words), passed to the quality roll. Down a chain of sub-TCs each field takes the maximum of parent and child.
- Quality code: the item quality as the drop roll returns it and item creation takes it: 1 low, 2 normal, 3 superior, 4 magic, 5 set, 6 rare, 7 unique (0 only for a missing record).
- Magic find (MF): stat 80
item_magicbonus of the killer plus its owner’s (a summon’s or a mercenary’s player). It divides the unique, set and rare chances with diminishing returns above MF 10 (factors 250, 500, 600) and the magic chance linearly.
- Item seed: the seed of a created item (
ItemData+0x04), {start, 666} from one game-seed draw; the item also keeps start (ItemData+0x10). It is not the item unit’s seed (unit+0x20). The unique or set pick is its first draw, and every creation fallback resets it to {start, 666}.
- Made-uniques set: a 4096-bit set per game (
Game+0x1B24), cleared at game creation, marking each UniqueItems row built in the game; picking a marked row fails the build (once per game).
- Failed unique / failed set: a unique or set build with no fitting row (or an already-made unique). Durability ×3 or ×2 (cap 255), then the item is rebuilt as rare (unique) or magic (set), further down to superior and normal if that fails.
- Source unit: the unit a drop comes from (the dying monster or the opened object). Its seed (
unit+0x20) drives the TC picks and the quality rolls.
- ilvl: item level, normally the level of the monster or area that dropped the item.
- alvl: affix level,
max(ilvl, qlvl) plus the base’s magic lvl, or minus qlvl/2 (with a 2·i − 99 branch near the top), clamped to 1..99; every affix pick compares level/maxlevel with it.
- Affix id: the merged index + 1 of an affix in the arrays the loader builds (
magicsuffix, then magicprefix, then automagic; raresuffix, then rareprefix). Item data stores these ids, 0 for none.
- Store seed: a game-wide seed, seeded once per game from one game-seed step (draw 3 of game creation); every vendor stock, stock upgrade, gamble and hireling-list draw uses it, while each created item still takes its seeds from the game seed (
NpcStoreCtl+0x08, Game+0x1D24).
- Stock level: the
ilvl of a vendor stock build: the opener’s level + 5, capped per act in Normal (12, 20, 28, 36, 45). From 25 a vendor stocks no normal copies.
- Trade price values (
P, S, R): the three running values of the price core: P what the player pays (scaled by Npc sell mult), S what the NPC pays (scaled by buy mult, capped by max buy), R the repair cost.
- Gold find (GF): stat 79
item_goldbonus of the killer plus its owner’s; a monster’s gold pile is multiplied by (100 + GF) ÷ 100.
- Gamble level: the per-slot
lvl of a gamble window, clvl − 5 .. clvl + 4 (clamped 5..99): the base filter, the item’s ilvl and the upgrade level.
- Hire table: a seller’s per-game table of hireling entries (Kashya, Greiz, Asheara, Qual-Kehk), one per name of the seller’s Normal-row name range, each with its own seed; 10 are listed. Built at the first talk with the seller from the store seed (also called the NPC seed: the same object),
n + 10 draws.
- Mercenary (hireling): a monster of class 271, 338, 359 or 561 owned by a player (pet type 7), saved as
{seed, name, Hireling Id, experience}; its level comes from the experience ((L+1)·L²·Exp/Lvl) and its stats from the Hireling.txt row of its level band.
- Automagic: the extra affix from the
AutoMagic table that an expansion item of any quality but set and unique gets when its base names a group (auto prefix), picked after the ethereal and socket rolls.
- Rare name: the two words of a rare item’s name, one row of
RarePrefix and one of RareSuffix, each drawn uniformly over the rows that fit the item type, before any affix.
- Staff mods: the class skill bonuses (stat 107) a class item type (
ItemTypes.StaffMods) gets at the end of every quality builder.
- Transmute (cube recipe): pressing Transmute with items in the Horadric Cube (inventory page 3). The server takes the first
CubeMain row, in table order, whose header and seven inputs fit the cube’s items exactly; input 1 alone feeds the outputs. A row that produces something destroys every cube item and places the outputs, identified; otherwise nothing changes.
- Crafted item: quality 8, made only by the cube’s
usetype,crf rows: two rare names, then max(low mod 5, tier) affixes (tier 1–4 by ilvl above 30, 50, 70), then the recipe’s own property lines.
- Forced affix id: a cube output’s
pre=N/suf=N, handed to item creation so that the affix pick takes row N − 1 of the prefix or suffix block with no weighted draw (pre=331 is Prismatic).
- mlvl: monster level, set when a server monster is created: MonStats
Level/Level(N)/Level(H), except in expansion nightmare and hell, where most classes take the area’s Levels.MonLvl2Ex/MonLvl3Ex.
- Monster region: the per-level record (
0x2E4 bytes) built for every level at game creation from one region seed R; it holds the level’s monster pool and copies its density and unique-count columns (game+0xF0).
- Monster pool: the up to 13 classes a level can randomly populate with, picked at game creation from
Levels.mon* (normal) or nmon* (nightmare, hell), each with its Rarity weight.
- Appearance set: one byte per
monstats2 component (HD … S8) choosing a graphic variant; each pool entry rolls up to three on the region seed.
- Population pass: the server pass that fills a room with random monsters on its first activation (
RoomPopulate): attempts per logic box, a density roll each, then a class pick and a type roll.
- Logic box (spawn box): one rectangle of a DRLG room’s logic-region list (
drlgRoom+0x64); the population pass makes (5h/3)·(5w/3) attempts per box.
- Collision grid (
CollMap): an active room’s u16 cells, one per subtile of its rectangle (activeRoom+0x20). Built once at activation from the DT1 sub-tile bytes of the tiles whose top-left lies in the room (from the room and its active near rooms), then marked and unmarked by units.
- Near list: the rooms an active room can see, its DRLG near list filtered to active rooms, self included (
activeRoom+0x00). Cell lookups search the hint room and then this list; a cell elsewhere counts as “no room” (0x27).
- Room release / inactive record: the server frees an active room that no client’s near list has held for 11 release passes (12 frames apart); before that it saves some of the room’s monsters, objects and ground items as inactive records, which re-create the units when the room is activated again.
- Wanderer: a monster the wanderer tick may add to an active room that no client is near (Levels
MonWndr; in 1.14d only act I, class rogue2).
- Footprint pattern: how a player or monster marks the grid, from its size: 0 nothing, 1 a plus of five cells with a
0x1000 centre, 2 a 3×3 square with a 0x1000 plus, 3/4 the same with 0x2000 for non-interactive NPCs, 5 the plus without a centre mark (a wraith until its post-create refresh; a corpse’s record on the client’s copy of the grid, and on the server’s for a monster re-created dead, § F5).
- Reserved landing: the mark four skill starts (Whirlwind, Leap, Leap Attack, Jump) make at the landing point before the flight, released on landing.
- Logic region: a level-wide area id given to the tiles of a room, one box for
Logicals 0 or by a flood around wall barriers for Logicals 1; the logic boxes are its rectangles.
- Special (monster): a random champion or unique boss, a champion-pack member, a preset special or a superunique; each raises the level’s live special count (
MonRegion+0x2C8), which MonUMin/MonUMax are compared with. Champion vs unique is rolled on the boss’s own seed (20 % champion).
- Champion pack: the 1–3 monsters of the boss’s class placed around a random champion, each also a champion.
- Minions: monsters placed around another one at creation: MonStats minions (
minion1/minion2, PartyMin..PartyMax) for every leader and member, or 3–6 unique minions for a unique boss.
- Mod (unique mod): a
MonUMod row index in a special monster’s 9-slot mod list (MonsterData+0x1C). A random champion draws one champion mod, a random unique 1 + difficulty unique mods, each by one weighted draw on its unit seed; a pack member gets mod 16. Mods with xfer are copied to a unique’s minions.
- Superunique: a named special built from its
SuperUniques row when a preset places it: fixed mods Mod1–Mod3, difficulty extra unique mods, MinGrp + d … MaxGrp + d minions, a per-record tail, and the questcomplete mod.
- Name seed: the low 16 bits of a special’s unit seed after the
rndname handler’s step (MonsterData+0x14). The server sends it; the client keeps its low byte and rolls a random unique’s name on Init(nameSeed & 0xFF), so only 256 such names exist.
- Player count (monster stats):
max(1, PlayerCount) at a monster’s creation (alive players raised to /players), for Align 0 classes; + 50 % hit points and experience per player beyond the first. Stored as stat 100 and never re-applied, so a live monster keeps its creation stats when the count changes.
- MonProp: a per-class table of up to six properties per difficulty applied to every monster of the class at creation (for example
thorns, crush), its value rolled on the monster’s unit seed.
- CDB (
ChampionDamageBonus): the DifficultyLevels percentage (90 / 75 / 66) that scales the damage and to-hit bonuses of champions, berserkers and strong uniques and minions; UniqueDamageBonus is never read.
- Credited player: the one player a kill’s experience is credited to: the killer, or the owner of the monster that killed (a state in the
exp mask can move it). The party, its level and the n = 1 payment are that player’s; the party distance is measured from the killed monster.
- Critter: an ambient monster (
Levels.cmon*) created client-side per room from the room seed, not from the monster pool.
- DRLG: Dynamic Random Level Generator, D2’s map generation system.
- Act / Level / Room: map hierarchy. A level (
Levels.txt row) is built from rooms; tiles come from DT1 and presets from DS1.
- Seed: an 8-byte RNG state
{low, high}. Every game object (game, act, level, room, unit…) owns one.
- Map seed: the 32-bit value from which every act’s, and so every level’s, seed is derived (
game+0x7C). It is set by -seed or from the clock.
- Draw: one step of one seed object, whether through
RNG_Range, RNG_RangePow2 or an inlined copy. Specs number draws per seed (draw#k).
- Level seed base: a value per act, the act seed’s first draw (
act+0x470). A level’s seed is Init(base + levelId).
- Game seed: the game’s seed object, separate from the map seed (
game+0xD0). Every server unit (monsters, objects, NPCs, items; players through their own paths) is seeded by one draw from it.
- DRLG room / active room: a DRLG room (
DrlgRoom.cpp) is the generator’s room record; activating it creates an active room (Dungeon.cpp) that holds units. Each has its own seed (drlgRoom+0x14, activeRoom+0x6C).
- Server / client act copy: every act is built twice in single player, once by the server and once by the client from the map seed the server sends. Gameplay is decided on the server copy.
.bin / .txt (excel): every table ships as tab-separated .txt source and compiled .bin (u32 count + fixed-size records). The game always loads the .bin; -direct -txt is the only way to run on .txt content.
- Expansion marker: a
.txt row whose first field is Expansion; it has no .bin record, so later records sit one lower than their .txt row.
- Link (excel): the game’s lookup object for one table: a sorted
{code, index} array (4-char codes, case-sensitive) or a name tree (lowercased, first match wins).
- Item index: position in the combined weapons + armor + misc array.
- TC index: 0 = empty TC, 1–160 = auto item-type TCs (
weap3… style, built from itemtypes), 161 + r = treasureclassex record r. monstats stores TCs this way.
- Distinct-Id ordinal: how compiled tables store a monster reference: the position of the
Id among distinct monstats Ids. The game uses it as a record position.
- DrlgType: a level’s generator, from
Levels.txt: 1 maze, 2 preset, 3 outdoor. The game dispatches on it twice, at level creation and at the build (LevelInit), which re-seeds the level first.
- Preset instance: one placement of an
LvlPrest record (a DS1 map) in a level, with the file index File(idx+1) drawn on the level seed (Range(Files)) or overridden. Its area is split into 8 × 8 DRLG rooms.
- Preset unit: a 0x20-byte record (type, id, mode, x/y in subtiles, flags, path) for one DS1 object entry: a monster (MonStats class, SuperUnique or MonPlace keyword by id range) or an object. It moves from the instance list to the list of the DRLG room that contains it, which the server walks to spawn it.
- Keep/drop roll: one draw per preset unit of ten ids (MonStats 204/205/371/372, MonPlace
place_group25/50/75, objects 196/261/581) that decides whether the unit is kept; once per preset instance, on the level seed (Scan or Pops set) or the first-loaded room’s seed.
- Room type (DRLG): a DRLG room’s type (
drlgRoom+0x48): 1 = outdoor room (grids from the outdoor generator, LvlSub substitutions), 2 = preset room (grids viewed from a DS1). Maze levels end up with type-2 rooms only.
- DT1 mask / DT1 list: in a DRLG room’s DT1 mask (
drlgRoom+0x50), bit i selects LvlTypes File i+1 of its level type; with three fixed files appended this is the list its tiles are picked from.
- k: the number of room-seed draws between a DRLG room’s re-seed from its stored seed (
drlgRoom+0x04) and its activation draw: LvlSub substitution draws, plus one per tile pick whose candidates’ rarity sum is positive, plus the Range(3) draws of Orient89Unit (the orientation-8/9 units). It fixes the active-room seed.
- Bit-2 path: the tile build of a cell with bit 2 set (every room border): it looks for the same cell’s tile in already built neighbour rooms and either adds a new tile or merges with the neighbour’s. It makes k depend on activation order.
- Boundary oracle: an out-of-scope callee that shares a seed with modelled code; a model asserts the seed going in and takes the logged seed coming out.
- Retired oracle / oracle-free population: a boundary oracle is retired when a model predicts, inside the composed chain, what an earlier reproduction took from the log; a room population counts as oracle-free when no seed is taken from the log in its presets-and-objects window or its pass.
- Revisit re-creation: a monster made again from its inactive record when its released room activates again: a new game-seed step, a new unit seed and a full
MonsterInit, and the same grid marks as a pass creation (a corpse’s when it was saved dead).
- Maze room: a DRLG room of the
LvlMaze size that the maze generator places edge to edge, links to its neighbours and gives a LvlPrest Def from its exits (W 1, E 2, S 4, N 8); after the generator each becomes a preset instance and is freed.
- Special room (maze): a Prev/Next/Down/Waypoint/quest record that a level type’s finisher puts on a dead-end maze room (or attaches as a new room), from a 4-entry table under a rotating index. In 47 of the 50 tables entry
r matches the dead end whose only exit is N, E, S, W; the three exceptions (Baal Next, Baal Waypoint, Ice Waypoint) keep that match and order their records differently, and the Temple tables and the single Lair and River of Flame entries are outside the rule.
- Theme (maze): the pass that locks up to
max(2, rooms/5 + 1) maze rooms as their Def + 15 (… Theme …) records after 31 level draws.
- Warp slot: the index m (bits 20–25) of a DS1 cell of orientation 10/11; it names
Vism (the destination) and Warpm (the LvlWarp Id) of the level and sets room flag 0x10 << m.
- Seam (level link): a
Vis slot that names a level (Vis ≠ 0) and whose Warp is −1: a walkable border between touching levels, not a warp. An empty slot (Vis 0, Warp −1) is not a seam.
- Act link builder:
LevelLinkBuild, the backtracking layout of an act’s outdoor levels on a copy of the act seed; it also writes the town orientation and level 27’s index.
- Outdoor cell: an 8 × 8-tile cell of a
DrlgType 3 level’s grid (cw = w ÷ 8 × ch = h ÷ 8). The outdoor generator marks each cell (border, seam opening, road, waypoint, shrine, covered, preset footprint with its file index in bits 16–19); each free cell becomes one out room (DRLG room type 1).
- File rotation (outdoor): the per-
Def counter that gives a preset placed with file −1 its file index: the first use in a build draws RangeB(Files) on the level seed, and every use takes (c + 1) % Files. The maze conversion uses the same per-Def rotation for the Defs above its level type’s base (MazePresetFile, step 9b of the DRLG overview).
- Seam opening: the mid cell of a border segment shared with another outdoor level, where the border piece takes index 3 (4 on Burial Grounds) and cell bit
0x400.
- Border stamp: an
LvlSub record with BordType ≠ −1 (Type 0–3, 12), applied by the outdoor generators to the cell grid as rewrite rules rather than rolled per room.
- Warp points: the level’s list of room centres (subtiles), one per room with a warp or waypoint flag, built after every level build and read by
NearWarpTest (level+0x1E0).
.d2s: a single-player character save, version 96: a 335-byte header, quest/waypoint/NPC blocks, the gf stat and if skill lists, and JM item lists, closed by a rotate-left-and-add checksum. Written twice per Save and Exit, checked when the character joins a game.
- Use kind: the entry of
g_ItemUseFns an item uses: a Books row’s pSpell when above 0, else Misc.pSpell.
- Use mark: item flag 4, set by
ItemUse; it tells an identify’s second request from its first.
- Page (inventory): the byte naming an item’s grid: 0 inventory, 1 and 2 trade, 3 cube, 4 stash,
0xFF on the cursor or the belt.
- Trade snapshot: the copy of a player’s whole item list, in the save format, that the server takes when a trade window opens (
TradeRecAlloc). Every cancel, close and abort rebuilds both inventories from it as new units, and a save mid-trade writes it instead of the live list.
- Trade state: a player’s trade word, 0–16: 1 and 2 requested, 3 open, 4 accepted, 7/8/11 after a change, 5/6 after a refused commit, 9/10 ended (
PlayerData+0x50).
- Ground drop start:
(x + 2, y + 3) from the dropper’s position, when the room or its near list holds it.
- Ground expiry: an item’s expiry word (
ItemData+0x24); 0 on a drop made through ItemCreate, ItemGroundExpiry on one placed by ItemPlaceOnGround, tested by the 1 500-frame sweep.
- Simple item (compact item): an item saved without the extended part (flags bit 21, from the record’s
compactsave): no seed, ilvl or quality; it loads with seed 0, ilvl 1 and normal quality.
- Property list: a saved item’s stat list: per stat a 9-bit id, an optional param and a value offset by
ItemStatCost.Save Add, ended by 0x1FF; some ids carry their followers’ values with no id of their own.
- Base stats (item): the values
ItemInitStats writes before the quality switch, on the item unit’s seed (not the item seed): quantity, current and max durability, defense, weapon damage, and the picture variant.
- Property block: one
(code, par, min, max) 16-byte cell group of an item table row (prop1, mod1code…); code is a Properties row whose up to 7 func/stat slots turn it into stat-list entries, with at most one value draw (none when min = max).
- prev (property slot): slot 1’s return value inside one property block, handed to slots 2..7; “reuse” funcs take it instead of rolling unless it is 0.
- Ethereal: an item flag: base damage or defense ×3/2, max durability halved + 1. A drop gets it from one
Range(100) < 5 on the item seed in an expansion game (weapons and armour with durability, not low or set quality).
- Object-region seed: the seed of the object-region record the game points to (
game+0x10F0), built at game creation from game-seed draw 2. One stream per game: the object handlers, every InitFn, the PreOperate roll, the operate handlers and the object timer events all draw it, in game order.
- Object group (ObjGroup): up to eight object classes with
PROB (cumulative percentages against one draw) and DENSITY (a count factor). A level names up to eight groups in ObjGrp0..7, each passing with chance (ObjPrb + 1)/100 per room.
- Sparkle chest (super chest): a chest whose sparkle flag is set (
unit+0x78), by DS1 pseudo-object 580 or InitFn 57. On operate it forces quality 6 (rare, chance 5/100) or 4 (magic) on every drop of the act chest TC and repeats the drop until one item is magic or better.
- PreOperate: an Objects column; such an object is created opened (mode 2) when
Range(O, 14) = 0.
- String index: the u16 an excel record or the code stores for a text: 0–9999
string.tbl, 10000–19999 patchstring.tbl, 20000+ expansionstring.tbl (base + entry). Resolved at run time by STRTABLE_GetByIndex.
- String key: the ASCII name of a
.tbl entry (GloomUM, dummy); looked up in patchstring, then expansionstring, then string, case-sensitively. A key found nowhere gives index 0 and the “not xlated” placeholder text; an excel cell gives 5382.
- Socket filler (child): a gem, rune or jewel (item type
sock) put into a socketed item (the parent). A gem or rune applies one fixed 3-block group of its gems row, picked by the parent’s gemapplytype (0 weapon, 1 helm and body armour, 2 shield), into its own stat list, which is linked to the parent; a jewel brings its own rolled list. No draw.
- Runeword: a
Runes row matched when the children of a full, non-magic socketed item equal Rune1..k in socket (insertion) order and the base is of an itype. The parent gets flag bit 26 and a state-171 list rolled on the item seed of the child that completed it.
- Stub (new-character save): the 335-byte header-only
.d2s the client writes when a character is created, status bit 0 set. The server clears the bit and builds the character from CharStats instead of reading sections.
- Starter item: an item of a new character’s kit (
CharStats item1..item10), flag 0x20000 (save flag bit 17): normal quality, ilvl = the character’s level, identified, created from two game-seed steps per copy.
- ExpRatio: the
Experience column that scales kill experience at the player’s level, exp × ExpRatio >> 10 (1024 = 100 %, falling from level 70 to 5 at 99).
- Calc formula (calc cell,
*code.bin): an excel cell holding an expression (min(24,ln12), (lvl < 4) ?lvl:(2+lvl/3)) rather than a number. The shipped tables store an s32 offset into one of four bytecode pools (skillscode, skilldesccode, misscode, itemscode), −1 when blank; the game evaluates the postfix bytes with a context (unit, skill, level). Variables are skillcalc/misscalc codes, functions min max rand skill miss stat sklvl.
- Quest record, word, bit: a player’s 768 quest bits for one difficulty; “word q, bit s” is bit
16q + s. Bit 1 is set when a quest is done in a game and the reward not yet taken, bit 0 when it is finished, bit 15 by the save loader from a saved bit 1.
- Quest TC: a monster’s
TreasureClass4 column, used instead of its usual TC while the killer’s quest word (TCQuestId) has bits 15, 1 and TCQuestCP clear; five act bosses have one. Community name: “quest drop”.
- Quest seed: the game-wide seed of the quest record, seeded from one game-seed step when the game is created (draw 4); quest scripts draw their special drops (Andariel’s gems, the Hellforge’s gems and rune) on it (
QuestControl+0x18, Game+0x10F4).
- Game record: the game-wide copy of the quest record (
QuestControl+0x0C): bit 13 of a word marks a quest step done in this game, bit 15 that the game’s first player had already finished the quest. Object inits and warp gates read it.
- Switched-off quest: a quest the first player of a game had finished (bit 0 or 15); the join deactivates its quest object for the game, which then gets only forced events.
- Position level: a level whose
Levels.Position is set (18 levels, the towns among them); a player placed there at any point type but 13 steps the level’s seed once.
- Town portal pair: the class-59 field end and its town partner that a scroll or book opens, one pair per player; opening one draws game seed, the town’s level seed, game seed.
- Imbue: Charsi’s reward: a low, normal or superior item is rebuilt as a new rare of the same base at ilvl = clvl + 4 (clvl when ≤ 5), on fresh seeds.
- AR / DEF (attack rating, defence): the two terms of the chance to hit,
100·AR/(AR+DEF) then × 2·alvl/(alvl+dlvl), clamped 5..95. A player’s AR is (dex − 7)·5 + stat 19 + ToHitFactor raised by its percent; DEF is stat 31 + dex/4 raised by its percents. Here alvl/dlvl are the attacker’s and defender’s unit levels, not the affix level.
- Damage packet: the 0x70-byte record of one hit (physical, elements, lengths, steal fields, result word), built on the attacker’s seed, reduced on the defender, queued on the attacker and delivered.
- DR / MDR: damage reduction (stat 34) and magic damage reduction (stat 35), flat amounts subtracted from physical and from fire, lightning, cold and magic before resistance; a field they push below 0 skips the resistance.
- Crushing blow: an on-hit stat event that removes
life ÷ k of the defender’s current life (k 4 for monsters and uniques, 8 for act bosses and superuniques, 10 for players and hirelings, raised by the monster’s player count).
- Open wounds: an on-hit stat event that puts a 200-frame bleed state (stat 74 = −dmg per frame, level-banded) on the defender.
- Leech (life and mana steal): the attacker regains a percent of the reduced physical damage it dealt, divided by
LifeStealDivisor/ManaStealDivisor for players and scaled by the monster’s Drain.
- Stat list, full value: a unit’s stats live in a tree of stat lists (its own entries, its items’ lists, set-bonus and state lists). The full value of a stat is the unit list’s cached entry (
StatList+0x48), kept up to date by propagating every write, link and unlink up the tree; nothing is summed when a stat is read. The base value is the unit’s own entry.
- op (ItemStatCost): a row’s derivation of other stats (
op stat1..3) from its value: a percentage (1, 11, 13), a per-level term (2–5, by op base level), a time-of-day term (6, 7), the attribute-to-maximum terms (8 energy → mana, 9 vitality → life and stamina).
- Timed state: a state put on a unit by
STATE_ApplyTimed with a duration in frames: a bit plus a stat list freed at frame + duration. The same skill at the same level refreshes it, at a lower level is refused, anything else replaces it; a curse replaces any other curse, shrine states included.
- State group: the States
group column. States of one non-zero group exclude one another only where a caller runs the group clear (use kinds 6 and 9, not healing or mana potions; the state stat; some skills), not in the apply.
- perdelay grid: an aura runs on frames
((frame − 1 + p) ÷ p)·p + 1, p the skill’s perdelay (at least 5), and gives its targets a state lasting one frame past the next run (51 frames for Prayer).
- Start function, do function (
srvstfunc, srvdofunc): the two numbered server functions of a Skills row. The start function runs at the skill mode’s start (and may build and queue a melee hit there), the do function on the mode’s action frame, once per mode, guarded by the unit’s action-done bit 6 (Unit+0xC4); after it, the row’s srvmissile is created and the cost, ammunition and delay are settled.
- Progressive charges, finisher: an Assassin charge-up skill adds up to 3 charges to a timed state on a hit; a later normal attack or finishing move runs the finisher, which peeks the attacker’s seed and runs the row’s
srvprgfunc entries for the charges.
- Missile (server): a unit of type 3 with its own seed from the game seed, a range counted in frames, a collide type that is also its mode, and do, hit and damage function numbers; its weapon damage is fixed when it is created.
- Pet type, pet limit: the PetType row a summon belongs to; a new summon removes the owner’s pets of the other types of its
group and, while its own type is above petmax, the first pet of its list.
- Scheduled mode / every-frame mode: the two clocks of a unit’s mode. A scheduled mode (a player’s attack, cast, get-hit, block; most monster attacks) queues all its frame events and its end at its start; an every-frame mode (walking, running, knockback, a monster’s sequence and
*mv modes) runs one event per game frame.
- Frame event, event code: a unit event of kind 0 queued for a frame whose
animdata.d2 (or sequence) event byte is 1–4; codes 1 and 2 run a player’s do function (the community’s “action frame”). Kind 1 is the mode end.
- Breakpoint: the least rate stat (IAS, FCR, FHR, FBR) that shortens a mode by a whole game frame; derived from the length
n = max(2, ⌈256 (F − S) / r⌉) and the rate, not a table in the game. Community tables count N = n − 1, the interval a held button gives with the stock client.
- Hit recovery (get-hit): player mode 4, monster mode 3, entered when
GetHitRoll passes; its length is the get-hit record’s schedule at the FHR rate.
- Path type, planner: a path’s type,
0..16 (path+0x3C), selects the planner PathPlan calls and the flags PathSetType copies.
testMask, markMask: a path’s two collision masks: testMask, the bits a plan or a step refuses (path+0x50); markMask, the bits the unit writes into the grid (path+0x4C).
- Live grid: the collision cells as they are at a planner call, the result of the marks and unmarks in order, not a union of holders.
- Path speed: a moving unit’s speed on its path (
path+0x7C), (WalkVelocity or Velocity << 8) · max(B_FRW + stat 67, 25) / 100; it moves v / 16 subtiles per frame along an axis.
- AI event: monster event kind 2, one run of
MonAiEvent: the pre-checks, the target search, the walk check and the think function. It comes due on a frame or is called at a mode’s end, not every frame.
- Think function: the function an AI row installs in
AiCtl.think, one decision per call; a decision is that call.
- AI state: a word of the unit’s AI control record (
AiCtl+0x00). Non-zero, it selects a row of the second table instead of the class’s. Not the unit’s mode.
- Tier AI: one of the 18 AI rows whose decisions are reproduced one by one (the Monster AI page lists them); their entries are in the AI machinery spec.
aip: the eight per-difficulty MonStats slots aip1..aip8 of a monster’s class. What each slot means is per AI row, read from its think.
- AI catalogue: one entry per row of the AI table (148) and of the state table (18), the tier AIs by link.
- Town chain: the steps a town NPC’s think runs in order,
AiNpcSaveHome, AiNpcNearPlayer, AiNpcScriptStep, AiNpcPathPick, each ending the event when it commands.
- Threat score: the pick’s number for a candidate target of Diablo or Baal, from the candidate’s stats, skills, life and distance.
- First boundary: a decision’s first call, from the think code, of a function the emulation treats as a boundary.
- Rank: a place in the server frame, 1
ActsClockPass to 20 the sweep tick, 4 to 13 the ten walks of the unit events, 21 what runs between two ticks with the same stamp, the drain first.
- Walk, every-frame list, slot list: one of the ten runs of
GameRunUnitEvents. A unit type has an every-frame list, newest queued first, and a 64-slot ring of timed records, each slot oldest queued first and only records due this frame running.
- Frame window: a run of consecutive frames in one scene with every event, queue call and LCG step logged and each entry seed asserted, none resynchronised.
- Shared seed: a seed two units’ or two rooms’ draws in one frame can both step, so their order decides the values; five kinds.
- Touch: a step on a unit’s or room’s seed while another unit’s event or a room’s walk is open.
- Activation-order record: what a log-free build takes per frame to know which rooms are created in which order; its client half needs a movement model.