Morrowind Mod:Mod File Format/CELL

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

CELL records contain information about cells (both interior and exterior).

C Field Type/Size Info
+ NAME zstring Cell Name. Unlike other NAME fields, this is the localized, human-readable name of the cell, not a language-agnostic ID string. Exterior regions are mostly empty strings; for these, the region name is used in the Construction Set.
+ DATA struct
(12 bytes)
uint32 - Flags
0x01 = Interior
0x02 = Has Water
0x04 = Illegal to Sleep here
0x80 = Behave like exterior (Tribunal)
int32 - Grid X
int32 - Grid Y
- RGNN zstring Region name (exterior and like-exterior only)
- NAM5 rgb Map color (exterior and like-exterior only)
- WHGT float32 Water height (interior only)
- AMBI struct
(16 bytes)
Ambient light
rgb - Ambient color
rgb - Sunlight color
rgb - Fog color
float - Fog density
* Moved Reference[] Moved references
* Form Reference[] Persistent Children
- NAM0 uint32 Count of Temporary Children
* Form Reference[] Temporary Children
Moved Reference
These only appear in mod files when creatures or NPCs are moved from one cell to another; they commonly appear in saved game files as things move around.
+ MVRF uint32 Reference ID (always the same as the attached FRMR value)
- CNAM zstring Name of the cell the reference was moved to (interior cells only)
- CNDT struct
(8 bytes)
Coordinates of the cell the reference was moved to (exterior cells only)
int32 - Grid X
int32 - Grid Y
- Form Reference Reference to the form that was moved
Form Reference
References to objects in cells are listed as part of the cell data, each beginning with FRMR and NAME fields, followed by a list of fields specific to the object type.
+ FRMR uint32 Reference ID
+ NAME zstring Object ID or "PlayerSaveGame"
- UNAM uint8 Reference blocked (value is always 0; present if Blocked is set in the reference's record header, otherwise absent)
- XSCL float32 Reference's scale, if applicable and not 1.0
- ANAM zstring NPC ID, if applicable (NPC-only)
BNAM zstring Global variable name
- CNAM zstring Faction ID (not light, NPC, or static)
INDX
uint32 Faction rank
- XSOL zstring ID of soul in gem (soul gems only)
- XCHG float32 Enchantment charge (charged items with non-zero charges)
- INTV depends on
object type
Remaining usage
  • uint32 - health remaining (weapons and armor)
  • uint32 - uses remaining (locks, probes, repair items)
  • float32 - time remaining (lights)
- NAM9 uint32 Value
* DODT struct
(24 bytes)
Cell Travel Destination (Rotations are in radians)
float32 - Position X
float32 - Position Y
float32 - Position Z
float32 - Rotation X
float32 - Rotation Y
float32 - Rotation Z
DNAM
zstring Cell name for previous DODT, if interior
- FLTV uint32 Lock difficulty
- KNAM zstring Key name
- TNAM zstring Trap name
- ZNAM uint8 Reference is disabled (always 0). Like UNAM, this will be emitted if the relevant flag is set in the reference's record header. This may only be possible via scripting. Also, even if present in the file, the field appears to be ignored on loading.
- DATA struct
(24 bytes)
Reference position (Rotations are in radians)
float32 - Position X
float32 - Position Y
float32 - Position Z
float32 - Rotation X
float32 - Rotation Y
float32 - Rotation Z