INFO Record – Dialog Response

INFO record type.

Classes:

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

Dialog Response.

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

Bases: Record

Dialog Response.

Parameters
  • flags (int)

  • id (bytes)

  • revision (int) – Default 0.

  • version (int) – Default 15.

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

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

Classes:

ANAM([cstring])

Speaker.

DATA(type, next_speaker, flags)

DNAM(*args, **kwargs)

Speech Challenge.

KNAM([cstring])

Actor Value / Perk.

NAM1([cstring])

Response Text.

NAM2([cstring])

Script Notes.

NAM3([cstring])

Edits.

NAME([cstring])

Topic.

NEXT(*args, **kwargs)

Marker between scripts.

PNAM([cstring])

Previous INFO.

QSTI([cstring])

The associated quest.

RNAM([cstring])

Prompt.

SNDD([cstring])

Unused.

TCFU([cstring])

Unknown (New Vegas Only).

TCLF([cstring])

Link From Topic.

TCLT([cstring])

Choice.

TPIC([cstring])

Topic.

TRDT(emotion_type, emotion_value, unused, ...)

Response Data.

TRDTEmotionType(value)

Enum for INFO.TRDT.emotion_type.

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 ANAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Speaker.

Form ID of a CREA or NPC_ record.

class DATA(type, next_speaker, flags)[source]

Bases: StructRecord

Parameters

Attributes:

flags

next_speaker

type

Dialog type

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.

flags

Type:    bytes

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]

next_speaker

Type:    InfoNextSpeaker

type

Type:    DialType

Dialog type

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

Bases: Uint32Record

Speech Challenge.

Enum - see https://tes5edit.github.io/fopdoc/Fallout3/Records/INFO.html

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

Bases: FormIDRecord

Actor Value / Perk.

Form ID of a AVIF or PERK record.

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

Bases: CStringRecord

Response Text.

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

Bases: CStringRecord

Script Notes.

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

Bases: CStringRecord

Edits.

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

Bases: FormIDRecord

Topic.

Form ID of a DIAL record.

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

Bases: MarkerRecord

Marker between scripts.

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

Bases: FormIDRecord

Previous INFO.

Form ID of the previous INFO record, or null.

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

Bases: FormIDRecord

The associated quest.

Form ID of a QUST record.

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

Bases: CStringRecord

Prompt.

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

Bases: FormIDRecord

Unused.

Form ID of a SOUN record.

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

Bases: FormIDRecord

Unknown (New Vegas Only).

Form ID of an INFO record.

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

Bases: FormIDRecord

Link From Topic.

Form ID of a DIAL record.

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

Bases: FormIDRecord

Choice.

Form ID of a DIAL record.

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

Bases: FormIDRecord

Topic.

Form ID of a DIAL record.

class TRDT(emotion_type, emotion_value, unused, response_number, unused_, sound, flags, unused__)[source]

Bases: StructRecord

Response Data.

Parameters
  • emotion_type

  • emotion_value (int)

  • unused (bytes)

  • response_number (int)

  • unused

  • sound (bytes) – Form ID of a SOUN record, or null.

  • flags (int)

  • unused

Attributes:

emotion_type

emotion_value

flags

response_number

sound

Form ID of a SOUN record, or null.

unused

unused_

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.

emotion_type

Type:    TRDTEmotionType

emotion_value

Type:    int

flags

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]

response_number

Type:    int

sound

Type:    bytes

Form ID of a SOUN record, or null.

unused

Type:    bytes

unused_

Type:    bytes

unused__

Type:    bytes

class TRDTEmotionType(value)[source]

Bases: IntEnum

Enum for INFO.TRDT.emotion_type.

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