> For the complete documentation index, see [llms.txt](https://roogame.gitbook.io/roogame/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://roogame.gitbook.io/roogame/ultimate-stats-framework/creating-your-attribute-system/stat-and-attribute-properties.md).

# Stat and Attribute Properties

This page explains the meaning and purpose of each property in the **Attribute** and **Stat** sections of the **Stat Designer**.

<figure><img src="https://2218703886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4YPyrdOyfjDGtlxlvjSd%2Fuploads%2FMmFSZwImWcRXeW5Nwbpi%2Fimage.png?alt=media&amp;token=a6ae9558-609c-45ce-ae15-279883c1e1e0" alt=""><figcaption></figcaption></figure>

#### Min Value

**Property:** `MinValue`\
**Type:** `Number`

The lowest value allowed for this Attribute.

For most resource Attributes, use `0`.

```
Health Min Value = 0
Mana Min Value = 0
Stamina Min Value = 0
```

When an Attribute is modified below its minimum value, it is clamped to the minimum.

```
Health = 10
Damage = -25

Result:
Health = 0
```

#### Max Stat

**Property:** `MaxStat`\
**Type:** `Roo Stat Data Asset`

The Stat that provides this Attribute's maximum value.

For example, the Health Attribute should usually use the HealthMax Stat.

```
Attribute: Health
Max Stat: HealthMax
```

```
HealthMax = 100
Health = 75 / 100
```

If `HealthMax` changes because of equipment, level progression, or modifiers, the maximum value of Health also changes.

```
HealthMax changes from 100 to 150
Health changes from 75 / 100 to 75 / 150
```

The current Attribute value is clamped if it becomes higher than the new maximum value.

#### Start Percent

**Property:** `StartPercent`\
**Type:** `Number`

The percentage of the maximum value used when the Attribute is initialized.

```
StartPercent = 1.0
```

The Attribute starts at its maximum value.

```
HealthMax = 100
Health starts at 100 / 100
```

```
StartPercent = 0.5
```

The Attribute starts at half of its maximum value.

```
HealthMax = 100
Health starts at 50 / 100
```

```
StartPercent = 0.25
```

The Attribute starts at 25% of its maximum value.

```
HealthMax = 100
Health starts at 25 / 100
```

Use `1.0` for most player resources, such as Health, Mana, and Stamina.

***

#### Base Value

**Property:** `BaseValue`\
**Type:** `Number`

The default value of the Stat before modifiers and formulas are applied.

```
Attack Base Value = 10
HealthMax Base Value = 100
MoveSpeed Base Value = 600
```

For a simple Stat without a Formula, the Base Value is its normal starting value.

#### Formula

**Property:** `Formula`\
**Type:** `Roo Stat Formula Data Asset`

An optional Formula used to calculate the final Stat value.

When a Formula is assigned, the final value is calculated from the Formula instead of using only the Base Value.

```
HealthMax Formula:
100 + self.stat.Vitality * 20
```

Example result:

```
Vitality = 5
HealthMax = 100 + 5 * 20
HealthMax = 200
```

Leave this property empty when the Stat does not need a calculated value.
