Jump into Javascript, a breakdown and explanation of the default js files in MV.

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,379
Reaction score
1,559
First Language
English
Primarily Uses
RMMV
This is a companion series to Slip into Ruby (my teardown of the RPG Maker VX Ace default scripts) and aims to teach a bit of Javascript while explaining exactly how everything works under the hood of MV's .js files.

Part 1: https://rpgmaker.net/tutorials/1230/ (main.js, rpg_scenes.js (Scene_Base))
Part 2: https://rpgmaker.net/tutorials/1357/ (rpg_scenes.js (Scene_Boot, Scene_Title))
Part 3: https://rpgmaker.net/tutorials/1358/ (rpg_scenes.js (Scene_Map))
Part 4: https://rpgmaker.net/articles/1359/ (rpg_scenes.js (Scene_MenuBase, Scene_Menu, Scene_ItemBase, Scene_Item, Scene_Skill))
Part 5: https://rpgmaker.net/articles/1362/ (rpg_scenes.js (Scene_Equip, Scene_Options, Scene_File, Scene_Save, Scene_Load, Scene_GameEnd, Scene_Shop))
Part 6: https://rpgmaker.net/articles/1378/ (rpg_scenes.js (Scene_Name, Scene_Debug, Scene_Battle))
Part 7: https://rpgmaker.net/articles/1384/ (rpg_objects.js (Game_Temp, Game_System, Game_Timer, Game_Message))
Part 8: https://rpgmaker.net/articles/1393/ (rpg_objects.js (Game_Switches, Game_Variables, Game_SelfSwitches, Game_Screen, Game_Picture, Game_Item))
Part 9: https://rpgmaker.net/articles/2615/ (rpg_objects.js (Game_Action, Game_ActionResult))
Part 10: https://rpgmaker.net/articles/2694/ (rpg_objects.js (Game_BattlerBase))

Hopefully this will be helpful to people just starting out or who want to understand a bit more about how MV does what it does! Eventually I'll even be tearing down the basest of the base classes like the content of pixi.js and the core classes like Window and Bitmap.
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,120
Reaction score
11,481
First Language
English
Primarily Uses
RMVXA
Nice to see you back. If this is as good as Slip into Ruby, it will be awesome.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
14,898
Reaction score
8,257
First Language
English
Primarily Uses
RMMV
Ohhh, I'll have to check these out later.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,379
Reaction score
1,559
First Language
English
Primarily Uses
RMMV
Updated with part 6!
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,379
Reaction score
1,559
First Language
English
Primarily Uses
RMMV
Well funnily enough Archeia I'm bringing both my tutorial series out of retirement and rebooting them as videos, possibly!
 

bazrat

Pixel Game Maker MV
Veteran
Joined
Oct 15, 2018
Messages
240
Reaction score
168
First Language
English
Primarily Uses
Other
Well funnily enough Archeia I'm bringing both my tutorial series out of retirement and rebooting them as videos, possibly!
That is great news! With souls 70+ youtube scripting tutorials not available anymore this would be so nice for the community :LZSexcite:
 

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
14,920
Reaction score
15,117
First Language
Filipino
Primarily Uses
VNM
Well funnily enough Archeia I'm bringing both my tutorial series out of retirement and rebooting them as videos, possibly!
That sounds awful since I prefer easy to read documentation especially when I have hearing problems. Here's hoping it has a transcription :'D
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,379
Reaction score
1,559
First Language
English
Primarily Uses
RMMV
That sounds awful since I prefer easy to read documentation especially when I have hearing problems. Here's hoping it has a transcription :'D
It would have a transcript as well.
 

L.W. Flouisa

NumeroHex
Veteran
Joined
Mar 31, 2012
Messages
198
Reaction score
48
First Language
English
Primarily Uses
RMMV
I wanted to ask, I loved your original Ruby tutorial. Do you think it would be worth reading both tutorials for both languages, or primarily stick with learning Javascript?

