Original Post
Hi
I''ve just started toying around with Lua recently. What I want
to do is encapsulate a script file into a C++ class.
That way I can store and execute scripts in an orderly manner. The problem that I ran into was that I have to call lua_load to load the file or buffer into the lua state. Basically I''m trying to figure out whether or not I have to reload the script every time I call it. Is there a way to load multiple scripts into a single lua state?
Another thing, would it matter if I had multiple lua states? I know I can use concurrent functions to execute scripts simultaneously having a lua state in each script class would allow me to create scripts with various behaviors.
Kory