NPC_ Record – Non-Player Character
NPC_ record type.
Classes:
|
Non-Player Character. |
-
class
NPC_(flags, id, revision=0, version=15, unknown=b'\x00\x00', data=[])[source] Bases:
RecordNon-Player Character.
- Parameters
Classes:
CNAM([cstring])Class.
DATA(base_health, strength, perception, ...)Health and SPECIAL attributes.
DNAM(barter, big_guns, energy_weapons, ...)Skills.
EAMT(value)Unarmed Attack Animation.
EITM([cstring])Unarmed Attack Effect.
ENAM([cstring])Eyes.
FGGA([iterable])FaceGen Geometry-Asymmetric.
FGGS([iterable])FaceGen Geometry-Symmetric.
FGTS([iterable])FaceGen Texture-Symmetric.
FULL([cstring])Name.
HCLR([cstring])Hair Color.
HNAM([cstring])Hair.
INAM([cstring])Death Item.
LNAM(*args, **kwargs)Hair Length.
NAM4(value)Impact Material Type.
NAM5(*args, **kwargs)Unknown.
NAM6(*args, **kwargs)Height.
NAM7(*args, **kwargs)Weight.
PKID([cstring])Package.
PNAM([cstring])Head Part.
RNAM([cstring])Race.
SCRI([cstring])Script.
SPLO([cstring])Actor Effect.
TPLT([cstring])Template.
VTCK([cstring])Voice.
ZNAM([cstring])Combat Style.
Attributes:
Subrecords of this record.
Record flags
4-byte form ID
Used for revision control by the Creation Kit, if enabled.
Form version
Methods:
parse_subrecords(raw_bytes)Parse this record's subrecords.
-
class
CNAM(cstring: Union[str, bytes] = b'')[source] Bases:
FormIDRecordClass.
Form ID of a
CLASrecord.
-
namedtuple
DATA(base_health, strength, perception, endurance, charisma, intelligence, agility, luck)[source] Bases:
NamedTupleHealth and SPECIAL attributes.
- Fields
base_health (
int) – Alias for field number 0strength (
int) – Alias for field number 1perception (
int) – Alias for field number 2endurance (
int) – Alias for field number 3charisma (
int) – Alias for field number 4intelligence (
int) – Alias for field number 5agility (
int) – Alias for field number 6luck (
int) – Alias for field number 7
-
class
DNAM(barter, big_guns, energy_weapons, explosives, lockpick, medicine, melee_weapons, repair, science, small_guns, sneak, speech, survival, unarmed, barter_offset, big_guns_offset, energy_weapons_offset, explosives_offset, lockpick_offset, medicine_offset, melee_weapons_offset, repair_offset, science_offset, small_guns_offset, sneak_offset, speech_offset, survival_offset, unarmed_offset)[source] Bases:
StructRecordSkills.
- Parameters
barter (
int)big_guns (
int)energy_weapons (
int)explosives (
int)lockpick (
int)medicine (
int)melee_weapons (
int)repair (
int)science (
int)small_guns (
int) – ‘Guns’ in Fallout New Vegassneak (
int)speech (
int)survival (
int) – Unused Throwing skill in Fallout 3unarmed (
int)barter_offset (
int)big_guns_offset (
int)energy_weapons_offset (
int)explosives_offset (
int)lockpick_offset (
int)medicine_offset (
int)melee_weapons_offset (
int)repair_offset (
int)science_offset (
int)small_guns_offset (
int)sneak_offset (
int)speech_offset (
int)survival_offset (
int) – Unused Throwing skill in Fallout 3unarmed_offset (
int)
Attributes:
'Guns' in Fallout New Vegas
Unused Throwing skill in Fallout 3
Unused Throwing skill in Fallout 3
Methods:
Returns a list of attributes on this class in the order they should be packed.
Returns the pack/unpack struct string and the corresponding size.
-
static
get_field_names()[source] Returns a list of attributes on this class in the order they should be packed.
-
class
EAMT(value)[source] Bases:
IntEnumFieldUnarmed Attack Animation.
Methods:
parse(raw_bytes)Parse this subrecord.
unparse()Turn this subrecord back into raw bytes for an ESP file.
-
class
ENAM(cstring: Union[str, bytes] = b'')[source] Bases:
FormIDRecordEyes.
Form ID of a
EYESrecord.
-
class
FGGA(iterable=(), /)[source] Bases:
FaceGenRecordFaceGen Geometry-Asymmetric.
-
class
FGGS(iterable=(), /)[source] Bases:
FaceGenRecordFaceGen Geometry-Symmetric.
-
class
FGTS(iterable=(), /)[source] Bases:
FaceGenRecordFaceGen Texture-Symmetric.
-
class
HCLR(cstring: Union[str, bytes] = b'')[source] Bases:
BytesRecordTypeHair Color.
RGBA as bytes.
Methods:
parse(raw_bytes)Parse this subrecord.
unparse()Turn this subrecord back into raw bytes for an ESP file.
-
class
HNAM(cstring: Union[str, bytes] = b'')[source] Bases:
FormIDRecordHair.
Form ID of a
HAIRrecord.
-
class
INAM(cstring: Union[str, bytes] = b'')[source] Bases:
FormIDRecordDeath Item.
Form ID of a
LVLIrecord.
-
class
LNAM(*args, **kwargs)[source] Bases:
Float32RecordHair Length.
-
class
NAM4(value)[source] Bases:
IntEnumFieldImpact Material Type.
Methods:
parse(raw_bytes)Parse this subrecord.
unparse()Turn this subrecord back into raw bytes for an ESP file.
-
class
NAM5(*args, **kwargs)[source] Bases:
Uint16RecordUnknown.
-
class
NAM6(*args, **kwargs)[source] Bases:
Float32RecordHeight.
-
class
NAM7(*args, **kwargs)[source] Bases:
Float32RecordWeight.
-
class
PKID(cstring: Union[str, bytes] = b'')[source] Bases:
FormIDRecordPackage.
Form ID of a
PACKrecord.
-
class
PNAM(cstring: Union[str, bytes] = b'')[source] Bases:
FormIDRecordHead Part.
Form ID of a
HDPTrecord.
-
class
SCRI(cstring: Union[str, bytes] = b'')[source] Bases:
FormIDRecordScript.
Form ID of a
SCPTrecord.
-
class
SPLO(cstring: Union[str, bytes] = b'')[source] Bases:
FormIDRecordActor Effect.
Form ID of a
SPELrecord.
-
class
VTCK(cstring: Union[str, bytes] = b'')[source] Bases:
FormIDRecordVoice.
Form ID of a
VTYPrecord.
-
class
ZNAM(cstring: Union[str, bytes] = b'')[source] Bases:
FormIDRecordCombat Style.
Form ID of a
CSTYrecord.
-
data Type:
List[RecordType]