Looking to mod a core mv js for Auto Battle but need help

Nerdboy

Veteran
Veteran
Joined
Jan 4, 2017
Messages
78
Reaction score
7
Primarily Uses
So i'm looking to mod a core mv js Auto Battle script if i can locate something in MV in one of the js files, but doing find for Fight and Auto led me no where, fight returns nothing related to auto and auto gives me other things not related to fight.

What i'm trying to do is, allow Auto Battle to select randomly a Skill or Normal Attack, and not just auto battle with normal attack which i believe is default, although for some reason sometimes the magic works, but its not working atm for me. IDK why? Turned off all plugs and still not working.

So i need to mod a core js file if you know what function to find in them. Auto Fight returns zero.

Thank you.

I also tried battle and auto battle nothing in files.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,063
Reaction score
10,364
First Language
Czech
Primarily Uses
RMMV
Interestingly, I can't find them either. The only thing I've been able to find is Game_Enemy.prototype.selectAction, but that is not applied to friendlies I guess.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,144
Reaction score
12,417
First Language
English
Primarily Uses
RMMV
Things that are in list/drop-down boxes are usually referred to as numbers in the game. This is probably why you couldn't find them if you were searching for strings.

I would advise against modifying core files. Copy the functions you want to change and put them into a plugin and make the changes there. That makes it easier to take MV updates when they're available, update your project's core files, and not have to go back and redo your changes.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

On the plus side, if all this rioting sparks another Covid outbreak... I will have a whole lot of time to work on my game. Not exactly how I wanted to get that time, but hey I'm a glass is half full... of RM kind of guy. :LZSwink:
A video once in a while won't hurt.
Have a craving for a Nesquik milkshake. No idea why. Haven't had one since I was a kid. lol. I remember them kinda tasting nice, but also leaving a lot of nasty powder at the bottom of the cup.
The more I think about it, the weirdest part of going to work post-virus will probably be getting used to seeing my coworkers' mouths again. :LZYshock:
I think one of my weirdest realizations is that my speed of game development would probably be about the same if I *didn't* work a full-time manual labor job.

Forum statistics

Threads
98,057
Messages
948,958
Members
129,338
Latest member
Ultra-Maximum
Top