# Quests.json

This json file has two objects&#x20;

<figure><img src="https://3957347284-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7r6RseTZTkJJcKqbC3EI%2Fuploads%2FLlrYROjC2lqaEK1Coine%2Fimage.png?alt=media&#x26;token=819006c8-1fc4-4bac-8390-48c68e19f869" 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="quests-json/goal">MORE INFO HERE</a></td></tr><tr><td>Rewards</td><td>Reward object definition</td><td><a href="quests-json/reward">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="quest-events">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="quest-events">MORE INFO HERE</a></td></tr></tbody></table>

####
