MV Yanfly Selection Control Interface Problem

First of all, hi there RPG Maker folks. First post, but I've been lurking this forum for a while now and you've helped me with a lot of issues already, so thanks.

Currently, I'm having a problem with the way yanfly's YEP_X_SelectionControl plugin works. The game I'm making is as much a puzzle game as it is an RPG, so I plan to have frequent unusual interactions and creative solutions to encounters. As part of this, I'd like to use the selection control plugin to make all single target abilities target either enemies or actors. eg. the boss permanently charms a party member and the only way to fix it is to KO them yourself and revive them.

YEP Selection Control has an option to do this, but when it's on, every single target ability cycles through enemies AND allies from left to right as they are displayed on the screen. This works somewhat in sideview, but in frontview (which I am using) it's unacceptably clunky as it alternates between actors and enemies as you scroll left and right for every single skill.

To complicate matters, the plugin description reads like this should be a toggle, like how these things work in most rpgs like Final Fantasy, so I'm not sure whether this is even the intended behaviour at all.

I am using a lot of other battle plugins, but I tried disabling all the ones I thought might be causing issues such as YEP_BattleStatusWindow and it was the same.

Ideally I'd like to get it so you can press up/down to target the other group which I think is the most intuitive, but failing that, grouping enemies and allies together like they are in sideview would still be a significant improvement.

Edit: Forgot to mention, I have already tried setting skills themselves to have the "enemy or actor" behaviour via notetags, and the result was the same.
YEP Selection Control has an option to do this, but when it's on, every single target ability cycles through enemies AND allies from left to right as they are displayed on the screen. This works somewhat in sideview, but in frontview (which I am using) it's unacceptably clunky as it alternates between actors and enemies as you scroll left and right for every single skill.
Click my thread in my signature. I have a code modification there that makes the cursor move through the list of enemies then actors, instead of by their screen position.
Click my thread in my signature. I have a code modification there that makes the cursor move through the list of enemies then actors, instead of by their screen position.
Thanks very much for the help. I made the edit and now it works your way, which is much better.
Worth noting though, in my plugin, which I'm fairly certain I hadn't edited before, I had to comment out starting at line 1555, not 1556.

Luckily, it was fairly obvious that this was the case because the line:

this._enemies.sort(function(a, b) {

Was being duplicated when I followed the instructions to the letter, but I thought it worth mentioning.

I would still like to get it so that enemies/actors targeting is toggled by player input eventually, but I can see how that would be much more problematic to implement, and QOL stuff like that can be done at a later date so long as it works.
I had to comment out starting at line 1555, not 1556.
Thanks! I'll correct my post.

I would still like to get it so that enemies/actors targeting is toggled by player input eventually
Can you elaborate more precisely what you mean? You get to the end of one list (enemies/actors), push the button again, and you go to the other list. That is toggling by player input. And it's exactly how it works in the games you cite as example (Final Fantasy).

Do you want to have a dedicated button you push that switches the cursor from enemies to players? That would definitely be more complicated to implement.
Yeah that's pretty much what I meant, a different input than what you're already pressing. Pressing right to cycle through enemies and then targeting an ally seems less player friendly. For example, you're in an easy encounter you're just trying to get over with quickly, you want to attack the enemy on the far right of the screen, so you hold down right, and you end up switching to ally targeting, making you have to scroll back.

I used FF as the first thing that came to mind as games where you can target allies with attacks, if I'm remembering the inputs wrong I apologise. The easiest game I have on hand to check is Bravely Default. I started that up in that game there is a dedicated input for switching target categories so it is a thing that's done.

Regardless, I'm satisfied with the plugin edit for the time being. Anything further would be significant effort for minimal gain, so thanks again.
This thread is being closed at the user’s request.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-selection-control-interface-problem.156602/