Lua and C++ scripts