> For the complete documentation index, see [llms.txt](https://docs.lootlocker.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lootlocker.com/legacy/legacy-progressions/use-a-progression-system-in-game.md).

# Use a Progression System In-Game

{% hint style="info" %}
You are viewing legacy Progressions. We've launched a new Progression system, it's much more powerful and flexible! [Check it out!](/game-systems/progressions.md)
{% endhint %}

After setting up progression with levels and awards in the console, it's time to actually use this in your game.

At an appropriate time in your game you call the submit XP endpoint like so

{% tabs %}
{% tab title="Unity" %}

```csharp
int scoreToSubmit = 100;

LootLockerSDKManager.SubmitXp(scoreToSubmit , (response) =>
{
    if (response.success)
    {
        Debug.Log("Successful");
    }
    else
    {
        Debug.Log("Error: " + response.Error);
    }
});
```

{% endtab %}

{% tab title="REST" %}

```bash
curl -X POST "https://api.lootlocker.io/game/v1/player/xp" \
 -d "{\"points\": 100}" \
 -H "Content-Type: application/json"
```

{% endtab %}
{% endtabs %}

To read more about the response of the call to the endpoint, please check out the documentation in our reference section for [Submit XP](https://ref.lootlocker.io/game-api/#submit-xp)

{% hint style="info" %}
It's also possible to award XP as part of a [trigger](https://github.com/lootlocker/gitbook-sync/blob/main/triggers/README.md)
{% endhint %}

If you want to know how much XP a player currently have, you can use the Get Player Info endpoint to do so.

{% tabs %}
{% tab title="Unity" %}

```csharp
LootLockerSDKManager.GetXpAndLevel((response) =>
{
    if (response.success)
    {
        Debug.Log("Successful");
    }
    else
    {
        Debug.Log("Error: " + response.Error);
    }
});
```

{% endtab %}

{% tab title="REST" %}

```bash
curl -X GET "https://api.lootlocker.io/game/v1/player/info"
```

{% endtab %}
{% endtabs %}

To learn more about the endpoint you can check out our reference documentation on [getting player info](https://ref.lootlocker.io/game-api/#get-player-info)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.lootlocker.com/legacy/legacy-progressions/use-a-progression-system-in-game.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
