MV Fustrated with learning Javascript as a beginner.

Hey, I'm completely new here.

I'm an artist first, but recently found myself getting more into programming and game development, but then realized I need to use Javascript to get what I really want inside of RPG maker, but have no coding experience what so ever. For the past week or so, to get myself started, I began looking at tutorials and trying to lay down a foundation, but it seems my brain always lags behind (I just don't get it, but then again I am still learning)

How did you all RPG makers get more experienced with javascript? I know to make custom titles screens you need to make your own scripts, so I want to learn in order to make one myself (big dream I know.) I'm getting frustrated because I don't have the slightest idea how to even start with any of this(even with tutorials its extremely difficult because they dont dumb it down enough for me to understand). I tried to use MOGhunters plugins, but I don't think it has the result I want unless I just don't know how to use it correctly. Its extremely hard to stay motivated when I feel like i wont get anywhere with this. I know these things take time, but this just seems impossible.

How long did it take you to learn? How long will it take to learn? Am I just not smart enough? Where should I really start, and how do I improve enough to do what I want in RPG maker?
I consider myself just a step beyond a beginner; put another way, I know just enough to be dangerous, lol. I took a few years of comp sci as an undergrad years ago (back in the Cretaceous). It was not javascript, but it laid a foundation for understanding programming in general. The formal structure and learning assistance involved in an actual course cannot be understated IMO. Even something like a free youtube course might help. Don't give up!

Also, general tip, try to do what you can do first. If you're stuck on the title screen right now, don't do it. Work on the art and other aspects you feel confident you can achieve. You can always go back to the title screen. (Matter of fact, mine is still hideous...)
lots of the current RPG makers plugin maker usually have a little background on programming... mostly if they already code in previous RPG makers using ruby language... or used to code in other language... so they only need to learn the correct syntax and some minor adjustment...

of course it's not impossible for complete newbie to learn javascript... but it will take more effort since you need learn from the very basic... for example like you... you're an artist... you already have basic on how to make art... so if you want to learn something new about making an art... it will be easier for you than other people without any art basic... that's the same with coding.

for starter... don't ever try to create complicated plugin straight at the beginning... because it will become a hell experience... try to modify little thing first... for example adding a custom stat to actor... adding Lv to enemy... etc... avoid modifying scenes at first... after you gain some more experience... you can then try to modify existing scenes and windows... after that raise the level again to create your own scenes and windows...

some tips for you... after you learn the very basic... try reading other people plugin code... there's many thing we can learn from other plugin maker... also it would be helpful to also read the RPG maker engine javascript code... you can find it in your project/js/ folder... there's
rpg_core.js
rpg_manager.js
rpg_objects.js
rpg_scenes.js
rpg_sprites.js
rpg_windows.js
there... and reading it will help a lot...

don't give up 😀.

you can also try asking other people in community for help when you encounter some problem with coding... i think you can post your problem in Javascript Board -> Learning Javascript

then to answer your final question:
How long did it take you to learn?
i used to study coding in my college years... but after couple of years never touch coding... it take me about few days to learn the syntax and refresh my memory.

How long will it take to learn?
it depend on your basic programming language... so i don't know for sure.

Am I just not smart enough?
all back to your effort... even you're really 'not smart enough'... with enough effort you can learn and master anything you want...

Where should I really start ?
this link is a good start for you
and there's also some tutorial on plugin making in youtube


if you have some javascript question... you could also post your problem at
stackoverflow.com
make sure to search does existing problem already been ask before first though.

How do I improve enough to do what I want in RPG maker?
you need to improve step by step... learn the basic, learn the engine, trial and error.
you also need to learn how to debug...

hope this help...
It does take a long time. But, like all skills, it is something you can get better at with practice.

If you're looking for just Javascript information, I use this website all the time:


It has sections on many languages, but that's the part on javascript. In goes over what code does, how to use it, and even gives mini quizes to make sure you're actually understanding.

I learned a lot of programming through school. Depending on price, that may not be an option for you. Luckily, though, we're living more and more in a digital age, and there are LOADS of youtube tutorials on programming. Absolutely genious programmers are out there who have free tutorials online.

It's... usually kind of boring, haha. But, if you've got hours to spare, check out some youtube tutorials. They can really help a ton!

Also, I would like to say on this question:

How long did it take you to learn?
It depends on your definition of "learn". If you mean get the basics? A few months. If you mean master? I still haven't. Imagine asking a basketball player how long it took to learn the sport. The answer will change based on where you think the line for "Learned" is.

You're an artist. Is there a single point in time when you said to yourself that you "Learned" art? Probably not. You're always getting better. Same goes for programming. You just get better and better and better. It's not a binary of "Programmer/Not Programmer". It's just a skill that you get better at.

Which also means that its never too late. No skill is too late to learn!
Most people in the community don't know how to code, at least at the level of being able to develop their own plugins all by themselves. Learning how to code isn't an easy task, no matter what the language. If it can encourage you, learning to code is really hard at first. The learning curve is steep, but once you get past that initial hard hurdle it usually becomes very easy to improve and learn more.
My personal experience is to slow down. Just learn from the beginning. When you think you've learned some things, check people's codes and plugins on the forum, and then you'll know if you learn enough or not.

As a regular person, like me, spending months to learn javascript is normal.
Thank you everyone! Not sure how threads work yet really so I don't know how to reply to everyone, but thanks for the advice and resources. I think I just needed someone to say to my face its going to be hard and to start basic. I'll definitely take into account everything! Will not give up!


Thanks again:LZSsmile:
Just a couple of quick tips:

