Equipping Only One of Each Weapon Type

So in RPG Maker VX Ace, I was unable to find a way to prevent equipping two of the same type of weapon when the "Dual Wield" option is on, which allows equipping of two weapons.


It may make more sense if I explain why:


Each character has a certain weapon for them. For instance, one character has an SMG. That is part of the character. So instead of having weapons, I went under the "Terms" section and changed "Weapons" to "Attachments". In short, attachments are being equipped instead of weapons. Under "Weapon Types", I have a class for each type of attachment, like "Ammo", "Magazine", "Sight", etc. The issue is equipping two of the same thing at once. For instance, equipping two scopes, or having two foregrips on a weapon. I am planning for this to be a more serious game, not like some sort ridiculous Nerf combos video, so I need a way to prevent equipping of two of the same weapons of the same type.


I have already tried looking at "Seal Equip", but that can only seal equipping of another weapon, or in my case, preventing the player from equipping a second attachment.


Thanks for any help.
You need a script.  Should have posted in RGSS3 (VX Ace) Script Requests.  Take a look and see if there's already a script to do it - Yanfly has a huge collection of battle addon scripts.
Try using Hime's equip scripts.

Not what I'm looking for. That involves the five equip types. I am only looking at weapons with Dual Wield on and sealing the Weapon Types.
You could have just reported the thread and asked a mod to move it 😉
I didn't know. xD


The more you know!

Original thread: https://forums.rpgmakerweb.com/threads/equipping-only-one-of-each-weapon-type.63519/