Separated MV .js Functions

0 Members and 1 Guest are viewing this topic.

Level 81
Those who might be looking to scripting for MV might realise that the javascript files like rpg_object.js or rpg_manager.js are sometimes just 1000s of lines of functions and that they can be a little annoying to have sift through to find whatever functions it is that you want to work with.

I've taken the liberty to separate these out into smaller .js files. You won't use these in MV itself, but if you wanted to look up the relevant prototypes and whatnot for the Game_Enemy function you can just open up game_enemy.js in the objects folder and get to looking at only that function. Same thing for other functions like bitmap, window_options and such.

I haven't split the libs scripts (pixi, lz_string or fpsmeter).

This can be found in the attachment. If I seem to have missed anything, just let me know.

I find that these are quite useful in a text editor like Notepad++ (free and handles JS just fine) or Sublime Text (not free unless you like constant purchase reminders) as you can build up a project or workspace and have all of the .js files available quite handily, and split windows are a great bonus.

If any tips are needed for setting those up are wanted, I can add in a couple of tutorials for doing this (for npp or Sublime; other editors you are on your own).
(Why do I always feel like it's the end of the world and I'm the last man standing?)

A-pow 2015
Level 80
2014 Best RPG Maker User - GraphicsFor frequently finding and reporting spam and spam bots2013 Most Unsung MemberSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.a^2 + b^2 = c^2How can I help you? :DSecret Santa 2012 ParticipantSilver - GIAW 10Silver - GIAW 9Bronze - GIAW HalloweenGold - Game In A Week VII
Pinned for usefulness. Great work as always, Logan. :D

死んだばか (Shinda baka)
Level 95
GIAW 14: 2nd Place (Hard Mode)2013 Biggest Drama Whore2013 Zero to HeroParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
I appreciate you. You're doing beautiful, and you are beautiful.
I love you.