If you've never learned any kind of programming in any language before, I recommend watching some YouTube videos that teach basic programming concepts: variables/constants, loops, objects, properties, and methods. You can learn these in any language and apply them to JavaScript, although obviously if you already know JS is the language you want to learn most, you might as well start with a video that teaches them in JS.

For applying it to RPG Maker (the syntax and concepts are almost all the same, but the dynamic is different because you are playing around in so much existing code with its own style), it takes some time and there's no real shortcut to it. Being frustrated is okay; it pays to ask on this board because no one has full mastery of every method in the default codebase and how they call come together (except for the guy who wrote it). But what I would recommend as a starter is to play around with the damage formulas which are in the database instead of the code files. Try to do some really wacky stuff, like applying State #8 to any actors who already have State #4 applied, or have the party gain 100 gold and then play a sound effect, as part of the damage formula. The fact that you won't need to mess around with the order that one method interacts with another will ease your learning curve into understanding what does what in RPG Maker.
I only really started learning javascript after started using RPG Maker, and currently still learning and getting more of a hang of it.

As mentioned above, w3school I referred to a lot to learn the syntax for JS at first.

At the beginning, I mainly played around with script calls in RPG Maker MV along with the help of RMMV Script Call List to write very basic snippets of code to do little calculations eg storing particular values for the in-game variables.

Some useful basic script call videos

After being more confident in using that script calls list and more comfortable with the JS syntax, I tried to follow tutorials to make my own scene and windows etc. I found it was a steeper learning curve studying and trying to understand how some of the core scripts works - almost like following a map of functions to find out how they all piece together.

It is challenging, but quite satisfying when something I cobbled together finally works!
I only really started learning javascript after started using RPG Maker, and currently still learning and getting more of a hang of it.

As mentioned above, w3school I referred to a lot to learn the syntax for JS at first.

At the beginning, I mainly played around with script calls in RPG Maker MV along with the help of RMMV Script Call List to write very basic snippets of code to do little calculations eg storing particular values for the in-game variables.

Some useful basic script call videos

After being more confident in using that script calls list and more comfortable with the JS syntax, I tried to follow tutorials to make my own scene and windows etc. I found it was a steeper learning curve studying and trying to understand how some of the core scripts works - almost like following a map of functions to find out how they all piece together.

It is challenging, but quite satisfying when something I cobbled together finally works!

Oh this Script Call List is going to be helpful! Im just gonna keep practicing some beginner javascript tutorials/basics and see where I get when i'm a bit more comfortable with it. Thanks for your input 🙂
How did you all RPG makers get more experienced with javascript? I know to make custom titles screens you need to make your own scripts, so I want to learn in order to make one myself (big dream I know.)
I strongly suggest that instead of thinking in terms of "making a custom title screen from scratch", you instead think of it as "modifying the existing title screen until it does what you want".

I would actually propose the best way to learn how to script in RPGMaker is actually by learning to edit/alter existing scripts/plugins, whether they are third-party scripts/plugins or the base scripts (the .js files in RMMV) that make up the engine.

Because even if you already know how to program, even if you know all the Javascript syntax, you will still run into the issue of not knowing how the RMMV engine is structured and how it operates until you read through the base code in the engine.

At the end of the day, you will realize most "custom screens" are still built ontop of other parts of the engine. For example, most "custom title screen" plugins/scripts are still typically built ontop of the existing "Scene_Title" code anyway.

It has to, because the way the engine works is that the first bit of code ever run ("main.js") calls the code in the class "Scene_Boot", which then looks for one of 3 screens to load depending on whether you are running a Battle Test or Event Test or the actual full game. If it's a Battle Test, it loads "Scene_Battle", if an Event Test, "Scene_Map" and if you are actually trying to run the full game, "Scene_Title", which is the code for what you would think of as the title screen.

That is to say, Scene_Boot looks for a block of code to run specifically named "Scene_Title". If you named it anything else (like "Scene_Custom_Title") or whatever, it simply wouldn't load it. You would have to further edit Scene_Boot in order to force it to look for your custom-named title screen instead of the code named "Scene_Title". But unless you plan to use 2 title screens for some reason, there's not much point in doing that when you could just modify the existing Scene_Title instead.

That's the kind of knowledge that you wouldn't have, even if you knew everything about Javascript and how to program. You would only know that by reading through the RMMV code base and playing around with the engine itself.

And now if you think about it, if you have to keep the name "Scene_Title" for it that also means your "custom" title screen, no matter how different and modified from the original, is still technically going to count as just an "extremely extensive modification" of the original Scene_Title. This is something that is going to apply to many things you try to do with the engine.

So if you just start with small edits and work your way to learning how to do bigger ones, eventually you'll reach the point where you know how to replace everything ship-of-Theseus style and essentially make things from scratch, except you usually won't, because you'll know how the engine works and that you will usually need keep at least SOME of the original just to make it work with the REST of the engine.
I do selflearning on javascript and with some searching, but try to start small.
my ShadowDragon_TF (in spoiler) is more a learning curve, not all are perfect though.

but it's a start, my MC is build from a base, and I have a plugin that isn't found anywhere
yet, but also very complex for a specific use made =)

but that code or most of some goes beyond my knowledge.

basic javascript is something you need to know and what some syntext mean like:

// = comment (usefull to know what the function does when you make them)
= for equal
== eqaul too
=== more strict for a specific value
etc etc

while I use ES5 (easier for me), some use ES6 (cleaner, but also more complex)
unless you understand them correctly how to use it.

while there are some title screen plugins from TSR, MOG, MrTriver, look at those
plugins and other plugins how it's coded (each uses their own way in coding).
but you can understand how those works in scenes and windows =)

Original thread: https://forums.rpgmakerweb.com/threads/fustrated-with-learning-javascript-as-a-beginner.131634/