Skip to content

tes3quest⚓︎

A representation of a journal quest log, with associated dialogue(s), infos and quest flags. Quest tracking was added by Tribunal as a separate system on top of the dialogue system. It had to add tracking to existing quests as well as new ones, but its design is not seamlessly integrated.

Quests have a name, separate from the dialogue id, which is derived from a specially flagged info (the Quest Name flag) in the dialogue infos. Multiple dialogue topics with the same name are combined into one quest. The overall quest state of active or completed is tracked by the quest.

This type inherits the following: tes3baseObject

Properties⚓︎

blocked⚓︎

The blocked state of the object.

Returns:

  • result (boolean)

deleted⚓︎

Read-only. The deleted state of the object.

Returns:

  • result (boolean)

dialogue⚓︎

Read-only. A collection of dialogues associated with the quest.

Returns:


disabled⚓︎

Read-only. The disabled state of the object.

Returns:

  • result (boolean)

id⚓︎

Read-only. The unique identifier for the object.

Returns:

  • result (string)

info⚓︎

Read-only. A collection of dialogue info associated with the quest.

Returns:


isActive⚓︎

If the quest is active. This occurs when the quest hass started but not finished yet.

Returns:

  • result (boolean)

isFinished⚓︎

If the quest has finished. This is when the quest has reached a journal entry with the finished flag.

Returns:

  • result (boolean)

isStarted⚓︎

If the quest has started. This occurs when at least one journal entry has been added.

Returns:

  • result (boolean)

modified⚓︎

The modification state of the object since the last save.

Returns:

  • result (boolean)

objectFlags⚓︎

Read-only. The raw flags of the object.

Returns:

  • result (number)

objectType⚓︎

Read-only. The type of object. Maps to values in tes3.objectType.

Returns:


persistent⚓︎

The persistent flag of the object.

Returns:

  • result (boolean)

sourceless⚓︎

The soruceless flag of the object.

Returns:

  • result (boolean)

sourceMod⚓︎

Read-only. The filename (including the extension) of the mod that owns this object. It has nil value if the object was anything other than loaded from an ESP or ESM file.

Returns:

  • result (string)

supportsLuaData⚓︎

If true, references of this object can store temporary or persistent lua data.

Returns:

  • result (boolean)

Methods⚓︎

__tojson⚓︎

Serializes the object to json.

local string = myObject:__tojson()

Returns:

  • string (string)