> For the complete documentation index, see [llms.txt](https://help.craftsmanplus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.craftsmanplus.com/play/settings/progression/variables.md).

# Variables

Create and manage the named numeric values your playable tracks, like score, health, and moves.

A variable is a named numeric value that your playable tracks while it runs. Score, health, moves, coins collected, questions answered: if you want to count it, it's a variable.

Variables live in the **Variables** tab of the [Progression](https://help.craftsmanplus.com/play/settings/progression.md) section. Every new project starts with one template variable: **Variable 1**, starting at 0. You can rename it, repurpose it, or remove it, and you can add as many of your own as you need.

### Adding a Variable

Click the **+** button in the Progression header while on the Variables tab. A new variable is added to the list.

Each variable has two fields:

* **Name** identifies the variable everywhere it's referenced: in triggers, in the Update Progression action, and in component tracking dropdowns. Names can be up to 20 characters.
* **Start Value** is the value the variable begins at when the playable loads. Defaults to **0**.

There's no limit on the number of variables you can create.

### Removing a Variable

Click the minus button on a variable to remove it. Two things to keep in mind:

* Any trigger that referenced the removed variable will display **(Deleted)** in its variable field. The trigger stays in your list but won't fire until you point it at another variable.

### Where Variables Are Used

Defining a variable does nothing on its own. It becomes useful when other systems reference it:

* [**Update Progression**](https://help.craftsmanplus.com/play/general/actions/update-progression.md) actions change a variable's value when they fire.
* [**Triggers**](https://help.craftsmanplus.com/play/settings/progression/triggers.md) watch a variable and fire an action when it meets a condition.
* [**Progress Bar**](https://help.craftsmanplus.com/play/layers/components/progress-bar.md) and [**Progress Text**](https://help.craftsmanplus.com/play/layers/components/progress-text.md) components can track a variable to display it to the player.

### Game Variables

Game Mechanic layers own their own counters (**Score**, and **Moves** or **Health** in the games that have them) and list their scoring values in the **Progression** section when the layer is selected. These are fixed by the mechanic: you can edit the values, but you can't add, remove, or rename them. See the [Progression overview](https://help.craftsmanplus.com/play/settings/progression.md#game-progression) for how game progression differs, and each game mechanic's page for what its variables control.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.craftsmanplus.com/play/settings/progression/variables.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
