Your advice/experience with learning JavaScript?

Hello! Would really appreciate some advice from some plugin creators! I’m a newish dev (started in 2023) and I really want to learn Javascript and C#

I do not know how to code

I would love to start making plugins for RPG Maker MV as I have a really cool idea for one: but that requires knowing how to code with JavaScript. I’m intimidated by the learning process for it as it all feels like a lot of information.

Anyways, my question is how did you learn how to work with JavaScript/C# and what is your experiences with making plugins for RPG Maker? How do you work with MV’s scripts to even create a plugin? Any advice and comments would be really appreciated! Thank you!
There actually is a forum section dedicated specifically for this, called Learning JavaScript! It has a couple of threads with recommendations on where to get started, so I suggest taking a peek there?

General advice is, I guess, to be patient with yourself. There's no shortcutting learning. It will be daunting and it will be frustrating. When I started RMMZ over two years ago, I had some experience with writing scripts in Visual Basic, JavaScript, and something called Progress 4GL, but never had formal training to either code or think in an object-oriented way.

It was pretty rough at times but there are many people on here who are more than willing to help. And as a result I'm now capable of making simple plugins myself, and tweak plugins that others have created.
I just learned by editing existing plugins. Read w3schools or similar intro guides to learn the basic data types of Javascript. Once you can look at plugin files and know what kind of data you're looking at you can then manipulate it with standard Javascript methods or locally defined ones.
I do not know how to code
For someone starting from scratch, i do have to mention that itd probably be better looking at it as learning Object Oriented Programming with JS as the tool rather than learning JS.
Learning JS will lead you to learning some OOP Basics and youll mainly be using JS anyways, but the idea is that much of the knowledge gained by learning OOP such as data types & manipulation, logic, classes & objects, inheritance, etc. is generally applicable to others as well, helps you produce better code, and may not necessarily be covered in something labeled as a "JS tutorial".

my question is how did you learn how to work with JavaScript
By the time i started my rpg maker project and began diving into the JS for it, i was already familiar with OOP fundamentals from having used Java, Python and C# for a number of different projects. At that point it was just learning what JS specifically does and doesnt do differently from what i was already familiar with, which mostly meant going through some JS exercises and some personal trial and error to learn some of the JS specific ideas.

what is your experiences with making plugins for RPG Maker? How do you work with MV’s scripts to even create a plugin?
One of the benefits of newer RPG makers is that theyre open engines that already provide a framework for a "standard RPG".
once youre familiar enough to look at the code inside the core JS files of your project like objects.js and understand whats being done, you know just enough to start learning how to make plugins. Most of the time what youll be doing is seeing what the engine does, making your own additions and processes to fit your needs thatll work alongside the engine, and then fit them into the existing systems.
The biggest hurdle is actually going through the code after you've learned the basics. Like checking stuff for sprites/layers/draw orders, maps scrolls or whatever (even whole battle systems), count me out!

But yeah, just read online tutorials for javascript and start by checking some of the easier parts of rpg maker / plugin files. And how people do stuff with scripts in these support threads. Try not to get demotivated if you don't understand some concept straight away.
The one thing to learn is how to program in general, that could be any language, Java, C++, etc. The other thing is, how to program an RPG Maker plugin. These are 2 different chapters in my opinion that a plugin dev needs to learn and understand.

I started programming with Java in university and in a part time job in parallel, where I always had a mentor looking over my shoulder. That is, what I think, makes the difference between a self-taught and a professional programmer. There are many things in programming that the usual tutorials, even W3Schools, do not cover. There are many plugins that do their job in a fresh new game project, but start breaking your game as soon as other plugins (YEP, VS, GALV, ...) are included, because the dev at least knows how to write a plugin, but not how to write it defensively.

I changed my job a few times over the past few years, but I never touched JavaScript in any of them, so I learned it on my own, which is fine because I already learned about programming in general. But what I did not know was about the conventions in RPG Maker plugin creations. This is something that you learn by reading other plugins or exchanging with other devs in this community. Many things come from experience that the community gained over years, so it's something that you have to learn actively. By the way, a good starting point is this tutorial: https://forums.rpgmakerweb.com/index.php?threads/the-anatomy-of-a-plugin.75900/

What I started as a first exercise was how to extend the debug menu with things like "gain item, gain gold, change party members, ...". It taught me how to handle the menus, extend the windows, and call game logic objects. This is a nice exercise that I recommend it to every starter.

Learning how to program, and, how to program a plugin is hard and probably takes years to learn.
So, I've been focusing on doing this myself recently after just picking up random scripts here and there and trying to use and understand the MV/MZ Script Call List spreadsheet.

Here is what I'm doing now.

I have a book titled Javascript Crash Course by Nick Morgan. I highly recommend it. It has been the easiest for me to understand and seems to have a good structured approach.

I'm also using the W3Schools JS online course to compare concepts, information, and examples with the book.

I'm also using the Google AI Mode to asked specific questions about concepts and things that I don't completely understand from the book and the online course. I have been very surprised by how helpful the AI explanation has been. Much better than just a regular internet search (at least in my experience so far).

The other thing that I think is critically important for learning to use JS in RPG Maker is to focus more on recreating and experimenting with what you are learning (even very simple things) inside RPG Maker itself and not just in the console of a browser.

Why, you might ask? Because you will quickly learn that what you are seeing for some things just don't translate directly into RPG Maker. And there are some things that are specifically set up for RPG Maker that you need to know, like how to access the global variables and switches objects.

Right now, I am methodically going through the book, the online course, the MV/MZ Script Call List, the AI Mode, and other searching/research and I am doing everything in MZ to learn exactly how it works and if there are any special considerations for using the concept in RPG Maker. I am making really good progress and I'm learning a TON with connections being made that I didn't fully understand or appreciate before.

I plan on making some YouTube videos about everything I'm doing once I get farther along.

You can also find some good information/tutorials on YouTube or from posts in the forum if you are looking for something specific.

Anyway, good luck on your learning journey!
I'm also using the Google AI Mode to asked specific questions about concepts and things that I don't completely understand from the book and the online course. I have been very surprised by how helpful the AI explanation has been. Much better than just a regular internet search (at least in my experience so far).
The problem with this - or with trying to "learn" from any other AI - is that it's very often wrong. And if you don't know what the correct answer is, you have no idea that it's wrong until you've wasted your time.

When I Google RPG Maker questions to find threads to link to people, I see all the time the AI summary at the top saying incorrect things.

I just recently wasted days of work at my previous day job because my boss saw that AI summary and treated it as correct, when in fact it was completely inaccurately mashing together bits of sentences from different pages (and it wasn't until I did the research myself and showed her the sentences it was Frankensteining that she believed me).

I can't make you not use it, but I think it's a bad idea to recommend to other people because it doesn't have any actual knowledge and it doesn't have the human ability to correctly grasp and parse context. Trying to use AI as any kind of teaching tool is, in my opinion and experience, just not a smart idea.
@ATT_Turan I appreciate your points and perspective and I should have added that I always check, cross check, and try to validate anything that AI presents. If it doesn’t work or I can’t substantiate what I am reading, then I don’t use it. For me, it has been quite helpful so far, but I use it with caution.

Original thread: https://forums.rpgmakerweb.com/threads/your-advice-experience-with-learning-javascript.180098/