Adding scripting functionality to a game?

Hello!

I’m working on creating a virtual world multi-player environment with Unity as the backbone. One thing I was interested in is allowing users to write their own scripts to achieve basic functionality “in world” (inside the game)- much like you can do with Linden script in Second Life. The goal would be for the user to be able to open a simple editor inside of the game, type a few lines of code, and it be interpreted by the game.

The question is simple- is this even feasible? I was thinking of using something like IronRuby or IronPython since they’re compatible with mono (I believe?), but I was unsure of if they’re compatible with Unity3D specifically. Also- would it even be possible to tie one of these languages into manipulating the transform of a game object, moving the player’s position, etc?

Thanks!

I have heard of people compiling modules at real time and then loading them in. I think the feasibility relys on what platform your targeting. If its a windows or mac standalone i’d say it’d be feasible. But I would doubt that ability in web player, and am unsure about ios or android.

I don’t think theres support for running things like a real script language would supply afaik Mono requires you to compile everything before running, unless you implement some sort of interpretor or virtual machine.

Would be cool to see some squirrel action

Yes. It’s possible. But you would need to script in your parser to parse whatever players type and well decode that message to do things but i won’t say it’s easy to do.

You could make your own script
WoW does that with it’s macro system

Of course it’s possible!

As proof - http://forum.unity3d.com/threads/102699-BFI-)

And of course, to some extent you can dynamically bind dlls etc. but that’s hard.

The problem is do you really want to spend the time not only to develop a decent scripting system - but figure out how to build one that won’t crash your game, present a security risk, or distort game-play (e.g. letting players create bots).