# Wordwheel (Minigame)

<figure><img src="/files/0UmdYMJHyxGXeGTuIId6" alt="" width="375"><figcaption></figcaption></figure>

## How to set up Wordwheel

WordWheel is a super fun mini-game incredibly easy to set up.

<figure><img src="/files/3lCHU1Bcl0yhKqCUUJfr" alt=""><figcaption></figcaption></figure>

Simply drag this component into the scene where you want it. To configure it, double-click on the component within the canvas or use the settings option that appears at the top of the menu when you click on the component.

A modal will appear with two options:&#x20;

* **Questions and Answers**: you must configure all the options that will appear in the game.\
  The order in which they will appear in the game is the same as the order shown in the configurator, from top to bottom.\
  Assign each letter to a question. You can include one or multiple answers in the response field.<br>
* **Advanced**: you will find two advanced options:
  * **Include welcome message:** use this feature to include a welcome message before starting the mini-game. The message "Welcome" will appear, along with a button the player will press to start playing WordWheel.
  * **Fail to pass letter**:  If it is not activated, the player will be able to pass a word and try again once around the wheel. If enabled, the player will lose the letter if they decide to pass a word without guessing it. This forces you to play the wheel only once.

{% hint style="info" %}
The component directly will show the title "Starts with the letter X" or "Contains the letter X" according to the solution.\
Example: Letter=M; Question=Capital of Spain -->  Title (automatic)= "Starts with M:"
{% endhint %}

At the end of the game, an automatic message will appear, indicating how many questions the player answered correctly out of the total.

## Actions available for Wordwheel

This step is very important and it's also simple, so let's go!

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

The options available to set up are:&#x20;

* Player gets all the questions right before the countdown finishes (passes the game)
* Player doesn't get all the questions right or do it by the time (loses the game)
* Player fails a question
* Player hits a question
* Player pass a question

For every option you can assign one or more actions from these:&#x20;

* Go to scene
* Add X points
* Substract X points
* Visit a URL

Example: If player gets all the questions right (passes the game):

* Action 1: Go to Scene "end"&#x20;
* Action 2: Wins 1000 points.

{% hint style="info" %}
It's key you set up all the actions so the player gets a feedback with every action they take during the game. Also, actions will define what happens once the game finishes.&#x20;
{% endhint %}


---

# 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/wordwheel-minigame.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.
