Calling a custom 'Set' function for an Action

Szpilman

Void Co. Chairman
Joined
Dec 2, 2006
Messages
746
Location
Cola
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?
 
I am not sure I understand what it is exactly you are trying to accomplish. Could you be a bit more specific on the what, when, where and why's? =)
 
Well, currently all I know to put in the Actions screen, in ModBuddy, is OnModActivated | UpdateDatabase.

If I knew of other possible strings, doing different things, maybe I'd be able to use them to do nice things when modding :) Specifically, in the first post I was asking if it was possible to actually create (through LuaEvents or otherwise) a custom string to be used under 'Set', on the aforementioned Actions tab.
 
Back
Top Bottom