RPG Maker Forums

Introduction


Hello, everyone! It’s time to discuss ES6, or JavaScript in RPGMaker MV(RMMV). Most code in RPGMaker MV is written in ES5. RPGMaker MV is an engine running on NW.js (or Node-webkit); the version is older (nw.js is 0.12.3), however this still allows developers to use some ES6 syntax inside of their code alongside ES5 code.


To start of, I’ve decided to gather most of the features that work in RMMV. Here’s a list of ES6 features available in RMMV.


Features


  • Block Scoped Variables

  • Objects



    Object Assignment

  • Shorthand Object Properties

  • Method Properties

[*]
Template Literals



  • Expression Interpolation

  • Multiline Strings

[*]
Classes



  • Class Inheritance

  • Base Class Access

  • Getters and setters

[*]
Symbols

[*]
String Methods



  • Repeat

  • Starts With

  • Includes

  • IndexOf

[*]
Numbers



  • Type Checking

  • Safety Checking

  • Number Comparison

  • Truncation

  • Sign Determination

[*]
Sets and weak sets

[*]
Maps and weak maps




Each of these features can enhance your code in some way as you’re developing your plugins. Furthermore, you can use them in tandem with regular ES5 code; that’s the most important point to make.


In future posts, I’ll go over each feature in depth, and give you a general idea of how each one can improve your code in some way, as I’ve started using ES6 in my JavaScript.


Finally, if you enjoyed this small tidbit of information, or you think you’d like to know more, please comment down below and stay tuned!

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,470
Members
137,821
Latest member
Capterson
Top