Is it possible to load a Lua script or a database operation (XML/sql file) based on a custom function/event defined on a game file (say, an interface Lua file). For instance, I tried defining a new LuaEvents.OnCustomEventTest.Add(function() print("worked!") end), and in my Actions I would have 'OnCustomEventTest' do an UpdateDatabase operation with some xml file. Didn't work. Is it possible, how to do it?
Also, how to load an actual Lua script? I'm guessing I should use an action Type other than UpdateDatabase, so what would that be?
Also, how to load an actual Lua script? I'm guessing I should use an action Type other than UpdateDatabase, so what would that be?