Changing the way selecting between enemies work

I feel like this is something that a lot of people have looked into at some point, but I can't find any threads discussing how to do it. Basically, I'd like to be able to implement a more intuitive way to select enemies in a battle, something more similar to the older FF games.

z0yFzR4.png

For instance, it would make sense here to be able to select Slime B by pressing down, but because of how RPG Maker organizes enemies, I can only do so by pressing left/right. I'd imagine it'd also be harder to implement without overhauling the code because you're able to freely move the enemy to any coordinate, as opposed to locking them in fixed positions. I'm really hoping there's already a plugin that can do what I'm describing, because I'm too lazy to mess with more code.
Yanfly's Selection Control adds that, left/right to select.

My thread in my signature has an edit to make that plugin work both ways, for those who find the list order to be intuitive.
Yanfly's Selection Control adds that, left/right to select.

My thread in my signature has an edit to make that plugin work both ways, for those who find the list order to be intuitive.
Thanks, your plugin definitely makes it better, but it's not quite what I'm looking for. I'm looking for something that can handle a case like 4 enemies to choose from. Like in the screenshot below, I can press down to choose the bottom-most enemy, or go left/right to select the middle ones.
As far as I know, you'd have to get (perhaps commission) an extension to Yanfly's Selection Core.

It adds the positional scrolling, but it only tracks their horizontal position. I haven't seen a plugin that adds vertical positional tracking.
As far as I know, you'd have to get (perhaps commission) an extension to Yanfly's Selection Core.

It adds the positional scrolling, but it only tracks their horizontal position. I haven't seen a plugin that adds vertical positional tracking.
Any idea where they do that? Closest I can find is sortTargets in the Selection Control script, although I can't see where that's being called elsewhere.
Well maybe that's because tracking both is hard to do? You can place the enemies everywhere and sometimes it is hard to tell it is left-right or up-down.
1724458640410.png
I ended up whipping up something that works most of the time. It works best if you order each enemy you add from left to right because I can't figure out how to match the _enemies array with enemy().index(). Not sure if it's being messed with by one of Yanfly's plugins because I've noticed the order of the enemy changes depending on the x coordinate or something, but I'm more than willing to accept it as it is.

I'm not very experienced with this kind of stuff, so it might be buggy. Works perfectly fine in my tests so far, though.
Did you write this, or get it from an AI? I ask only because we're not permitted to distribute AI-generated resources on the forums.

It looks like there's a spot with a bunch of console.log() calls you forgot to clean out 😉

Glad you got it working the way you want.
Did you write this, or get it from an AI? I ask only because we're not permitted to distribute AI-generated resources on the forums.

It looks like there's a spot with a bunch of console.log() calls you forgot to clean out 😉

Glad you got it working the way you want.
I did write this myself. Well, I referenced your plugin as a backbone, but I've never touched AI for any of my projects. Can't believe I forgot to remove those console.logs, thought I got rid of all of them.

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-way-selecting-between-enemies-work.171362/