You misunderstood what I was saying. You have in your head this idea of a cyberpunk game where the player is hacking. That’s cool. You did not provide that information until later in the same post where you said telling us that stuff doesn’t matter. But it does.
Again, evidenced by the responses. Because people were posting guesses about what you might actually want to do with it.
The common ground between these two languages is accessiblity to online ressources and algorithms the player may want to research
Ok, so not about the fact that they are interpreted instead of compiled? FWIW, python is the most popular language in the world for introduction to programming.
And maybe familiarity to them already.
Sure. Which also means that people could use your game as a virus delivery mechanism. Tell people to copy this code and run it and then people infect themselves with backdoors. This is one of the biggest dangers of using a real programming language in a videogame - social hacking. It’s important to make sure that you understand the security implications, because you can be named in a lawsuit even if it wasn’t your intention.
And from my Point the chance that there maybe already some integration.
There are python and JavaScript versions of Godot.
the code should be written ingame but exporting/editing it outside should be possible (in a comfortable way).
Which is fine, but again, keep in mind that this introduces another way for people to get hacked. This is in fact, the reason people don’t like saving Resources - because executable scripts can be stored in them if you don’t sanitize them. I would recommend you think about how you’re going to sanitize anything incoming.
What happens when code run in your game accesses the OS? Are you going to stop it? Are you going to give them a limited number of commands that work like @renevanderark suggests?
These are all questions to consider, because you’re going to get them as soon as your game is announced, let alone launched - and not having very good answers will get you not only bad publicity, but could prevent you from being hosted by Steam, Itch, Apple and Google if they decide you are a security risk to your users.