CREA Record – Creature

CREA record type.

Classes:

CREA(flags, id[, revision, version, ...])

Creature.

class CREA(flags, id, revision=0, version=15, unknown=b'\x00\x00', data=[])[source]

Bases: Record

Creature.

Parameters
  • flags (int)

  • id (bytes)

  • revision (int) – Default 0.

  • version (int) – Default 15.

  • unknown (bytes) – Default b'\x00\x00'.

  • data (List[RecordType]) – Default [].

Classes:

BNAM(*args, **kwargs)

Base Scale.

CNAM([cstring])

Impact Dataset.

CSCR([cstring])

Form ID of a CREA record to inherit sounds from.

CSDC(*args, **kwargs)

Sound Chance.

CSDI([cstring])

Sound.

CSDT(value)

Sound Type.

DATA(type, combat_skill, magic_skill, ...)

Data.

DataTypeEnum(value)

Enum for CREA.DATA.type.

EAMT(*args, **kwargs)

Unarmed Attack Animation.

EITM([cstring])

Unarmed Attack Effect.

FULL([cstring])

Name.

INAM([cstring])

Death Item.

KFFZ([iterable])

Animatons.

LNAM([cstring])

Melee Weapon List.

NAM4(*args, **kwargs)

Impact Material Type.

NAM5(*args, **kwargs)

Sound Level.

NIFT([iterable])

Texture File Hashes.

NIFZ([iterable])

Model List.

PKID([cstring])

Package.

PNAM([cstring])

Body Part Data.

RNAM(*args, **kwargs)

Attack Reach.

SCRI([cstring])

Script.

SNAM(faction, rank, unused)

Faction.

SPLO([cstring])

Actor Effect.

TNAM(*args, **kwargs)

Turning Speed.

TPLT([cstring])

Template.

VTCK([cstring])

Voice.

WNAM(*args, **kwargs)

Foot Weight.

ZNAM([cstring])

Combat Style.

Attributes:

data

Subrecords of this record.

flags

Record flags

id

4-byte form ID

revision

Used for revision control by the Creation Kit, if enabled.

unknown

version

Form version

Methods:

parse_subrecords(raw_bytes)

Parse this record's subrecords.

class BNAM(*args, **kwargs)[source]

Bases: Float32Record

Base Scale.

class CNAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Impact Dataset.

Form ID of a IPDS record.

