When an Lua script is created, a Bespoke Event is also created called the same name as the Lua filename but with "LUA_" added to the beginning.

The Bespoke Event contains a unique Task that will run your Lua script. Note that this unique Task is not available in Detective, it is created automatically by the Lua Console.

Therefore, just like any other Bespoke Event, all "LUA_" Bespoke Events will appear in the Events drop down list for assignment to buttons, switches, rotaries and selectors in the normal fashion. They can be assigned to ON, OFF, HOLD, CLOCKWISE, and ANTI-CLOCKWISE Events etc.

For LED's and Displays, assign a relevant variable or assign specific data to a Bespoke Variable in the Lua script and use the Bespoke Variable as the Light Data.