What would RMVXA scripts be if they used Javascript instead?

As it seems to me that RMMV uses Javascript, while RMVXA uses Ruby, I'm wondering about the possible impacts of that change.

As I don't know Javascript yet, I'll have to learn it so I can comprehend the default RMMV scripts, edit and translate existing ones, and write new ones.

If I could at least have a vague idea of what RMVXA scripts would be if they used Javascript instead, I think I'd have a better idea of what RMMV scripts would be.

If RMVXA scripts could be written using Javascript instead, would you do so? What do you think the scripts would be? Frankly, I've almost no idea for any of these at all 🙂
Well, one visible change will be how it looks

RGSS3

Code:
def myfunction(params)  dothisend
JS
Code:
function myfunction(params) {  dothis;}
Then so far it looks just a matter of how they actually go with the actual methods/functions. IDK yet the equivalent functions of RGSS3's methods so...
It means that the programmer will have to spend twice the time they spent writing the code, formatting it.
It means that the programmer will have to spend twice the time they spent writing the code, formatting it.
I'm interested in why that would be the case(again I know almost nothing about Javascript) 🙂
It's been forever since I've worked with any JavaScript (to make a personal website back when Geocities was popular) so this is mostly conjecture, but I think JavaScript's library contains a lot more native functions/classes for handling basic graphics, sound, and possibly computer-related functions as opposed to Ruby (which was originally designed as a Text Manipulation language).

RGSS is a nice system built on top of Ruby, of course, and I believe that Enterbrain basically added all of RGSS's audiovisual functions on top of Ruby.  But as scripters we are stuck with "what did Enterbrain add" - and admittedly they did add the capabilities to do a lot - rather than having a language that can already support almost anything we could dream up.

So I think that this will be a good thing for the best scripters as well as the people with pretty wild dreams about their RPG's functionality, whereas for newer scripters it will mean some growing pains as you need to get familiar with a considerably different (and more stringent) syntax.  Even though I find myself closer to that second category, I'm excited for the possibilities.

As a bonus, Unity fully supports JavaScript (even though C# seems to be more commonly used, you can do anything in JavaScript as well), so learning to script for one platform will give you a huge head start if and when you want to move onto the other.

P.S. - Where did you see that MV will support JavaScript?
The majority of the VXACE scripts are currently heavily coupled to the standard script framework.


Before we see how the standard scripts look like in MV it's not really a question we can answer very well.


Wait and see is my suggestion, however frustrating that might be.


@Wavelength: http://www.rpgmakerweb.com/products/programs/rpg-maker-mv


*hugs*
Maybe the Eventeditor in MV is so Powerfull that Scripts are mostly not needed or easy be re Evented  with Eventcommands? Hopefully 🙂

If it uses Java Script, does that mean some folks will be able to release 2player multiplayer via internet or games with server and than up to 50 players?
There will always be things people will want to do that cannot be done with event commands 🙂


JavaScript and HTML5 - I do believe this will be the introduction to online and multiplayer. That's gonna be one heckofascript to write!
@Bex - If they tried to make it such that scripts are not even needed, they will never finish that maker...


Right now all we can really do is well, wait. We won't know how to convert the RGSSx scripts to JS while we don't know what functions are in the JS that RM MV will use.

Original thread: https://forums.rpgmakerweb.com/threads/what-would-rmvxa-scripts-be-if-they-used-javascript-instead.43382/