class CSCR(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Form ID of a CREA record to inherit sounds from.

class CSDC(*args, **kwargs)[source]

Bases: Uint8Record

Sound Chance.

class CSDI(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Sound.

Form ID of a SOUN record, or null.

class CSDT(value)[source]

Bases: IntEnumField

Sound Type.

Methods:

parse(raw_bytes)

Parse this subrecord.

unparse()

Turn this subrecord back into raw bytes for an ESP file.

classmethod parse(raw_bytes)[source]

Parse this subrecord.

Parameters

raw_bytes (BytesIO) – Raw bytes for this record

Return type

Self

unparse()[source]

Turn this subrecord back into raw bytes for an ESP file.

Return type

bytes

class DATA(type, combat_skill, magic_skill, stealth_skill, health, unused, damage, strength, perception, endurance, charisma, intelligence, agility, luck)[source]

Bases: StructRecord

Data.

Parameters
  • type

  • combat_skill (int)

  • magic_skill (int)

  • stealth_skill (int)

  • health (int)

  • unused (bytes)

  • damage (int)

  • strength (int)

  • perception (int)

  • endurance (int)

  • charisma (int)

  • intelligence (int)

  • agility (int)

  • luck (int)

Attributes:

agility

charisma

combat_skill

damage

endurance

health

intelligence

luck

magic_skill

perception

stealth_skill

strength

type

unused

Methods:

get_field_names()

Returns a list of attributes on this class in the order they should be packed.

get_struct_and_size()

Returns the pack/unpack struct string and the corresponding size.

agility

Type:    int

charisma

Type:    int

combat_skill

Type:    int

damage

Type:    int

endurance

Type:    int

static get_field_names()[source]

Returns a list of attributes on this class in the order they should be packed.

Return type

Tuple[str, …]

static get_struct_and_size()[source]

Returns the pack/unpack struct string and the corresponding size.

Return type

Tuple[str, int]

health

Type:    int

intelligence

Type:    int

luck

Type:    int

magic_skill

Type:    int

perception

Type:    int

stealth_skill

Type:    int

strength

Type:    int

type

Type:    DataTypeEnum

unused

Type:    bytes

class DataTypeEnum(value)[source]

Bases: IntEnum

Enum for CREA.DATA.type.

class EAMT(*args, **kwargs)[source]

Bases: Uint16Record

Unarmed Attack Animation.

https://tes5edit.github.io/fopdoc/Fallout3/Records/Values/Attack%20Animations.html

class EITM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Unarmed Attack Effect.

Form ID of a ENCH or SPEL record.

class FULL(cstring: Union[str, bytes] = b'')[source]

Bases: CStringRecord

Name.

class INAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Death Item.

Form ID of a LVLI record.

class KFFZ(iterable=(), /)[source]

Bases: BytesArrayRecord

Animatons.

An array of animation filenames (.kf).

class LNAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Melee Weapon List.

Form ID of a FLST record.

class NAM4(*args, **kwargs)[source]

Bases: Uint32Record

Impact Material Type.

See https://tes5edit.github.io/fopdoc/FalloutNV/Records/Values/Impact%20Material%20Types.html for enum values.

class NAM5(*args, **kwargs)[source]

Bases: Uint32Record

Sound Level.

See https://tes5edit.github.io/fopdoc/Fallout3/Records/Values/Sound%20Levels.html for enum values.

class NIFT(iterable=(), /)[source]

Bases: List[int], RecordType

Texture File Hashes.

Methods:

parse(raw_bytes)

Parse this subrecord.

unparse()

Turn this subrecord back into raw bytes for an ESP file.

classmethod parse(raw_bytes)[source]

Parse this subrecord.

Parameters

raw_bytes (BytesIO) – Raw bytes for this record

Return type

Self

unparse()[source]

Turn this subrecord back into raw bytes for an ESP file.

Return type

bytes

class NIFZ(iterable=(), /)[source]

Bases: BytesArrayRecord

Model List.

An array of model filenames (.nif).

Methods:

parse(raw_bytes)

Parse this subrecord.

unparse()

Turn this subrecord back into raw bytes for an ESP file.

classmethod parse(raw_bytes)[source]

Parse this subrecord.

Parameters

raw_bytes (BytesIO) – Raw bytes for this record

Return type

Self

unparse()[source]

Turn this subrecord back into raw bytes for an ESP file.

Return type

bytes

class PKID(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Package.

Form ID of a PACK record.

class PNAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Body Part Data.

Form ID of a BPTD record.

class RNAM(*args, **kwargs)[source]

Bases: Uint8Record

Attack Reach.

class SCRI(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Script.

Form ID of a SCPT record.

class SNAM(faction, rank, unused)[source]

Bases: StructRecord

Faction.

Parameters

Attributes:

faction

Form ID of a FACT record.

rank

unused

Methods:

get_field_names()

Returns a list of attributes on this class in the order they should be packed.

get_struct_and_size()

Returns the pack/unpack struct string and the corresponding size.

faction

Type:    bytes

Form ID of a FACT record.

static get_field_names()[source]

Returns a list of attributes on this class in the order they should be packed.

Return type

Tuple[str, …]

static get_struct_and_size()[source]

Returns the pack/unpack struct string and the corresponding size.

Return type

Tuple[str, int]

rank

Type:    int

unused

Type:    bytes

class SPLO(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Actor Effect.

Form ID of a SPEL record.

class TNAM(*args, **kwargs)[source]

Bases: Float32Record

Turning Speed.

class TPLT(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Template.

Form ID of a CREA or LVLC record.

class VTCK(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Voice.

Form ID of a VTYP record.

class WNAM(*args, **kwargs)[source]

Bases: Float32Record

Foot Weight.

class ZNAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Combat Style.

Form ID of a CSTY record.

data

Type:    List[RecordType]

flags

Type:    int

id

Type:    bytes

classmethod parse_subrecords(raw_bytes)[source]

Parse this record’s subrecords.

Parameters

raw_bytes (BytesIO) – Raw bytes for this record’s subrecords

Return type

Iterator[RecordType]

revision

Type:    int

unknown

Type:    bytes

version

Type:    int