MZ where is there documentation on the various JS hooks?

where is the documentation for coding and scripting?

I mean other than reading through the javascript files themselves (which is very useful)

  • it would be super nice to have some coding compendium that
    • explains the different game loops and how to tap into them.
      • ie game loop == start menu => load/start new =>Game_Map loop => menu loop => battle loop => game over
    • explains how to draw PIXI natives on each loop
      • ie draw healthbars in battle_scene, use PIXI filters, etc
    • explains various actions ...
      • ie when an enemy is killed it calls Game_Enemy.prototype.die
        (seems obvious once found but i spent longer than i would like to admit trying to figure out how to tell when an enemy was killed)
    • having some script examples that are well organized showing how to do some simple things without having to make a plugin ... as far as i can tell the builtin stuff is not really sufficient to build much of a game and you almost always need to make a plugin to do some simple actions that could probably just be an event with some script ...
    • additional hints for folks
      • ie to use effekseer you need v1.6 not the latest version
    • how to import new sprites/tilesets/etc and the rules for creating them (ie animated sprites)


is there something like this out there and i have just not found it?

or even something like stackoverflow for rpgmz/mv (this forum is really not a good substitute... at least imho so far using it... too much noise to signal, which likely leads to many posts in the wrong places/duplicate posts/etc)

maybe this forum is it and i just need to up my search term skills....
There isn't any documentation like that.

The closest I know of is Trihan's Jump Into JavaScript thread, and even that doesn't really approach it holistically like you describe, but top-down through each of the individual JS files.

For the most part, I just do a search in the file contents for related terms and follow it forward or backward until I find what I'm looking for. Admittedly I am pretty familiar with the code at this point, but it rarely takes me more than a few minutes.

Here's another reference you may find useful, but again it's not any kind of description of the gameflow like you're asking for:
(you posted in MZ support but your profile says you use MV, so I'm not sure which one you want. They are mostly the same, but MZ won't match this documentation exactly)

as far as i can tell the builtin stuff is not really sufficient to build much of a game and you almost always need to make a plugin to do some simple actions
I think a good number of people would beg to differ with you, given that there have been plenty of (even commercially successful) RPG Maker games released that relied entirely on eventing.
There isn't any documentation like that.

The closest I know of is Trihan's Jump Into JavaScript thread, and even that doesn't really approach it holistically like you describe, but top-down through each of the individual JS files.

For the most part, I just do a search in the file contents for related terms and follow it forward or backward until I find what I'm looking for. Admittedly I am pretty familiar with the code at this point, but it rarely takes me more than a few minutes.

Here's another reference you may find useful, but again it's not any kind of description of the gameflow like you're asking for:
(you posted in MZ support but your profile says you use MV, so I'm not sure which one you want. They are mostly the same, but MZ won't match this documentation exactly)


I think a good number of people would beg to differ with you, given that there have been plenty of (even commercially successful) RPG Maker games released that relied entirely on eventing.
thank you!

that link is actually really helpful and i havent seen that thread but i will look into it

I can absolutely believe that most stuff can be done with just eventing ... I am a software developer, and have been for a long time, so the eventing covers alot of what i need and i use it ... but often i jump to, oh this would be really easy in javascript, as soon as it gets even a little complicated so having a better understanding of what can be done with eventing

(note i have spent a long time in the js files and mostly can find what i need as well ... sometimes though im surprised at how simple something is, when i did it some super convoluted way (because i didnt know that other thing existed)
Some high level documentation like you're describing would indeed be really cool if it existed. In the meantime, another useful resource is this spreadsheet, which is basically a list of how to do everything that's possible through eventing.
It's also quite useful to look at existing plugins that do something similar to what you're trying to do and see how they work - which at least gives you a good starting point.
Shameless plugs here 🙂

Docs on battle systems -
Basic knowledge to the default RMMZ turn based battle flow implementations
Basic knowledge to the default RMMZ TPBS battle flow implementations

Miscellaneous docs(although it's about good and bad parts in my opinion) -
What good and bad parts have you found in the default RMMZ 0.9.5 codebase?
lol yeah thats the one I mentioned when i said i just saw a great thread on here for the battle flow 🙂 that is really excellent work!
Some high level documentation like you're describing would indeed be really cool if it existed. In the meantime, another useful resource is this spreadsheet, which is basically a list of how to do everything that's possible through eventing.
It's also quite useful to look at existing plugins that do something similar to what you're trying to do and see how they work - which at least gives you a good starting point.
that worksheet is a great resource I had no found ... bookmarked

Original thread: https://forums.rpgmakerweb.com/threads/where-is-there-documentation-on-the-various-js-hooks.158445/