=Item Modifier Determination=
The process of determining which affixes (prefixes and suffixes) can occur on a given item in ''Diablo II'' is very complicated. Check out the [[Item_Generation_Tutorial#Affix_selection|Item Generation Tutorial ]] for a full run down. The gist of the process is that items have a quality level (Qlvl) which the game uses to determine which affixes (based on their Alvl) can possibly appear on that item. From the valid pool of modifiers (based on item type and Qlvl) it then selects one or more modifiers.
For item drops (by monsters or chests) the item's Qlvl is determined by the monster's level, or the Ilvl of the area in which the chest was found. For gambling, Qlvl is determined by the level of the character gambling, with some randomness thrown in.
* Diadems: 18
Thus, a coronet gambled by a level 70 character would have a Qlvl of 78, and level 82 characters are guaranteed to have a chance at +2 skills (Alvl 90) when gambling coronets.
=Item Type Determination=