# Event

{% columns %}
{% column width="66.66666666666666%" %}
This node triggers a specific event and notifies the dialogue manager. The phase waits for the event to complete before continuing to subsequent dialogue phases.
{% endcolumn %}

{% column width="33.33333333333334%" %}

<figure><img src="/files/WT9RBRwJeij9vyk63xKq" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column width="58.33333333333333%" %}
Features:

* Assign a unique ID to the phase.
* Activated when its point in the dialogue branch is reached.
* After triggering the event, the node blocks progression to the next phase until the event is finished.
* Define conditions for starting the phase:
  * Once – the phase can only start a single time.
  * Known Phase – the phase starts only if the specified phase has already been triggered.
  * Unknown Phase – the phase starts only if the specified phase has not been triggered before.
* Additional Pins:
  * Event– executed each time this node is activated.
  * Post – executed right before the next dialogue phase is launched.
    {% endcolumn %}

{% column width="41.66666666666667%" %}

<figure><img src="/files/DbMZSbux3NJNtxDnp13x" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% hint style="info" %}
To complete the event, you must call the `FinishEvent` function in DialogueBranch or `DialogueManager->FinishEvent`  in other places. The next phrase will be called automatically. In this case, you do not need to call RunNextPhase, otherwise you will skip the phase.
{% 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://gamewaycreator.gitbook.io/dbs-docs/dialogue-branch-system/dialogue-nodes-phases/event.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.
