Search Unity

Interpreted scripting support?

Discussion in 'Scripting' started by GarethF, Oct 7, 2010.

  1. GarethF

    GarethF

    Joined:
    Oct 6, 2010
    Posts:
    16
    Hi, I had a question.

    Is there support for interpreted script in Unity? What I want to do is read a string from a DB during play and execute it as script. It's quite useful for RPGs, your game objects have 'events' ( such as OnEquipWeapon, OnEnemyDie ) and you can write little bits of script that the game reads and executes on the fly. If you've ever played with the Elder Scrolls or Neverwinter editors, you'll have used this kind of things extensively.

    Especially since I'd like to ship an editor for modders to use with my RPG. Again, very similar to Elder Scrolls/Neverwinter.

    Is there any support for that in Unity? I've read about how it compiles your code. If there isn't, any easy ways to hook up lua or another scripting language? Anyone done anything like this?
     
  2. AngryAnt

    AngryAnt

    Keyboard Operator

    Joined:
    Oct 25, 2005
    Posts:
    3,045
  3. GarethF

    GarethF

    Joined:
    Oct 6, 2010
    Posts:
    16
    Thank you.