Where to find documentation/tutorial on RMMV javascript engine?

inqs

Villager
Member
Joined
Feb 28, 2019
Messages
15
Reaction score
1
First Language
English
Primarily Uses
RMMV
I am a newbie getting started with RMMV and would like to do some javascript work. I've been looking at various plugins and learning how things work, but it would be great if there was some detailed documentation on how the engine works. Is there a book or some other documentation explaining things?

For example, it would be neat to understand things like:

1. How do I override the movement for events?
2. Where do I put my own function if I want some javascript code executed every frame?
3. How does the battle engine work and what are useful javascript hooks I can use to modify it?

Thanks in advance
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
none exists that I'm aware of.

I learned the MV structure by studying the MV structure. The easiest way was to look at the event commands and the code behind them, which reaches back into the database structure and the game objects that are built from them.
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
I'm just going to be straight-up about it:
  • There is no documentation from the MV devs about the game code in any regard whatsoever.

How to use the editor itself (i.e. how to place events, how to modify passability in a tileset, etc.) is all documented in the Help section of the editor, but as far as how the game code actually runs, there is nothing.

A community member has documented the classes, methods, variables, etc. of the base code here.

For your specific questions:
  1. That's a bit general, there would be several answers but if you could explain more your goal that would help
  2. While the game is running there is always a current Scene. The Scene inherits from PIXI.Container, if you know PIXI at all. Each Scene_Something (like Scene_Battle, Scene_Menu) has an "update" function that runs every frame (60 fps)
  3. Understanding the battle flow
    • Basic battle flow
    • How damage is calculated
    • There aren't any "hooks" in the way that you're probably thinking of it. You just have to find the relevant function and modify it. For example if I wanted to change how much damage a critical hit was, I would look for the function that calculated the critical hit damage
The people that have made plugins have mostly done it by reading the code itself to understand what it is doing
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,682
First Language
English
Primarily Uses
RMMZ
Your best bet is to define a particular goal (for example build a completely custom menu), search for tutorial online, and if you still have trouble ask for help here on this forum.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top