> For the complete documentation index, see [llms.txt](https://renownedgames.gitbook.io/ai-tree/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://renownedgames.gitbook.io/ai-tree/integrations/dialogue-system-for-unity/lua-run.md).

# Lua Run

Node description and basic instructions

Uses the lua to execute specified code.

{% hint style="success" %}
To execute of Dialogue System lua code it is enough to use this node!

You can learn about the syntax and coding rules in Lua on the [Pixel Crushers website](https://www.pixelcrushers.com/dialogue_system/manual2x/html/logic_and_lua.html).
{% endhint %}

***

To create it, right-click on free space in Behaviour Tree window and select:&#x20;

* <mark style="color:purple;">**Create Node/Tasks/Integrations/Dialogue System/Lua Run**</mark>

This task node has a number of fields, that are highlighted in picture below.

<figure><img src="https://2203000093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGOxTM7Aj9oiVaIINrEkE%2Fuploads%2F6yLSJJzaMmTCi7uU6LAj%2FLuaNode.png?alt=media&amp;token=fe00818c-c915-41e7-8737-ae2df7057119" alt=""><figcaption><p>Lua Run node</p></figcaption></figure>

### Fields

| Name              | Description                             |
| ----------------- | --------------------------------------- |
| Node Name         | Custom name of node.                    |
| Ignore Abort Self | Whether node ignores abort self or not. |
| Lua code          | Code of Dialogue System Lua to execute. |
