MV Dual weild Weapon type restrictions

High this is DestroyDX here, so I'm making a game called "The way Home" and in I have a character that can dual wield butI don't want him to be able to equip two of the same weapon types. Does anyone know how I can do this?
I actually just extended one of my plugins after reading your comment. So, how I would do this is:
  1. Download my Weapon Stats Restriction plugin from my plugin generator.
  2. For the weapons you want to restrict us the following note tag:
    <SirL.notEqualSR:{"a.equips()[1] ? a.equips()[1].wtypeId : -1": "a.equips()[0] ? a.equips()[0].wtypeId : -2"}>
This basically says this item can only be equipped when the weapon type ID of slot 1 is not equal to the weapon type Id of slot 2 of the given actor.

There is a strange issue I couldn't resolve but shouldn't be too big of a concern if it is let me know. But Slot 2 has priority over Slot 1. In other words, if you try to add the same weapon type in Slot 2, it will unequip from Slot 1, then equip the new weapon in Slot 2.

If you have questions you can always ask, here is the link to the plugin generator!

Original thread: https://forums.rpgmakerweb.com/threads/dual-weild-weapon-type-restrictions.138072/