Component > Dialogue System > Trigger > On Dialogue Event > Lua
Lua On Dialogue Event runs Lua code when it receives a dialogue event message.
| Property | Function |
|---|---|
| Trigger | The dialogue event trigger |
| Once | Bark once and then destroy this component |
| On Start | Conditions and Lua code to run when the dialogue event starts (e.g., "OnConversationStart") |
| On End | Conditions and Lua code to run when the dialogue event ends (e.g., "OnConversationEnd") |
| Debug Lua | Tick to log the Lua execution to the Console |
Use this component to run arbitrary Lua code when dialogue events occur. If you need to set a quest state, it's easier to use Set Quest State On Dialogue Event.
This component updates the quest tracker if you've configured one.
<< Components