# Questions (Basic Puzzle)

<figure><img src="/files/32O1nsxodsmaubkbdYDd" alt="" width="375"><figcaption></figcaption></figure>

Drag the component from the components 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/ApaEG3ry8ramn4xyKjBY" alt=""><figcaption></figcaption></figure>

## How to set the puzzle question 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.
* **Solutions**: here is where you indicate the valid answers. If there are multiple correct answers, click "+" and add all the necessary ones.
* **Ignore Case Letters:** if you check this option, the player can write the answer in either lowercase or uppercase letters. You’ll need to add all possible answers in lowercase.

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/za8ci5Lsv5YCM3qYcm8E" 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/b2G4o1MAjcCNSlrS8GpS" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
When the answers can be very broad, remember to include all possible solutions as valid answers.
{% endhint %}

\
For example, if the correct answer is the name of a street, the player might write the answer in different ways, such as: Calle San Bernardo, Calle de San Bernardo, San Bernardo...


---

# 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/questions-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.
