Its a great idea, potentially very useful in RPG-type games.
Can I suggest that you might want to simplify the syntax a little.
For example, the lua_loadbuffer function should just be passed the script string, it can then do the conversion and get the length itself inside the function.
Can I suggest that you might want to simplify the syntax a little.
For example, the lua_loadbuffer function should just be passed the script string, it can then do the conversion and get the length itself inside the function.