> For the complete documentation index, see [llms.txt](https://giantgrey.gitbook.io/databrain/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://giantgrey.gitbook.io/databrain/add-ons/stats/components.md).

# Components

The Stats add-on comes with helpful runtime components.

## AddXP

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2Fr0uDYo595YDCiUQGyfpp%2FstatsComponentAddXP.png?alt=media&amp;token=03fd16f4-985d-4305-aefa-89ef23e06d66" alt=""><figcaption></figcaption></figure></div>

## AddAchievementPoints

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2FQ1W9bmx8v7b8RNFCnESI%2FstatsComponentAddAchievementPoints.png?alt=media&amp;token=4a94968b-8378-4a6c-bf89-c3a1fdcbfbbc" alt=""><figcaption></figcaption></figure></div>

## ModifyValue

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2FsXTbTnMpNG73jWzcuCIg%2FstatsComponentModifyValue.png?alt=media&amp;token=f9964e89-1296-48d8-8b5d-36549d7af72f" alt=""><figcaption></figcaption></figure></div>

## Usage

Combine these components with the **TriggerActionAtRadius** component to call the appropriate methods of each component like in this example:

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2FmxmpujSB8OQLAuBfxxfJ%2FstatsComponentAddXP-TriggerAction.PNG?alt=media&amp;token=44d8978b-fde9-4014-8dd4-eb97a5900555" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
Make sure to check out the demo scene of the Stats add-on. To see how those components can be used.
{% endhint %}
