> For the complete documentation index, see [llms.txt](https://tooltips.gitbook.io/tooltips/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tooltips.gitbook.io/tooltips/plugin/guides/betonquest-dialogue.md).

# BetonQuest Dialogue

<div align="left"><figure><img src="https://2056457066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO0fJVi4OrBJoOYrP9n9t%2Fuploads%2FHCs9lH9lbqKAa229NsqY%2Fimage.png?alt=media&amp;token=92f0abaa-b191-4148-9127-9768d428088a" alt="" width="563"><figcaption></figcaption></figure></div>

{% stepper %}
{% step %}

### Configure BetonQuest

In order for Tooltips to be able to read BetonQuest dialogues, it has to be set as the <mark style="color:blue;">`conversationIO`</mark>. This can be done in a conversation package:

```yaml
conversations:
  Beton:
    quester: "Beton"
    first: "firstGreeting"
    interceptor: none # <-- This will allow chat to work
    conversationIO: tooltips # <-- Like so
```

{% endstep %}

{% step %}

### Create the necessary presets

Here's a basic setup which supports animations. Put this into <mark style="color:blue;">`plugins/Tooltips/presets`</mark>. The animations have to be defined in the BetonQuest config and must use the MiniMessage format.

{% code title="dialogue.yml" %}

```yaml
speaking:
    priority: 1
    text:
    - $context(betonquest.npc)
    - $preprocess($context(betonquest.text))
    theme: default/five-line
    conditions:
    - betonquest REQUIRED
    - compare{1=$var(done)} CANCEL
    actions:
        right-click:
        - skip
        animation-finished:
        - delay 3 setvar %player% done true
        
done:
    priority: 2
    text:
    - $context(betonquest.npc)
    - $static($strip($context(betonquest.text)))
    - $static($if($context(betonquest.options[length]) > 0, "<green>» $context(betonquest.options[$context(betonquest.selected)])", ""))
    theme: default/five-line
    conditions:
    - betonquest REQUIRED
    - compare{1=$var(done)} REQUIRED
    actions:
        left-click:
        - nextoption
        - redisplay
        right-click:
        - selectoption $context(betonquest.selected)
        - delay 6 clearvar %player% done
```

{% endcode %}

Read more about [BetonQuest integration here](/tooltips/extra/integrations.md#betonquest).
{% endstep %}

{% step %}

### Reload

Reload Tooltips using `/tt reload`

Reload BetonQuest using `/bq reload`
{% endstep %}
{% endstepper %}
