# Quest

{% embed url="<https://youtu.be/-CWLO4OE1_Q>" %}

## Creation

To create a quest, find (or create) the *GameName/Resources/GameName/Quest* folder in the project tab and right click.  Choose *Create > AnyRPG > Quest*.

![](https://2976860065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx7Nd93HqSNPpv2JhrViE%2Fuploads%2FFVmKp3LrMJu4adOgRumB%2Fimage.png?alt=media\&token=45ae0dcc-20ca-45a0-ac4e-db1923d1a495)

## Properties

| Name                        | Description                                                                                                                                                                                                                                                                                                                                     |
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Steps                       | A list of steps, with [Objectives](#undefined) for each step, that must be completed in order to finish the quest.                                                                                                                                                                                                                              |
| Prerequisite Conditions     | A list of [Prerequisite Conditions](https://docs.anyrpg.org/shared-properties/prerequisite-conditions) that must be met to start the quest.                                                                                                                                                                                                     |
| Repeatable Quest            | If true, the quest can be accepted and completed more than once.                                                                                                                                                                                                                                                                                |
| Has Opening Dialog          | If true, a Dialog with the same name as the quest will be used (if found) and will be required to be completed before the quest can be accepted.                                                                                                                                                                                                |
| Experience Level            | The level that is considered appropriate for the quest. This value is used to calculate experience reward reduction if the player is a higher level than this value.                                                                                                                                                                            |
| Dynamic Level               | If true, the quest will always be considered to be the same level as the player.                                                                                                                                                                                                                                                                |
| Extra Levels                | If dynamic level is true, this value can be used to make the quest a higher level than the player.                                                                                                                                                                                                                                              |
| Base Experience Reward      | The base experience for the quest, not scaled by level, and in addition to any automatic quest xp configured at the game level (in the System Configuration Manager).                                                                                                                                                                           |
| Experience Reward Per Level | The experience for the quest, scaled by level, and in addition to any automatic quest xp configured at the game level (in the System Configuration Manager).                                                                                                                                                                                    |
| Automatic Currency Reward   | If true, the quest will reward [Currency](https://docs.anyrpg.org/scriptable-objects/currency) based on the system quest currency reward settings (in the System Configuration Manager).                                                                                                                                                        |
| Reward Currency Name        | The name of a [Currency](https://docs.anyrpg.org/scriptable-objects/currency) that will be rewarded to the player when the quest is complete.                                                                                                                                                                                                   |
| Base Currency Reward        | The base [Currency](https://docs.anyrpg.org/scriptable-objects/currency) reward for the quest, not scaled by level, and in addition to any automatic currency reward configured at the game level (in the System Configuration Manager).                                                                                                        |
| Currency Reward Per Level   | The [Currency](https://docs.anyrpg.org/scriptable-objects/currency) rewarded for completing the quest, scaled by level, and in addition to any automatic [Currency](https://docs.anyrpg.org/scriptable-objects/currency) reward configured at the game level (in the System Configuration Manager).                                             |
| Max Item Rewards            | The maximum number of [Item](https://docs.anyrpg.org/scriptable-objects/items) rewards that can be chosen, if there is more than one possible [Item](https://docs.anyrpg.org/scriptable-objects/items) reward.                                                                                                                                  |
| Item Reward Names           | The names of [Items](https://docs.anyrpg.org/scriptable-objects/items) that will be given as rewards for completing the quest.                                                                                                                                                                                                                  |
| Max Faction Rewards         | The maximum number of [Faction](https://docs.anyrpg.org/scriptable-objects/faction) rewards that can be chosen, if there is more than one possible [Faction](https://docs.anyrpg.org/scriptable-objects/faction) reward.                                                                                                                        |
| Faction Rewards             | <p>A list of <a href="faction">Faction</a> names and values that will be given as rewards for completing the quest.<br><strong>Faction Name</strong><br>The name of the <a href="faction">Faction</a> whom the player will receive increased reputation with.<br><strong>Reputation Amount</strong><br>The amount of reputation to receive.</p> |
| Max Ability Rewards         | The maximum number of [Ability](https://docs.anyrpg.org/scriptable-objects/abilities) rewards that can be chosen, if there is more than one possible [Ability](https://docs.anyrpg.org/scriptable-objects/abilities) reward.                                                                                                                    |
| Ability Reward Names        | The names of [Abilities](https://docs.anyrpg.org/scriptable-objects/abilities) that will be given as rewards for completing the quest.                                                                                                                                                                                                          |
| Max Skill Rewards           | The maximum number of [Skill](https://docs.anyrpg.org/scriptable-objects/skill) rewards that can be chosen, if there is more than one possible [Skill](https://docs.anyrpg.org/scriptable-objects/skill) reward.                                                                                                                                |
| Skill Reward Names          | The names of [Skills](https://docs.anyrpg.org/scriptable-objects/skill) that will be given as rewards for completing the quest.                                                                                                                                                                                                                 |
| Turn In Items               | If true, any items that are part of an Item Objective will be removed from the player inventory when the quest is turned in.                                                                                                                                                                                                                    |
| Allow Raw Complete          | If true, the player can complete the quest directly, without having the quest in the quest log.                                                                                                                                                                                                                                                 |

### Quest Objectives

There are many different types of quest objectives which will be covered below.  They all share the following properties.

| Name                  | Description                                                                                                                                                         |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Amount                | The amount of the specific objective that must be completed for the objective to be complete.                                                                       |
| Override Display Name | By default, the name of the specific objective will be shown in the quest log.  If this field is not empty, the text shown in this field will be displayed instead. |

#### Collect Objective

| Name          | Description                                                                                                        |
| ------------- | ------------------------------------------------------------------------------------------------------------------ |
| Item Name     | The name of an [Item](https://docs.anyrpg.org/scriptable-objects/items) that must be collected.                    |
| Partial Match | If true, the *Item Name* can be a substring of a longer name and does not have to match the exact name and length. |

#### Dialog Objective

| Name        | Description                                                                                       |
| ----------- | ------------------------------------------------------------------------------------------------- |
| Dialog Name | The name of a [Dialog](https://docs.anyrpg.org/scriptable-objects/dialog) that must be completed. |

#### Kill Objective

| Name        | Description                                                                                                                                  |
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| Target Name | The name of an enemy that must be killed.  This can match a character name or [Faction](https://docs.anyrpg.org/scriptable-objects/faction). |

#### Learn Ability Objective

| Name         | Description                                                                                          |
| ------------ | ---------------------------------------------------------------------------------------------------- |
| Ability Name | The name of an [Ability](https://docs.anyrpg.org/scriptable-objects/abilities) that must be learned. |

#### Finish Quest Objective

| Name       | Description                                                                                           |
| ---------- | ----------------------------------------------------------------------------------------------------- |
| Quest Name | The name of another [Quest](https://docs.anyrpg.org/scriptable-objects/quest) that must be completed. |

#### Status Effect Objective

| Name        | Description                                                                                                                                    |
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| Effect Name | The name of a [Status Effect](https://docs.anyrpg.org/scriptable-objects/ability-effects/status-effect) that must be applied to the character. |

#### Trade Skill Objective

| Name       | Description                                                                                   |
| ---------- | --------------------------------------------------------------------------------------------- |
| Skill Name | The name of a [Skill](https://docs.anyrpg.org/scriptable-objects/skill) that must be learned. |

#### Use Ability Objective

| Name         | Description                                                                                       |
| ------------ | ------------------------------------------------------------------------------------------------- |
| Ability Name | The name of an [Ability](https://docs.anyrpg.org/scriptable-objects/abilities) that must be used. |

#### Use Interactable Objective

| Name               | Description                                                                                                                                       |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| Interactable Name  | The name of an [Interactable](https://docs.anyrpg.org/scriptable-objects/interactable-option-configurations) that must be used (interacted with). |
| Require Completion | If true, and the interactable is of the type that opens a popup window, the function the window provides must be used.                            |

#### Visit Zone Objective

| Name      | Description                                                                                        |
| --------- | -------------------------------------------------------------------------------------------------- |
| Zone Name | The name of a [Scene](https://docs.anyrpg.org/scriptable-objects/scene-node) that must be visited. |

## Next Steps

* Add a quest to a [Quest Start Item](https://docs.anyrpg.org/scriptable-objects/items/quest-start-item).
* Add a quest to a [Quest Giver](https://docs.anyrpg.org/scriptable-objects/interactable-option-configurations/quest-giver-config).
