Hey guys,
I was just wondering how do people allow players to inject code into your game?
I never played it but I think game like screeps is what I am looking for.
You can write a "script" and it will run in your game.
The words "interpreter" comes into mind but no idea how that actually works.
Anyway a briefer would be nice, considering I have no idea where to start this, I don't even know if its achievable for me.
Not even sure what to search, thus I come to you guys.
Also, not sure if its this is the correct question but even after figuring out an interpreter - one issue I am thinking I will run into is the "time used by an action"
If the AI a player writes a billion nested IF loops I want it reflected in the processing time... instead of 1 frame.
This is probably harder than what I can do but I would like to know, I like to learn things even if I don't complete it.
OH yeah, I have dabbled in C# and Java, javascript, and python, if possible can you make the answer revolve around those? I mean I am not oppose to learning new stuff but it would be nice if I can use what I already partially know just to speed things along. It would be great if I can also use unity for this...
Ideally I want it to be online multiplayer with rooms, but that is a whole another can of worms we don't have to go into right now but please make the answer compatible with a solution...
Thanks
If I was unclear in anything, please let me know, I will try and rephrase it.