---
title: "How do I add stats like health, money or affection?"
description: "On the canvas, click ＋ Variable in the Add row, name it, set a start value and range, and write in plain words when it goes up and down. No syntax needed."
---

# How do I add stats like health, money or affection?

Add a variable. On the canvas, click **＋ Variable** in the **Add** row at the bottom of the card. The AI reads every variable each turn and changes it as the story goes.

1. Give it a name and pick a type.
2. Set where it starts, and its lowest and highest value. The engine keeps a number in range, so health never shows -30.
3. Write the **Behavior Rules** in plain words: what the number is and when it changes. For example: "Drops when the player takes physical damage. A punch is -5 to -10, a knife wound -15 to -25. Recovers slowly when resting."
4. Click **Show on the player screen** to put it in front of the player.

| Type | Use it for |
|---|---|
| **Number** | Health 100, affection 20, coins |
| **Text** | Current location, mood, time of day |
| **Switch** | Has the key or not |
| **List / table** | Inventory, relationships, a quest log |

You never write formats like `[health: -15]`. The engine teaches the AI that part and hides it from the player.

Two to four sentences of Behavior Rules is enough. Leave the box empty and the AI mostly ignores the variable.

Each variable costs a line of the AI's attention every turn, so add only the ones the story uses. For a number the AI should never change, such as attack worked out from level, fill in **Formula (worked out automatically)** instead.

## Related

- [Variables](../creator/variables.md)
- [What is Precise tracking?](what-is-precise-tracking.md)
- [How do I make something happen when a number changes?](how-do-i-make-something-happen-when-a-number-changes.md)
