Skip to content

Commit

Permalink
Add example command to set an interlocutor
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Feb 13, 2024
1 parent 1690faf commit cb34f6c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions wiki/blabber/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,17 @@ Here is an example of conditional choices in JSON:

Of course, dialogues often involve talking to *someone* (or something). Since version 1.2.0, Blabber lets you specify
an *interlocutor* entity when starting a dialogue (using an optional argument in the command / in the API).

{% capture example %}
```
blabber dialogue start <dialogue> @s @e[limit=1,sort=nearest]
```
{% endcapture %}
<figure>
<figcaption>Example command to start a dialogue with the closest entity as interlocutor</figcaption>
{{ example | markdownify }}
</figure>

This relationship can be used in several ways:

#### In commands and texts
Expand Down

0 comments on commit cb34f6c

Please sign in to comment.