PERK Record – Perk
PERK record type.
Classes:
|
Perk. |
Effect subrecord collection for |
-
class
PERK(flags, id, revision=0, version=15, unknown=b'\x00\x00', data=[])[source] Bases:
RecordPerk.
- Parameters
Classes:
DATA(trait, min_level, ranks, playable, hidden)Data.
DESC([cstring])Description.
FULL([cstring])Name.
ICON([cstring])Large icon filename.
MICO([cstring])Small icon filename.
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
DATA(trait, min_level, ranks, playable, hidden)[source] Bases:
StructRecordData.
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.
parse(raw_bytes)Parse this subrecord.
Attributes:
-
static
get_field_names()[source] Returns a list of attributes on this class in the order they should be packed.
-
static
get_struct_and_size()[source] Returns the pack/unpack struct string and the corresponding size.
Type:
int
-
static
-
data Type:
List[RecordType]
-
class
PerkEffect[source] Bases:
CollectionEffect subrecord collection for
PERK.Classes:
DATAAbility([cstring])Data (Ability).
DATAEntryPoint(entry_point, function, ...)Data (Quest + Stage).
DATAQuestStage(quest, quest_stage, unused)Data (Quest + Stage).
EPF2([cstring])Button Label.
EPF3(*args, **kwargs)Script Flags.
EPFD([cstring])Entry Point Function Data.
EPFT(*args, **kwargs)Entry Point Function Type.
PRKC(*args, **kwargs)Run On.
PRKE(type, rank, priority)Effect subrecord header.
PRKF(*args, **kwargs)End Marker.
Attributes:
Names of subrecords in this collection.
-
class
DATAAbility(cstring: Union[str, bytes] = b'')[source] Bases:
FormIDRecordData (Ability).
Methods:
unparse()Turn this subrecord back into raw bytes for an ESP file.
-
class
DATAEntryPoint(entry_point, function, perk_condition_tab_count)[source] Bases:
StructRecordData (Quest + Stage).
Attributes:
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.
unparse()Turn this record back into raw bytes for an ESP file.
-
static
get_field_names()[source] Returns a list of attributes on this class in the order they should be packed.
-
static
-
class
DATAQuestStage(quest, quest_stage, unused)[source] Bases:
StructRecordData (Quest + Stage).
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.
unparse()Turn this record back into raw bytes for an ESP file.
Attributes:
Form ID of a
QUSTrecord.-
static
get_field_names()[source] Returns a list of attributes on this class in the order they should be packed.
-
static
-
class
EPF3(*args, **kwargs)[source] Bases:
Uint16RecordScript Flags.
See https://tes5edit.github.io/fopdoc/Fallout3/Records/PERK.html
-
class
EPFD(cstring: Union[str, bytes] = b'')[source] Bases:
FormIDRecordEntry Point Function Data.
May be a uint8[] or float32 or formid or null
-
class
EPFT(*args, **kwargs)[source] Bases:
Uint8RecordEntry Point Function Type.
Determines the data type of the EPFD record - see https://tes5edit.github.io/fopdoc/Fallout3/Records/PERK.html
-
class
PRKC(*args, **kwargs)[source] Bases:
Int8RecordRun On.
-
class
PRKE(type, rank, priority)[source] Bases:
StructRecordEffect subrecord header.
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.
Attributes:
-
static
get_field_names()[source] Returns a list of attributes on this class in the order they should be packed.
-
static
-
class
PRKF(*args, **kwargs)[source] Bases:
MarkerRecordEnd Marker.
-
members:typing.Set[bytes] = {b'DATA', b'EPF2', b'EPF3', b'EPFD', b'EPFT', b'PRKC', b'PRKE', b'PRKF'} Names of subrecords in this collection.
-
class