Executing a subtrigger from
a Lua function
This example shows how to execute a subtrigger from a
Lua function, along with passing a value into the
subtrigger and receiving an output from the
subtrigger.
The export file for this project, trigger, and subtrigger is here: Trigger_MyNewTrigger_subtrigger.dwx
Assumptions
- You know how to define and edit triggers. The trigger List Editor is shown, the Canvas Editor can be used as well. The flow is similar.
- You are familiar with the Lua language syntax.
The example
The following will walk you through the steps to define a trigger that will execute a Lua function from a Lua script: