Tes4Mod:Mod File Format/LVLI
The UESPWiki – Your source for The Elder Scrolls since 1995
LVLI records hold information on leveled item list. Subrecords known to occur in an LEVI record include (confirmed):
-
- EDID (required): Editor ID (variable length string)
- LVLD (required): Chance none value (1 byte)
- LVLF (required): Level list flags (1 byte)
- LVLO (optional, mult): Level list item (12 bytes or 8 bytes)
- DATA (optional): Only occurs in a couple LVLI records in oblivion.esm (1 byte)
[edit] LVLF Subrecord
This 1 byte (confirmed) subrecord stores the leveled list flags.
- 0x01 = Calculate for All Levels <= Player's Level
- 0x02 = Calculate for Each Item in Count
Some of the older leveled list entries do not have an LVLF subrecord. Instead, the high-order bit of the LVLD subrecord is used for the "calculate for all levels <= player's level" flag.
[edit] LVLO Subrecord
There will be one of these 12 byte or 8 byte (confirmed, almost always 12 byte) subrecords for each item in the list.
| Name | Type/Size | Info |
|---|---|---|
| Level | 2 (word) | Item level |
| Unknown1 | 2 (word) | ? |
| FormID | 4 (dword) | Item form ID |
| Count | 2 (word) | Item count |
| Unknown2 | 2 (word) | ? |
For new ESPs the Unknown1/Unknown2 seem to be the same value (0x02D6). The values vary in Oblivion.esm and are not always the same.

![[Content is available under Attribution-ShareAlike]](http://www.uesp.net/w/images/Somerights.png)