Sealing off-hand weapon slot only

I apologize if this has been answered elsewhere, but I was unable to find a solution to this.

My characters use dual wield via the normal mechanisms. I am more or less manually using skills, states, and sequences to perform a double hit, one with each weapon that is changed after each hit. I do have the damage calculated based on the weapon being swung rather than both weapons combined, however if both weapons have a %+ to add a state or other effects, these effects apply to either weapon being swung. In a word, it is overpowered and I would like to prevent this from occurring, and the best way seems to temporarily "seal equip" for the off-hand before each swing.

Now the problem therein, is that seal weapon seals both weapon slots, and seal shield does not seal the off-hand slot. I do not believe I would be easily able to keep the dual wield specs I have if I changed the 2nd weapon to be a shield instead, so I would much more prefer to simply temporarily seal the off-hand slot.

Are there any solutions to this? I do not mind going into the code or adding a script or plugin, but something tells me this can be done with either the Seal Equip state and some creativity, or perhaps by manually inserting the Seal Off-hand JS script into the notebox of a state.

Apologies if this is the wrong section, and thank you in advance for any and all help with this.

I think you need this one.
I do already use it, but it does not have an option to seal and unseal off-hand as far as I am aware of.

I could likely just remove the dual wield state with an event, then re-enable it, however it does not automatically re-equip whatever weapon was in the offhand (slot 1 I believe). I think I am going to try to store the weapon as a variable and then automatically re-equip it when the requested action is performed.

Something like this maybe:


<before eval>
var weapon = DataManager.getBaseItem(a.weapons()[1]);
var value = weapon;
</before eval>
which could lead to a state with equip type normal, then after the first swing I could disable this state and then re-equip "var weapon". If this technique works, I think that is the only bit of scripting I would need. I do not see an option to equip an item based on a variable unfortunately, and do not know the js to equip a variable to the 2nd weapon slot, however.
i use ramza's dualwield.
when use the <two handed> notetag it blocks the 2nd slot from everything except a shield specifically with a <offhand> notetag to bypass that. (can still use shields without that notetag and other weapons as long as not using a 2H weapon)
That doesn't really solve my issue, + Ramza's plugin is a pay to use, which invalidates it to me for the most part.

I really just need to find the JS to equip a variable to slot 1. If I find it I will post what code I used for posterity's sake.

::Edit::

Pretty sureI found the code I need, just not sure the right way to format the variable into the weaponId slot. I currently have this saved as variable 11 or v[11]

Code:
<before eval>
var weapon = DataManager.getBaseItem(a.weapons()[1]);
var value = weapon;
$gameVariables.setValue(11, value);
</before eval>

Remove weapon code:

Code:
$BattleManagerTBS.activeEntity().changeEquip(1, $dataWeapons[weaponId]);

Surely it's not as simple as changing [weaponId]); to [v[11]]);
Something tells me it needs to be formatted differently. Any input is highly appreciated, still very green to JS formatting.

-------------

This issue has been solved, thanks to the awesome assistance of ct_bolt!

Original thread: https://forums.rpgmakerweb.com/threads/sealing-off-hand-weapon-slot-only.146819/