PLugins able to call functions in Lua tables

Posted by Tsunami on Wed 14 Jun 2006 06:34 PM — 2 posts, 14,248 views.

USA #0
Would it be possible for triggers to call functions in Lua tables? Ie:

demo = {}
demo.test = function() world.Send('blah') end

<trigger
...
script="demo.test"
...
>
</trigger>

Or something along these lines? It's easy enough to work around by simply making duplicate functions that are callable by triggers, but thats so messy...
Australia Forum Administrator #1
This is implemented in version 3.75.