As I said in the title I want to know if there any way to make it so that this
auto targets the fastest enemy. Since I'm using this with Yanfly's ATB plugin. It would be really helpful if it auto targeted the fastest enemy, and what if 2 or more enemies have the same agility.
MV Is there any way to make it so that it auto targets the fastest enemy, using yanfly core battle engine.
Javascript/Plugin SupportMoved to: Plugin Support
So, weirdly, from glancing at the code this option isn't actually customizable. In fact, it doesn't matter what you type into that field, if it's anything other than 0 it will default to the furthest right enemy.
So you would have to write a plugin that both contains a function to iterate through the game troop to find the fastest enemy, and also overwrites the auto selection function in this plugin to allow that code to run.
So you would have to write a plugin that both contains a function to iterate through the game troop to find the fastest enemy, and also overwrites the auto selection function in this plugin to allow that code to run.
I guess I have to learn how to write Java-plugins. Thanks for letting me know though.
I'd suggest you first make a post about it in the Plugin Requests forum. It's not that hard to do if you know your way around - if I get some free time over the next couple of days, I'll take a look at it.
Also, MV uses JavaScript, not Java.
Also, MV uses JavaScript, not Java.
Original thread: https://forums.rpgmakerweb.com/threads/is-there-any-way-to-make-it-so-that-it-auto-targets-the-fastest-enemy-using-yanfly-core-battle-engine.138506/