With a lot of applications I'm familiar with (InMoov GUI for example), it requires knowing both Python and Javascript. Definitely in a very different place now from when I was first wanting to do game script. I know html, css, ruby, shell, python, crystal, and Julia.

Maybe it's just a psychological think, thinking game scripts would be way harder.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,379
Reaction score
1,559
First Language
English
Primarily Uses
RMMV
I'm not sure how much you'd get out of reading both unless you plan to use both VX Ace and MV for game development. If you're set on one engine, I'd focus on the tutorials for that engine. That said, there's never any harm in knowing more than one programming language.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,379
Reaction score
1,559
First Language
English
Primarily Uses
RMMV
So I'd written part 9 and submitted it, then realised what I'd written was part 7, which I actually wrote on the 30th of April 2017. I actually wrote part 8 as well, but I hadn't updated this forum thread. That's what I get for not double-checking what my last entry was. XD

Worry not though, part 9 is being written properly as we speak and should be up tomorrow or Friday.
 

Virage_Detoldev

Villager
Member
Joined
Jan 6, 2018
Messages
14
Reaction score
5
First Language
Portuguese
Primarily Uses
RMMV
I want to to thank you for this work and hoping for the 9 part.
And wanna ask if you give me the permition to translate to portuguese, giving you the credits, of course.
 
Last edited:

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,379
Reaction score
1,559
First Language
English
Primarily Uses
RMMV
Of course! I'd be more than happy for you to do so.

Part 9 should hopefully be up today, I had a busy week so I wasn't able to do as much on it as I'd hoped.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,379
Reaction score
1,559
First Language
English
Primarily Uses
RMMV
Just to let you all know, I'm picking this and Slip into Ruby back up. I'd written part 9 but accidentally covered classes I'd already done, which I'll need to fix soon.

Edit: Rejoice! Part 9 is finally done and uploaded.
 
Last edited:

Kayss

Villager
Member
Joined
Jan 16, 2019
Messages
5
Reaction score
0
First Language
French
Primarily Uses
RMMV
Written documentation remains the best for technical explanations, videos are awful, that's the plague of RMMV 90% of the plugin documentation is a 3mn video and that's it. And you need to watch that 3mn video, 10 times... Obviously, I know your videos would be much more consistent than this but still...

If you do videos, please keep your written format as well (a pdf file in the YT description for example).

Anyways, thank you for your work and wish you well... :)
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,379
Reaction score
1,559
First Language
English
Primarily Uses
RMMV
Written documentation remains the best for technical explanations, videos are awful, that's the plague of RMMV 90% of the plugin documentation is a 3mn video and that's it. And you need to watch that 3mn video, 10 times... Obviously, I know your videos would be much more consistent than this but still...

If you do videos, please keep your written format as well (a pdf file in the YT description for example).

Anyways, thank you for your work and wish you well... :)
Oh yeah, if I ever did start doing videos they would have full text transcripts available too.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,379
Reaction score
1,559
First Language
English
Primarily Uses
RMMV
Part 10, which covers Game_BattlerBase, is now up for your viewing pleasure. :)
 

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

Latest Threads

Latest Profile Posts

Playing some Kingdom come: Deliverance. It's an interesting game... But for the first time ever I'm disappointed with Czech in a Czech game.
Anyone else find themselves skipping through spoken dialogue in games if they've finished reading said dialogue in the textbox? I do. Happens more often in JRPGs with me. I frequently finish reading the dialogue long before the VA is done speaking.
I've been pretty busy working on my Might and Magic inspired project. I've got the code for instructors in place, and I just finished up with the trap and resistance tests. The project is going very smoothly. I'm also learning more about Javascript which is helping out a lot. Arrays, they are your best friend!
Did some animated message faces. But why not animate menu faces too?

Forum statistics

Threads
100,750
Messages
979,127
Members
132,387
Latest member
AnthonyM1992
Top