# Example from the Demo

This example is from the first Quest of the Demo Level, we are binding the Custom Dispatcher Tut\_MoveAssist, Tut\_OpenDoor1 and a Dispatcher for using a Global Custom Variable named tut\_FE.

<br>

<figure><img src="https://lh3.googleusercontent.com/wMXTXS7BrPUdiww7EoFl9TvzHG4nOAtjlAQn1O8f4X0ZNZbXPlqFdHCE3dlHYONGvWy58SbA3vuPekPEt2IteVHF6LNCDUgYpDwei34gE2FpdxqtCi4a_jpZQ0RSTXtbHffmYcmrxUpLuKooeUYa5qYj9nzGIieFCD-INN1UCDQ9kCnFknoCYhwZ5Wp6bA" alt=""><figcaption></figcaption></figure>

Add Tut\_MoveAssist in CallCustomDispatcherOnAccept to call the Dispatcher after this Quest got accepted to execute the code that moves our NPC:<br>

<figure><img src="https://lh3.googleusercontent.com/UMSuUobShSiMdptMppC0Rj_jXw1S2JryWTA5qCT4iWTCmmHVKItjBUoG2XlQmurAigMeKSu1T_KII2pS90ASZuft3JAKyFxLIeUyxDa2KDphls7u6bNx1kUjr4nDQUZfpkSvKIJogLZRUJ_HDOEuf_70byHd9OUqCBYv4rAZxfEPKB-dXsq4ntCNbml1CA" alt=""><figcaption></figcaption></figure>

Add Tut\_OpenDoor1 as our Dispatcher that should get called after the Quest is done:<br>

<figure><img src="https://lh5.googleusercontent.com/Pmky0QXUwLGWoW8kisMt_-HKgKglxeA4e6VIzESvBMy5oXnrL0REe_PuFhpQsS-bBU7bdROS64PZAvzfkEgAJAV1hKZcpCB5M54Jfpcguu3-1ZSnaPgvEM-1xuLu03TUdLmTDdwbvKYi2fJIJJYA_XRr-KER8kxH9E4-FB_jiX0C34nFhN64r_0LjUAj7w" alt=""><figcaption></figcaption></figure>

Now we can run some code inside the Blueprint!<br>

<figure><img src="https://lh5.googleusercontent.com/27Y8SELxsu1chlOH34nygHhqrb03lEz4MoOe0ECKB9vwaxMagWsWmfUw4y4-x5lNwUCbHibpyeOc7NOeQRjQEtVwLSppAPQCqGo2XVqsO35iE_Gry5F4YFgyM2EtvA99DXOMFvMi3gPcf11W95rpwwW_jkyG6iJzObxDKSkapYhrAXjt7j0F4l-aWyXj3g" alt=""><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://rpg-system-all-in-one.gitbook.io/documentation/other-subsystems/custom-dispatcher-system/example-from-the-demo.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.
