# Skill Tree connection

<figure><img src="/files/j9gzeljw3a6ZnCSDJruu" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Make sure **Config.UseDataFromSkillTree** is set to <mark style="color:yellow;">**true**</mark>
{% endhint %}

## <mark style="color:yellow;">Usage</mark>

In **Config.Abilities** connect skill **category** and skill **uid.**

Script automatically detects unlocked skills and will display locked icon on skill that are not yet unlockd.

<figure><img src="/files/0gxUEkRrmupuawV14S8R" alt=""><figcaption></figcaption></figure>

## <mark style="color:yellow;">Example</mark>

```lua
Config.Abilities = {
    ['personal'] = { -- category name from skill tree !!!
        name = "Personal",
        displayOrder = 1,
        isVisible = function(source)
            return false
        end,
        abilities = {
            ['moreHp_1'] = {  -- skill uid from skill tree !!!
                label = "More Hp 1",
                icon = "more_hp1.png",
                useCooldown = 5,
                onUse = function()
                    -- execute client side code here
                    print("More hp 1 used by "..GetPlayerName(PlayerId()))
                end
            },
            ['moreHp_2'] = {  -- skill uid from skill tree !!!
                label = "More Hp 2",
                icon = "more_hp2.png",
                useCooldown = 5,
                onUse = function()
                    -- execute client side code here
                    print("More hp 2 used by "..GetPlayerName(PlayerId()))
                end
            },
        }
    },
}
```


---

# 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://docs.devhub.gg/skill-selection/skill-tree-connection.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.
