# Quests.json

This json file has two objects&#x20;

<figure><img src="/files/7W8lPfy8stBgOywZXpZG" alt=""><figcaption><p>Empty quests.json</p></figcaption></figure>

* Quests - An array of the [#quest-object-you-can-add-multiple-of-these](#quest-object-you-can-add-multiple-of-these "mention")
* QuestGivers - An array of Quest Givers&#x20;
  * Refer to the example file

## Quest Object

````json
```json
{
  "Id": "uniqueIdOfQuest",
  "TakerId": "uniqueIdOfQuestTaker",
  "QType": 1,
  "Name": "Quest example name",
  "Description": "Description goes here",
  "Goals": [],
  "Rewards": [],
  "IsRepeatable": false,
  "PreQuests": 
    [
      "id1", 
      "id2", 
      "id3" 
    ],  
  "RepeatDurationHours": 0,
  "RepeatDurationMinutes": 1,
  "EventId": "unqiue_id_of_event",
  "EventSendToClient": false,
  "ResetKillsComplete": true,
  "ShowGoalItems": false,
  "ShowRewardItems": false
}
```
````

####

<table><thead><tr><th>Parameter</th><th>Meaning</th><th>Values</th></tr></thead><tbody><tr><td>Id</td><td>Unique identifier of the quest. Make sure there is always only one unique id of the quest.</td><td></td></tr><tr><td>TakerId</td><td>Unique identifier of the taker id. Explained later</td><td></td></tr><tr><td>QType</td><td>Numerical identifier of the quest type</td><td><pre><code>0	_NONE,
1	TURN_IN,
2	KILL,
3	EXPLORE,
4	TRADE,
5	CRAFT,
6	ACTION
</code></pre></td></tr><tr><td>Name</td><td>Name of the quest displayed in the quest list</td><td>You can use stringtable<br><code>#someKey</code></td></tr><tr><td>Description</td><td>Description of the quest displayed in the contnt menu of the quest log</td><td></td></tr><tr><td>Goals</td><td>Goal object definition</td><td><a href="/pages/arocPXULQMfcmgRrHLVx">MORE INFO HERE</a></td></tr><tr><td>Rewards</td><td>Reward object definition</td><td><a href="/pages/ys2Gy6AdmREnhDPxO3t3">MORE INFO HERE</a></td></tr><tr><td>IsRepeatable</td><td>Boolean value representing the repeatability of quest</td><td><code>true</code> x <code>false</code></td></tr><tr><td>PreQuests</td><td>Array of string ids of different quests which need to be completed before displaying this quest in the list</td><td><code>["idOfQuest1", "idOfQuest2"]</code></td></tr><tr><td>RepeatDurationHours</td><td>Integer value of hours representing, when the quest is available to take again.</td><td></td></tr><tr><td>RepeatDurationMinutes</td><td>Integer value of hours representing, when the quest is available to take again.</td><td></td></tr><tr><td>EventId</td><td>Unique identifier</td><td><a href="/pages/cHVwbApyYhoUdsV1JqpU">MORE INFO HERE</a></td></tr><tr><td>EventSendToClient</td><td>Boolean value representing the passing of logic on the client when the quest is completed.</td><td><a href="/pages/cHVwbApyYhoUdsV1JqpU">MORE INFO HERE</a></td></tr></tbody></table>

####


---

# 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://dayz.foxapo.com/mods/crdtn-quests/server-side/installation/quests-json.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.
