lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Well, The app i'm currently trying to make is a log parser for online games, Mainly to find certain text matched and alarm the user if found

Now i want to use lua to allow to make easy scripts to create triggers to find.

Example test.lua

trigger("find this in the game log file, "Test_function"); the search phase and call Test_function when found

function Test_function() // Do this
   speak("test");
end

Basicly on script load C# will add the triggers into a arrayList wich the app will loop trough and if a match happens it calls the lua function Test_function

Now i want to be able to load new scripts while the program is running and to be able to unload scripts.

Sorry for my bad english =p