🛠️Quests.json

Main config file of the quest database

This json file has two objects

Empty quests.json
  • Quests - An array of the Quests.json

  • QuestGivers - An array of Quest Givers

    • Refer to the example file

Quest Object

```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
}
```

Parameter
Meaning
Values

Id

Unique identifier of the quest. Make sure there is always only one unique id of the quest.

TakerId

Unique identifier of the taker id. Explained later

QType

Numerical identifier of the quest type

0	_NONE,
1	TURN_IN,
2	KILL,
3	EXPLORE,
4	TRADE,
5	CRAFT,
6	ACTION

Name

Name of the quest displayed in the quest list

You can use stringtable #someKey

Description

Description of the quest displayed in the contnt menu of the quest log

Goals

Goal object definition

Rewards

Reward object definition

IsRepeatable

Boolean value representing the repeatability of quest

true x false

PreQuests

Array of string ids of different quests which need to be completed before displaying this quest in the list

["idOfQuest1", "idOfQuest2"]

RepeatDurationHours

Integer value of hours representing, when the quest is available to take again.

RepeatDurationMinutes

Integer value of hours representing, when the quest is available to take again.

EventId

Unique identifier

EventSendToClient

Boolean value representing the passing of logic on the client when the quest is completed.

Last updated