# Quests

Quest are scriptable objects (right click -> Create -> DialogueQuests -> Quest). And loaded from the Resources/Quests folder (by default), by the DQ Manager.

<figure><img src="/files/EQzHDrWgD4v7Uf0OxoRa" alt=""><figcaption></figcaption></figure>

**Quest ID:** a reference unique to each quest, used in the save file.&#x20;

**Title and Desc:** Text displayed as title and description of this quest. Icon: Icon for the quest. (optional). **Sort Order:** Optional, to sort the quest in a specific order in the quest panel.&#x20;

### How to Start or Complete a quest?&#x20;

Quests are started, and completed by using NarrativeEvents and NarrativeEffects.&#x20;

Quests have 4 possible status: not started, active, completed, failed.&#x20;

Alternatively, it is also possible to Start or Complete a quest by calling a function in script:

```
QuestData quest = QuestData.Get("quest_id");
NarrativeManager.Get().StartQuest(quest);
```

### Quest Steps

Quest Steps are optional, but it is possible to define additional "steps" to a quest. The text will be updated in the Quest Journal based on which step the quest currently is at. You can update the current step of a quest with a NarrativeEffect, or by calling a function inside NarrativeManager.

### Quest Journal

Quests will appear in the Quest Panel (open it with J by default), once they are started or completed.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://indiemarc.gitbook.io/dialogue-quests/dialogue-and-quests/quests.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
