MV Help with setting "Long Range" weapons with Yanfly's plugins

Hello! I did a check and couldn't find what I was looking for, so sorry if this is something that's already been answered countless times. I'm making a project using several of Yanfly's plugins, but the ones pertinent to this question is their Row Formation and Selection Control plugins. I've messed around in RPG Maker for a few years but I've decided I want to try to do more with a project.

What I want to do is a "long range" system like the classic Final Fantasy games. I know how to add states for the rows to affect things such as damage dealt/taken and accuracy while in the front or back row, and I know that the Selection Control also has tags that can be used for melee and long range attacks, but I don't know how to make it so long range weapons like bows or guns just ignore the damage/accuracy penalties.

So to talk about what I have, there are three states:
The first state, for the front row, slightly increases the target rate but offers no stat changes.
The second state, for the back row, reduces the physical damage taken.
The third state, also for the back row, reduces the attack stat (to simulate the damage penalty) and hit rate.
What I want to do is have a weapon with a long range tag ignore the third state. My first thought was to simply make a weapon straight-up resist the state, but it turns out that doesn't work, so I figure I'd use the tags in the Selection Control. However, that just seems to be for targeting certain enemies. So for those with experience, how would I go about making weapons that ignore the power/accuracy penalties of the back row, whether or not it's help with these plugins or something else? Thank you in advance!
The plugin instructions has notetags for conditional row states.

Spoiler
State Notetags: <Custom Row Condition> if (user.hp / user.mhp <= 0.25) { condition = true; } else { condition = false; } </Custom Row Condition>

You could make your damage/accuracy penalty state true only if the actor doesn't have a long range weapon. I guess you could check the weapons with: user.hasWeapon($dataWeapons[X]), but easier would be to have a script that checks for the long-range notetag, but I don't know how to do that LOL.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-setting-long-range-weapons-with-yanflys-plugins.160040/