Tes4Mod:Save File Format/NPC
The UESPWiki – Your source for The Elder Scrolls since 1995
Contents |
[edit] Overview
Order of subrecords inside record:
- Form Flags
- Base Attributes
- Base Data
- Factions
- Spell List
- AI Data (1)
- Base Health
- Base Modifiers
- Full Name (2)
- Skills
(1) AI Data's position is not certain. It might be also before Spell List.
(2) Full Name's position is not certain. It might be also before Base Modifiers.
[edit] Form Flags (0)
Subrecords interpretation is still unknown.
This subrecord is used in BOOK, WEAP, ACHR, ACRE, NPC_, REFR, KEYM record types.
| Name | Type/Size | Info |
|---|---|---|
| flags | ulong | Flags related to record's form id ?Unknown interpretation? |
[edit] Base Health (2)
Character's base health. Subrecords interpretation is still unknown.
This subrecord is used in NPC_ record types.
| Name | Type/Size | Info |
|---|---|---|
| unknown1 | ulong |
[edit] Base Attributes (3)
Character's or creature's base attributes.
This subrecord is used in NPC_, CREA record types.
| Name | Type/Size | Info |
|---|---|---|
| strength | ubyte | |
| intelligence | ubyte | |
| willpower | ubyte | |
| agility | ubyte | |
| speed | ubyte | |
| endurance | ubyte | |
| personality | ubyte | |
| luck | ubyte |
[edit] Base Data (4)
This data seem to follow Tes4Mod:Mod_File_Format/NPC ACBS format.
This subrecord is used in NPC_, CREA record types.
| Name | Type/Size | Info | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| flags | ulong | Flags
|
||||||||||||||||||||||||
| baseSpell | ushort | Base spell points. ??For player character this 0 - maybe also for other non-auto-calc NPCs. Why? Where is actual base spell value stored?? | ||||||||||||||||||||||||
| fatigue | ushort | Fatigue. ??For player character this 0 - maybe also for other non-auto-calc NPCs. Why? Where is actual fatigue value stored?? | ||||||||||||||||||||||||
| unknown1 | ushort | ??Unused?? | ||||||||||||||||||||||||
| level | short | Level/Offset level. | ||||||||||||||||||||||||
| calcMin | ushort | Minimal calculated level. | ||||||||||||||||||||||||
| calcMax | ushort | Maximal calculated level. |
[edit] Spell List (5)
Spell's that character or creature knows.
This subrecord is used in NPC_, CREA record types.
| Name | Type/Size | Info |
|---|---|---|
| spellCount | ushort | |
| spellIds | iref[spellCount] | Array of spell Irefs. |
[edit] Factions (6)
Subrecords interpretation is not yet fully understood. This subrecord is listing character's factions and character's relationship with factions.
This subrecord is used in NPC_ record types.
| Name | Type/Size | Info |
|---|---|---|
| factionsNum | ushort | Number of factions. |
| faction | struct[factionsNum] | Character's factions. |
|
iref | Faction's iref ?Actually I am not sure is this iref - but it should be...?' |
|
byte | ?Not sure about interpretation yet. I am assuming that 0xFF is used when character is disliked by faction. This would mean that this is either signed byte - or 0xFF have special meaning.? |
[edit] Full Name (7)
Character's or cell's name. This is used when object's name changes. For example from: "Shack for Sale" to "My Imperial City House".
This subrecord is used in NPC_, CELL record types.
| Name | Type/Size | Info |
|---|---|---|
| fullName | bstring | New full name for character or cell. |
[edit] AI Data (8)
This subrecord's length is constant 4 bytes.
This subrecord is used in NPC_, CREA record types.
| Name | Type/Size | Info |
|---|---|---|
| unknown1 | ulong | Constant length of observed subrecords. |
[edit] Skills (9)
Character's skills.
This subrecord is used in NPC_ record types.
| Name | Type/Size | Info |
|---|---|---|
| armorer | ubyte | |
| athletics | ubyte | |
| blade | ubyte | |
| block | ubyte | |
| blunt | ubyte | |
| handToHand | ubyte | |
| heavyArmor | ubyte | |
| alchemy | ubyte | |
| alteration | ubyte | |
| conjuration | ubyte | |
| destruction | ubyte | |
| illusion | ubyte | |
| mysticism | ubyte | |
| restoration | ubyte | |
| acrobatics | ubyte | |
| lightArmor | ubyte | |
| marksman | ubyte | |
| mercantile | ubyte | |
| security | ubyte | |
| sneak | ubyte | |
| speechcraft | ubyte |
[edit] Base Modifiers (28)
Subrecords interpretation is not yet fully understood.
This subrecord is used in NPC_ record types.
| Name | Type/Size | Info |
|---|---|---|
| modCount | ushort | |
| modifiers | struct[modCount] | |
|
ubyte | |
|
ulong |

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