What's the best strategy to create AI scripting for players? Use an existing language? Which one? Or roll my own?
hi! I don't know if someone already told you, but if JavaScript is ok for your purposes you can use Java Scripting technologies: http://java.sun.com/javase/6/docs/technotes/guides/scripting/index.htmlI'm making a game that uses it.
code example:
| 1 2 3 4 | String scriptCode = ... ; // contains JavaScript code |
script example:
| 1 | out.println("Hello, world!"); |
very easy



