> For the complete documentation index, see [llms.txt](https://cruxis-creations.gitbook.io/tracker-pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cruxis-creations.gitbook.io/tracker-pro/tracker-pro-documentation/tracker-pro-manual/getting-started/creating-a-new-stat.md).

# Creating a New Stat

## Overview

Creating a new stat is super easy and is done within a few clicks.

## Instructions

Click on the + New Stat button at the bottom of the window:<br>

<figure><img src="https://4184847631-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaeKgSKM1xADBnqnsLJlZ%2Fuploads%2FqlYQPpC3V3emQLoiz91M%2Fimage.png?alt=media&amp;token=4164e9aa-40c0-400d-9d4b-8463a1b2ca18" alt=""><figcaption></figcaption></figure>

Your new stat should now appear:<br>

<figure><img src="https://4184847631-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaeKgSKM1xADBnqnsLJlZ%2Fuploads%2F2DJMophSRfHonYQGO4oA%2Fimage.png?alt=media&amp;token=e5cab6a2-87f8-4d92-8c00-83219c6f9a31" alt=""><figcaption></figcaption></figure>

Expand that out, and lets add in some information (ensure the ID is unique - it will automatically do this for you but if you run into issues, double check that!):<br>

<figure><img src="https://4184847631-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaeKgSKM1xADBnqnsLJlZ%2Fuploads%2FHH8WS7MZsdxb0E3StFkL%2Fimage.png?alt=media&amp;token=a0f392cc-2d17-431a-87b4-40db537cded5" alt=""><figcaption></figcaption></figure>

Remember to hit the save button when done!

## Stat Fields

### ID

The unique identifier for the stat. **MUST be an integer and MUST be unique.** This is automatically set for you when creating a new stat.

### Name

Name of the statthat is displayed on the UI in-game

### Description

The description for the stat that is displayed under the title on the UI in-game

### Should We Track the Stat?

Turns on/off tracking for the Stat. Can be used to pause tracking.

### Type of Stat

There are currently 3 different types:

* Numerical - a typical tracking type stat where it simply adds onto the end e.g. Orcs Killed (100)
* Percentage - a stat that can be displayed on the UI as a percentage e.g. Hit Accuracy Of Bullets
* TimeSpan - a stat that can be used to track time stats such as Amount of Time In-Game etc.

### Current Value

If you are using the Numerical Type - this is the current value

### Linked Stat 1 & 2

If you are using the Percentage Type of Stat, you need to link your percentage stat with two others in order to get a value that can be displayed. See [#creating-a-percentage-stat](#creating-a-percentage-stat "mention") on how to do it!

### Type of TimeSpan

* Just Seconds - Displays in the UI as "100s".
* Just Minutes - Displays in the UI as "100m"
* Just Hours - Displays in the UI as "100h"
* Just Days - Displays in the UI as "100d"
* All - Displays in the UI as "100d 23h 59m 59s" - Typically used for in-game timing.

### Hidden Stat

Typically used alongside of the Percentage types to hide the two linked stats from appearing.

## Creating a Percentage Stat

To create a percentage stat that appears in the scene like this:<br>

<figure><img src="https://4184847631-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaeKgSKM1xADBnqnsLJlZ%2Fuploads%2FDfKqA6c2vQiMGy4JuyW7%2Fimage.png?alt=media&amp;token=65f6f7a4-ec95-441e-8ec7-f5bcb9cc58f7" alt=""><figcaption></figcaption></figure>

Do the following:<br>

1. In the Tracker Pro Manager, create 2 new numerical stats. I'm using Bullets Fired and Bullets Hit to find the Hit Accuracy (you can hide the stats if you dont want the users to see them):

<figure><img src="https://4184847631-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaeKgSKM1xADBnqnsLJlZ%2Fuploads%2FPtG3dKKzHgIgWmCbOxva%2Fimage.png?alt=media&amp;token=9325e937-33f8-4a1a-8033-e601d67e1091" alt=""><figcaption></figcaption></figure>

2. Create a 3rd stat and make this one a Percentage Type of Stat:<br>

   <figure><img src="https://4184847631-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaeKgSKM1xADBnqnsLJlZ%2Fuploads%2Fupw0bfmQLad5ay6eUbpY%2Fimage.png?alt=media&amp;token=85ef4299-3b34-460f-a7bb-ba19eef176f0" alt=""><figcaption></figcaption></figure>

On this stat, ensure that the Linked Stat 1 and Linked Stat 2 have our previous two stats.

For reference, Linked Stat 1 should always be the higher value. As we will fire more than we will hit, Bullets Fired always go's into Linked Stat 1.

Then that's it - the stat will display as a percentage on your UI!
