- Home /
Letting players write code.
Hey people.
I have this dream project that I would like to work towards, but I want to know if its doable in unity.
I want to make an RPG game, where the player can make their own scenarios. So I would like to make a stand-alone toolset/program where the player could write code, defining the behavior of the "world". If you know Neverwinter Nights, its pretty much that concept, except I want to give the players the ability to change pretty much everything.
Anyway, is it possible to make an in-game script editor? Or perhaps let players use an external editor to write and compile C# or JavaScript files and then use them in-game? I know there are security risks that has to be addressed, but wouldn't it be possible to make the game run in a sandbox environment, that can only do certain things?
I hope it isn't too unclear, but if anyone has any insight or experience with this in Unity, I would be really happy.
Perhaps making the game in unity, and then the toolset in Java with something like jMonkey or something equivalent in C#?
Anyway, I'd love your input on wether this is possible or not?
/Morten
I don't think so. So could create some kind of scripting language that you could interpret to do some actions. But all scripts in Unity are compiled at build time (so your standalone only has assemblies), and Unity requires that all scripts be in the player (importing them through assetbundles is not possible).
So have your users freely write javascript or C# is imo not at all one of your options, not ingame. Unless you call specific functions in external DLL (that the user can modify).
Answer by Linus · Aug 13, 2013 at 11:09 AM
Yes you can
http://answers.unity3d.com/questions/16546/creating-a-unity-moddable-game.html
http://forum.unity3d.com/threads/8971-Is-it-possible-to-make-my-game-moddable
http://forum.unity3d.com/threads/112701-Modding-and-Unity-Possible
Thanks!.. Seemed I searched for the wrong things. Sorry about that, but thanks for the help! :)
Your answer
Follow this Question
Related Questions
User added content 0 Answers
Selection box 0 Answers
2D level Editor in game creation 0 Answers
Simple modding via importation of text files and jpgs 2 Answers