Hello,
I'm making a small engine for a game I'm making using C++, and I figured I'd implement scripting so that the same engine can easily be used for many games. Now, how I wanted this to work was having multiple game "objects" in the game world, all running their own script file each "step"(Frame) and remember variables set at previous runs(previous frames). Having looked at Lua, GameMonkey and Squirrel, I have seen that this isn't quite as simple as I would have wanted it to be. I'm still new to implementing scripting languages, so I have some problems figuring if it will even be possible.
So heres my questions:
-Is the above possible?
If so, could you point me to a small example or to what/where in the manual I should look?
-I'm planning to have multiplayer as a main feature of the engine, and as I have understood, I would need to keep the objects in sync over all game instances, so that also means I would have to sync variables set for each object. Is there a way to know when the script has set/updated a value inside the script? Like if they call "number=10;", I will be able to know that in my C++ engine, and update that value over the network.
-Lastly, I have looked a bit at SquirrelPlus, but it doesn't seems to have much of a reference or documentation to how it works other than the examples. have i missed the documentation, or does it simply not exist?
Thanks in advance :)