# Text templating

When you're using text, you can include information about the game using variables.

Here are un example:  `Fantastic! You have reached {{score}} points!!`&#x20;

{% hint style="info" %}
The text is translated as soon as it's loaded when starting a new level.\
That means if you show {{score}} and after that the game assign more points, the text won't be updated.
{% endhint %}

Here is a list of the available variables:

* `{{score}}` : Shows the current score
* `{{visitedLevels}}` \
  List of visited levels:\
  ![](/files/IzJ6cmtx5FY10wMWyt2m)
* `{{time}}`\
  &#x20;Elapsed time in seconds since the countdown started
* `{{timeLeft}}`\
  Time left of the countdown in seconds
* `{{formattedTime}}`\
  Elapsed time in seconds since the countdown started in format `hh:mm`
* `{{formattedTimeLeft}}`\
  Time left of the countdown in seconds in format `hh:mm`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://academy.theufolab.com/tips-and-advanced-features/text-templating.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
