Morrowind Mod:Mod File Format/NPC
The UESPWiki – Your source for The Elder Scrolls since 1995
NPC_ records contain information on NPCs.
C | Field | Type/Size | Info |
---|---|---|---|
+ | NAME | zstring | ID string |
- | MODL | zstring | NIF model |
- | FNAM | zstring | Name |
+ | RNAM | zstring | Race name |
+ | CNAM | zstring | Class name |
- | ANAM | zstring | Faction name |
+ | BNAM | zstring | Head model |
- | KNAM | zstring | Hair model |
- | SCRI | zstring | Script name |
+ | NPDT | struct (12 or 52 bytes) |
NPC data
12-byte version (autocalc flag set)
52-byte version (autocalc flag clear)
|
+ | FLAG | uint32 | NPC flags
|
* | NPCO | struct (36 bytes) |
Carried object
|
* | NPCS | char[32] | Spells |
- | AIDT | struct (12 bytes) |
AI data
|
* | DODT | struct (24 bytes) |
Cell Travel Destination
|
|
zstring | Cell name for previous DODT, if interior | |
AI Packages - the following fields can appear in any order, one per AI package, with the order defining the package priority.
Note: duration parameters in all packages are in hours. Any value greater than 24 should be divided by 100, and set to 24 if still greater than 24. The unknown value for each package seems to be an end-of-data marker; it is always a byte value set to 1 with any remaining data in the structure undefined and ignored. |
|||
* | AI_A | struct (33 bytes) |
Activate package:
|
AI_E | struct (48 bytes) |
Escort package:
|
|
|
zstring | Cell escort string (optional) | |
AI_F | struct (48 bytes) |
Follow package:
|
|
|
zstring | Cell follow to string (optional) | |
AI_T | struct (16 bytes) |
Travel package:
|
|
AI_W | struct (14 bytes) |
Wander package:
|