Dual Wield Help - Lock Weapon Types?

Hey guys hopefully just a quick question.

So with dual wield you can have two weapons equipped at once.

You can also set as many weapon equipment types as you want for an actor,

for example, the ability to wield swords, axes, tomes, and staves. But only actually

wield one (or with dual wield, two) at once. Any combination of these. However,

I have an actor with dual wield capability and the ability to equip swords and tomes only.

But if the player wanted, they could have two swords or two tomes. Is there a way

to force the player to have one sword and one tome equipped? Thanks.
you'd need to make the tome as a shield type in that case and remove dual wield... for a non-script method
I'm fine with using scripts. I already have Yanfly Equipment Engine. But yeah I guess that could work as long as the player doesn't see "Shield". I can just invent a new type. But then it would show up in lists of weapons and stuff. 
Actually, you know what?  You might be able to solve the issue with the database.  I wonder if maybe it would be possible to simply set a common event that "If X is equipped, can only equip Y".

But, I think I already solved this issue within my own game when it came to "bows and arrows".  I made the bows a shield and made arrows the weapon.  I also did the same thing with my own "Books", so that they could be used with "wands".

Though, the way I solved it was to incentivize these pairings of equipment instead of equipping strange things.  It's more worthwhile to equip the bow instead of just arrows and a shield.  It's more worthwhile to use the book with a wand instead of using the book without a wand (and vice versa).  Though, I'm not sure how you'd do something similar.
you might take a look at Tsukihime's OLD equip manager script (not the new one she made a few months back, but the older from one year or so back).


That old equip manager had the option to allow multiple slot assignments to equipment, and if you combine that option with new slot types you can allow or restrict a lot of combinations, like dagger weapons that can be equipped not only on "Weapon" but also on "Shield" or more.


I don't have the link, but it's on Tsukihime's blog - should be easy to find.

Original thread: https://forums.rpgmakerweb.com/threads/dual-wield-help-lock-weapon-types.23895/