QuestType¶
Overview¶
A QuestType config contains data about one of the many quests in the game.
These config types can be found within the config.Quest table:
config.Quest.COOK_QUEST
config.Quest["QUEST_DUCK"]
config.Quest.FromID(456) -- config.Quest.ARCH_MONOLITH
Info
A QuestType is a Proxy usertype, which means it is safe to copy and store in your scripts.
It cannot, however, be used with any persistent storage.
Information available within an QuestType includes:
- Display name
- Quest points rewarded
- Prerequisites
Examples¶
-- Access a QuestType config directly by using its name
local q200cfg = config.Quest.QUEST_200
-- or by ID lookup
local q200cfg = config.Quest.FromID(id.Quest.QUEST_200)
MasterQuestVarPlayer¶
A container table holding data about a quest's progress tracking variable. A quest will have only one of these.
Info
All properties are read-only.
Properties¶
| Name | Type | Description |
|---|---|---|
| varPlayer | VarType | The var.VarPlayer which holds the current progress value. |
| startState | Integer | The starting variable value for this quest.Values below this indicates that the quest has not been started. |
| endState | Integer | The completion value for this quest.Actual variable value may be greater than this, indicating post-completion progress. |
QuestPreReqSkill¶
A container table holding data about a skill prerequisite.
Info
All properties are read-only.
Properties¶
| Name | Type | Description |
|---|---|---|
| skillType | SkillType | The skill type to check. |
| minimumLevel | Integer | The minimum skill level required by the Player Character to complete this prerequisite. |
Enumerations¶
QuestType¶
| Name | Value |
|---|---|
| NORMAL | 0 |
| SEASONAL | 1 |
| TUTORIAL | 2 |
QuestDifficulty¶
| Name | Value |
|---|---|
| NOVICE | 0 |
| INTERMEDIATE | 1 |
| EXPERIENCED | 2 |
| MASTER | 3 |
| GRANDMASTER | 4 |
| MULTIDIFFICULTY | 5 |
Constructors¶
Info
This usertype has no constructor, and you cannot create your own.
Methods¶
GetParamValue¶
Returns the corresponding output value for the given input ParamType.
| Parameter | Type | Description |
|---|---|---|
| param | ParamType | The input param value. |
| Returns | Description |
|---|---|
| ? | The corresponding output value.Returns param.defaultValue if the param is not found in the data structure. |
Example
HasParam¶
Returns whether this config contains output data for the given input ParamType.
| Parameter | Type | Description |
|---|---|---|
| param | ParamType | The input param value. |
| Returns | Description |
|---|---|
| Boolean | Whether a corresponding value exists in this config for ParamType. |
Example
Properties¶
Info
All properties are read-only.
| Name | Type | Description |
|---|---|---|
| id | Integer | The ID of this config type. |
| configName | String | The name of this config, i.e. "QUEST_200". |
| typeName | String | The type of this config. Will always be "Quest". |
| deprecated | Boolean | Whether this quest config has been deprecated.It has often been superseded by a different valid config.Deprecated quests are occasionally referenced in order to use their iconID. |
| name | String | The display name of this config type. |
| sortName | String | The string to use when sorting quest names alphabetically.For example, "Lost Tribe, The." |
| isMembers | Boolean | Whether this quest is for members. |
| questPoints | Integer | How many quest points are rewarded for completing this quest. |
| type | QuestType | The type of quest. |
| difficulty | QuestDifficulty | The difficulty rating of this quest. |
| iconID | Integer | The sprite ID to display for this quest.This is shown on any MiniMenuEntry related to this quest. |
| startCoordGrids | [ CoordGrid ] | A list of CoordGrids used to indicate where this quest can be started. |
| viaCoordGrid | CoordGrid | An optional CoordGrid to help navigate to one of the quest starting coordinates. |
| preReqQuestPoints | Integer | How many quest points the Player Character must have before starting this quest. |
| preReqQuests | [ QuestType ] | A list of quests the Player Character must have completed in order to start this quest. |
| preReqSkills | [ QuestPreReqSkill ] | A list of SkillType level requirement checks.Player Characters must meet all of the given requirements to start this quest. |
| completedPreReqQuestPoints | Boolean | Whether the Player Character has the required number of quest points to start this quest. |
| completedPreReqQuests | [ Boolean ] | Returns a list of boolean values for each prerequisite quest, indicating whether the Player Character has completed each of them. |
| completedPreReqSkills | [ Boolean ] | Returns a list of boolean values for each prerequisite skill level check, indicating whether the Player Character has completed each of them. |
| canStartQuest | Boolean | Whether the Player Character is able to start this quest.This returns true if all prerequisite checks are completed. |
| hasStartedQuest | Boolean | Whether the Player Character has started this quest. |
| hasFinishedQuest | Boolean | Whether the Player Character has completed this quest. |
| masterQuestVars | [ MasterQuestVarPlayer ] | An array holding a list of MasterQuestVarPlayer descriptors.There will always be one element in this array. |
| params | Returns a list of all the ParamTypes stored in this config. |