# Numbers (Basic Puzzle)

<figure><img src="/files/TgiNJXfaRmwdI4LCjCuH" alt="" width="197"><figcaption></figcaption></figure>

Drag the component from the subcomponents bar to the scene you're working on.

{% hint style="info" %}
All the minigames and puzzles must be set up with actions to work properly and also define what happens once the player wins, finishes or lose.
{% endhint %}

## How to change the component style

To resize it, use the arrow icon in the top menu.

<figure><img src="/files/lRxHY5a4MlXEf32A4jrP" alt=""><figcaption></figcaption></figure>

## How to set the numbers puzzle component

Click on the component and then on the settings gear icon that will appear in the top menu.\
The configuration options are as follows:

* **Puzzle Identifier**: a default ID appears, but you can rename it if desired.
* **Images**: all the options you can use in this puzzle.
* **Solutions**: here is where you set up the valid answers. If there are multiple correct answers, click "+" and add all the necessary combinations. Just drag the numbers available from "Images" to the spaces in "Solutions". If you want the combination of numbers in a certain order, don't forget to place the numbers in that order, from left to right.&#x20;
* **Ignore Order in the Answer:** if you check this option, the player can pick the numbers of the answer in any order.&#x20;
* **Not allow duplicates**: this option will disable each number when selected.&#x20;
* **Solution length**: number of elements the solution should have. Allows you to restrict the number of options in the 'Response' area and will set the height of the component

{% hint style="info" %}
To remove a option from the solution, just click on it and will dissapear. If you need to remove a full combination, repeat this on each one.
{% endhint %}

On the left, you'll see another section called "Others," where you can:

* Enable the **Clear on Error** option, meaning that if the player enters an invalid answer, it will be erased immediately after checking, leaving the space blank for a new attempt.
* **Mute** the correct or incorrect answer sound that plays after the response is checked.

<figure><img src="/files/zBuW04yBgOk6BStttzo9" alt=""><figcaption></figcaption></figure>

## How to set the actions after the solutions is written

When the player enters their answer in the puzzle, there are only two options: either the answer is correct, or it is incorrect.

{% hint style="info" %}
It's very important to specify what should happen in each case. Click on the Actions icon in the top menu and add one or more actions for both when the player gets the puzzle right or wrong.
{% endhint %}

The available options are:

* **Go to another scene in the game**
* **Add X points**
* **Subtract X points**
* **Visit an external URL**

<figure><img src="/files/GP68wu2zBfzNY9oS524s" alt=""><figcaption></figcaption></figure>


---

# 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/game-editor/components/minigames/numbers-basic-puzzle.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.
