# TechtreeResource

A TechtreeResource is used to define a cost to unlock a tech node.

1. Let’s create a new techtree resource. For example: Gold

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2FFzNPrGZw4vcLLAqramD8%2Ftechtree_goldResource.png?alt=media&#x26;token=97c38924-921f-4081-aa42-cb9f577c3432" alt=""><figcaption></figcaption></figure></div>

2. Select your techtree and a tech node.
3. In the field Techtree Resource you can now assign the techtree resource and the amount it needs to be able to unlock this tech node.

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2FAy2fqCnbfmUs3YoQR0dG%2Ftechtree_assignedResource.png?alt=media&#x26;token=d497a450-9c99-4842-a68e-6d11476d3868" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://giantgrey.gitbook.io/databrain/add-ons/techtree-legacy/techtreeresource.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
