Tes4Mod:Save File Format/NPC

The UESPWiki – Your source for The Elder Scrolls since 1995

Jump to: navigation, search

Contents

[edit] Overview

Order of subrecords inside record:

  1. Form Flags
  2. Base Attributes
  3. Base Data
  4. Factions
  5. Spell List
  6. AI Data (1)
  7. Base Health
  8. Base Modifiers
  9. Full Name (2)
  10. 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
Flag Meaning
0x00000001 Female
0x00000002 Essential
0x00000008 Respawn
0x00000010 Auto-calc stats
0x00000080 PC Level Offset
0x00000200 No Low Level Processing
0x00002000 No Rumors
0x00004000 Summonable
0x00008000 No Persuasion
0x00100000 Can Corpse Check
0x40000000 Unknown1
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.
faction
iref Faction's iref ?Actually I am not sure is this iref - but it should be...?'
factionRank
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]
unknown1
ubyte
unknown2
ulong
Sponsored Links
Personal tools