> For the complete documentation index, see [llms.txt](https://infinitypbr.gitbook.io/magic-pig-games/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitypbr.gitbook.io/magic-pig-games/game-modules-4/module-documentation/quests/quest-conditions/create-a-custom-quest-condition/your-quest-condition.md).

# Your Quest Condition

v4.0

Creating a custom Quest Condition which can be easily managed in the Inspector is not that difficult. You will create three scripts, starting with one that inherits from `QuestCondition`.

Create a script which looks like this, but name it appropriately for your condition. The class in the image below is called `BlackboardValueBool` indicating that the quest condition may be completed if the `bool` `value` from a `Blackboard` note is `true` or `false` -- all things to determine once we create the object!

<figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2FRkk4XRWfRlXS6zxk3NMO%2FScreenshot%202023-06-25%20at%2012.37.37%20PM.png?alt=media&amp;token=08fdcfe9-e06d-4010-9b4b-a49f91a9bdc7" alt=""><figcaption></figcaption></figure>

Change the default filename in the `CreateAssetMenu` line. Then, change the `menuName` path as well. You can choose to put your creation button in the same `Game Modules/Quest Condition/[Name Here]`, or customize the path.

The class inherits from `QuestCondition`, so the `ConditionMet()` method is required. You will customize this script later. For now, lets finish creating the other two scripts.

## Condition Met

This method is what does the actual work. This is where you will determine whether the condition has been met or not, and return true if it has been.

Refer to the existing `QuestConditions` to see how those have been created.

{% content-ref url="/pages/d2WiNAoj7wV25G0scx7C" %}
[Your Quest Condition Editor](/magic-pig-games/game-modules-4/module-documentation/quests/quest-conditions/create-a-custom-quest-condition/your-quest-condition-editor.md)
{% endcontent-ref %}
