# Asker

{% hint style="success" %}
**COPY/PASTE PARAMETERS**

New in GM 0.11! Right click on a behaviour or component to copy. Then open an object, add the same behaviour or component, and right click it to paste identical parameter settings.
{% endhint %}

{% hint style="info" %}
[build-singleplayer-and-multiplayer-logic](https://docs.sandbox.game/en/creator/game-maker/docs/build-singleplayer-and-multiplayer-logic "mention") - about <mark style="color:green;">**\[SP]**</mark> or <mark style="color:yellow;">**\[MP]**</mark> behaviours or components.
{% endhint %}

## ![](https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2Fe3VONdgy8QfCGAG04kRu%2Fimage.png?alt=media\&token=6e0d3ae4-5cad-4c4f-8b66-255d2b6ab630) Asker <mark style="color:green;">\[SP]</mark> <mark style="color:yellow;">\[MP]</mark>

* Integrate NPC dialogue as a question or statement with up to four answers that trigger logic

<div><figure><img src="https://content.gitbook.com/content/83PS3g9zpWmq73xzlwFn/blobs/L20XjyhhgBo8yfKcRf5B/GM%20asker%20spawner%20behaviours.webp" alt="" width="563"><figcaption><p>Interact with an NPC and trigger logic</p></figcaption></figure> <figure><img src="https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2F19aahrZnyCUWPsHyTEab%2Fimage.png?alt=media&#x26;token=7068c488-70c9-456b-8972-fa37c9fb1960" alt=""><figcaption><p>One question or statement can have up to four answers to trigger other logic</p></figcaption></figure></div>

### Common Uses

* Dialogue with NPCs for quests or quizzes, with text formatting for keywords or hints
* Player choice and branching logic through dialogue-driven choices

{% hint style="success" %}
See [text-quests-and-icons](https://docs.sandbox.game/en/creator/game-maker/creative-guides/logic-guide/text-quests-and-icons "mention") for logic tips and text formatting related to this feature.
{% endhint %}

***

## How it Works

### Trigger: <img src="https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2FOIwcqqUbe1AR4xFkyW7R%2FMessages%20voxel%20icon.png?alt=media&#x26;token=20120bd2-80d7-4e3c-a18e-8586db076877" alt="" data-size="line"> Multiple messages in

### Action: Dialogue UI

Asker UI appears in the center of the screen (not related to the object's location).

### Out: 1 of 4 messages sent

Each answer can send a unique message to trigger other logic. Use one to 4 answers.

<img src="https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2F1jsfbcHgA3qhY4PIHE61%2FMessage%20voxel%20icon%20sm.png?alt=media&#x26;token=16a38bef-71bd-4454-9a79-5c9ff90ab234" alt="" data-size="line"> A1, <img src="https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2F1jsfbcHgA3qhY4PIHE61%2FMessage%20voxel%20icon%20sm.png?alt=media&#x26;token=16a38bef-71bd-4454-9a79-5c9ff90ab234" alt="" data-size="line"> A2, <img src="https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2F1jsfbcHgA3qhY4PIHE61%2FMessage%20voxel%20icon%20sm.png?alt=media&#x26;token=16a38bef-71bd-4454-9a79-5c9ff90ab234" alt="" data-size="line"> A3, <img src="https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2F1jsfbcHgA3qhY4PIHE61%2FMessage%20voxel%20icon%20sm.png?alt=media&#x26;token=16a38bef-71bd-4454-9a79-5c9ff90ab234" alt="" data-size="line"> A4

{% hint style="warning" %}
**AVOID LOGIC CONFLICTS**

Your Experience may use many Askers per NPC triggered in a sequence for a conversation, quiz, etc. Create unique messages sent by Asker answers to avoid logic conflicts.
{% endhint %}

***

## Parameter Notes

{% hint style="warning" %}
Remember to change the **Speaker Name** to reflect your Experience's characters (NPCs).
{% endhint %}

**Only once:** Use only one time or every time triggered

#### Text Limits

**Question:** 260 characters

**Answer:** 60 characters

<figure><img src="https://331512196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83PS3g9zpWmq73xzlwFn%2Fuploads%2FzZPURAtpqubhQMTdSlBY%2Fimage.png?alt=media&#x26;token=938c23f0-4824-4832-9ccf-3038ebfec306" alt="" width="334"><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://docs.sandbox.game/en/creator/game-maker/docs/behaviours/basic-logic/asker.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.
