DIAL Record – Dialog Topic

DIAL record type.

Classes:

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

Dialog topic.

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

Bases: Record

Dialog topic.

Parameters
  • flags (int)

  • id (bytes)

  • revision (int) – Default 0.

  • version (int) – Default 15.

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

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

Classes:

DATA(type, flags)

DATA(type, flags)

FULL([cstring])

Name of the topic.

INFC([cstring])

Info connection (New Vegas Only).

INFX(*args, **kwargs)

Info index.

PNAM(*args, **kwargs)

Priority.

QSTI([cstring])

Form ID of the associated quest (QUST).

QSTR([cstring])

Form ID of the associated quest (Fallout 3) / Removed Quest (New Vegas).

TDUM([cstring])

Unknown.

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.

namedtuple DATA(type, flags)[source]

Bases: NamedTuple

DATA(type, flags)

Fields
  1.  type (DialType) – Dialog type

  2.  flags (int) – Alias for field number 1

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

Bases: CStringRecord

Name of the topic.

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

Bases: FormIDRecord

Info connection (New Vegas Only).

Form ID of an INFO record.

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

Bases: Int32Record

Info index.

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

Bases: Float32Record

Priority.

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

Bases: FormIDRecord

Form ID of the associated quest (QUST).

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

Bases: FormIDRecord

Form ID of the associated quest (Fallout 3) / Removed Quest (New Vegas).

Form ID of a QUST record.

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

Bases: CStringRecord

Unknown.

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