Hello, I am the developer for an unannounced RPG Engine, and the answer is actually pretty simple.
It is because of Enterbrain's intention to support mobile and web platforms. Let us go one by one:
- Android devices usa Java, and Java actually has libraries for script embedding (ruby, javascript, groovy, python, etc). However, Android doesn't really use the conventional virtual machine we have in our desktops. It uses Dalvik, which doesn't actually include the scripting embedding libraries I just mentioned.
- For iOS, I cannot guarantee the answer, but I believe that Apple explicitly states that any code executed in your application must be compiled. Not one bit is permitted to be interpreted/dynamic (security reasons). Ruby can indeed be compiled instead of interpreted (as is the case of JRuby), but I believe this is a difficult task.
- For Web, you can't really run Ruby dynamically. The interpreters you see online are actually programs running in a remote server (obviously) rather than in your browser.
Javascript works on all three scenarios above. Hence, it is an obvious decision.
However, the engine my team is working on actually allows Ruby scripting and solves all three problems without the need of Javascript :]
** Note: No, JRuby is not the answer. JRuby depends on the libraries that Dalvik lacks.