MV How did you learned MV's API?

I recently stumbled upon this API but it's not complete as it lacks the prototype member.
How did you learn RPG Maker MV's API yourself so I can have that as reference?
I transferred my VXAce knowledge to MV/MZ code which is unsurprisingly familiar.
Now if you ask me how did I learn VXAce API, I read it from the VXA help files.

Of course, not all are similar or even exist in VXAce as a reference.
In that case, I looked in the actual code and try to understand it line-by-line. Yes, I read 11k lines of code out of boredom. Sometimes I found interesting stuff while doing so.
I recently stumbled upon this API but it's not complete as it lacks the prototype member.
How did you learn RPG Maker MV's API yourself so I can have that as reference?
That's because prototype isn't really part of the API, it's a special property all objects in Javascript have wherein properties and functions you attach to it will be available to any instance of the parent object.
That's because prototype isn't really part of the API, it's a special property all objects in Javascript have wherein properties and functions you attach to it will be available to any instance of the parent object.
And how come prototype has a member called Window_Status.prototype.drawActorNickname
That doesn't seem like the "drawActorNickname" was made by javascript but rather from RPG Maker API.

Edit: What does this "prototype" member do exactly?
And how come prototype has a member called Window_Status.prototype.drawActorNickname
That doesn't seem like the "drawActorNickname" was made by javascript but rather from RPG Maker API.
That's backwards - the prototype section in the middle has nothing to do with RPG Maker, but with basic JavaScript. Yes, the name of the class (Window_Status) and the method (drawActorNickname) were both defined by the RPG Maker developers.
Edit: What does this "prototype" member do exactly?
There are many good, free JavaScript tutorials and help documents available if you Google it.
All the stuff that's being added to a prototype is part of the RPG Maker core code, but the prototype itself is a built-in object that just ensures any instance you create of the class will possess those properties or functions.
And how come prototype has a member called Window_Status.prototype.drawActorNickname
That doesn't seem like the "drawActorNickname" was made by javascript but rather from RPG Maker API.

Edit: What does this "prototype" member do exactly?

In the above case, prototype adds the drawActorNickname method (function) to to the Window_Status class (object).

For a more practical example, you can use your own code to add a method:
Window_Status.prototype.drawASillyFace = function () {console.log("A silly face");}

The prototype adds the method to the Window_Status object, so when you declare an instance of Window_Status (for example):
var WindowStatusInfo = new Window_Status();
You can now call your drawASillyFace function with:
WindowStatusInfo.drawASillyFace();

Use of the Prototype member adds methods (functions), and properties (variables) to a class (object), that will be applied to all instances of that class. So, you can define many Window_Status() and they will all have a drawASillyFace method.

Learning the API is a lot easier if you understand how these Javascript classes work. The next big step in learning is playing around with the code, try making some simple plugins. It might be a little difficult, but it's lots of fun.
🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-did-you-learned-mvs-api.144603/