Prevent dual-wielding certain types of weapons but not others

So one of the classes in my game uses a variety of Bows and Guns, and has the "dual-wielding" flag. They can mix-and-match most weapons (such as a Handgun and an Assault Rifle, or a Revolver and a Shotgun), dual-wield a few (such as having 2 handguns, 2 shotguns or 2 submachine guns) and some are straight-up two handed (All bows, the crossbow the player starts with, unique weapons like the Flamethrower or Nikita Launcher, and the Gatling Gun you can get at endgame).

However, most weapons for this class are going to be "you can hold this and one other weapon, but you can't have two of them at the same time." (I should probably also note that there are two other dual-wielding classes in my game, but I'd rather they not have to worry about any of these kinds of restrictions as they don't use bows/guns)

What's an easy way to go about this? Is this something that's done with or without scripting? (I assume the two-handed weapons can be done by just giving them the "seal equip shields" feature?)
This is not something you can do without a script. If you seal the shield slot, the player will no longer be able to equip any weapon in that slot, which is not exactly what you are trying to achieve, at least based on your description.

What you could do is use a script to prevent certain weapons to be equipped in the dual wield slot, so the player can have them in the main hand and equip a different weapon in the secondary hand slot, but the secondary hand slot cannot have two weapons of the same size category (e.g.: you can have a sword and a dagger, but not two swords).

I have written something similar in the past, you can find the script here, free to use for both commercial and non commercial games.
the way dual-wielding works is that all equip slots have a unique type ID associated with them: weapons are 0, shields are 1, helmets are 2, armors are 3, and accessories are 4.
when you present an equippable item (root category) to the actor, that item's type ID is checked against the available slots.
for dual-wielding, the allowed IDs are 0,0,2,3,4 rather than 0,1,2,3,4..... the "shield" slot is treated as a weapon.

you {["(*could*)"]} potentially alter that "1" to another ID (maybe 5, so it doesn't interfere with the default), so that both shields *and* dual-wielding weapons can be loaded into that slot, because by default the game only checks for weapon/not-weapon (ID == 0 / ID !=0), not weapon/shield/gear.
it's simpler to just group everything under weapon/not-weapon than checking every individual case, but as it is, it can also be un-simplified and made to check for that, provided the structure ends up being unique.
if you don't want to mess with that, try adding a trait to every actor based on their weapon choices: if you rename a dagger as "bayonet" (example) and set it to be it's own type "bayonet" to be used in conjunction with "guns", if the actor using "guns" can't equip "daggers" then they'll never be able to use "daggers" in dual with "guns" not because the gun doesn't allow it but because the actor itself can't use that type of weapon.

I have a system using "swords", "long swords", "two-handed swords", and "great swords".
-everyone can use "swords"
-only Knights can use "long swords".
-"long swords" can be used one-handed, with or without "shields".
-only Knights can use shields..... so, it's impossible for a Warrior to dual-wield a "long sword" with a "shield".
-"two-handed swords" and "great swords" are both two-handed (no shield)
-Knights have a separate form called Chivalry that grants them the use of "two-handed swords" (*Up front*. At the back, it's a separate *class* with a different configuration of traits, but is virtually identical to Knight), and negates the use of "long swords" and "swords", so, it's physically impossible to switch from a 2HSword to a regular sword and shield without changing form first.
-Warriors have "axes", which are virtually identical to "long swords" except used specifically by Warriors.

generically, everyone has 1 common weapon, and one exclusive weapon, with Knights having 2 exclusive weapons, one being available through a change in play style.
also, some skills require the use of a specific weapon, so, *more* restriction on weird uses of unwanted combinations.
This will probably best be done with a script, either the one suggested by Hierukichi or another, so...

Moved to: RGSS3 Script Requests
This is not something you can do without a script. If you seal the shield slot, the player will no longer be able to equip any weapon in that slot, which is not exactly what you are trying to achieve, at least based on your description.

What you could do is use a script to prevent certain weapons to be equipped in the dual wield slot, so the player can have them in the main hand and equip a different weapon in the secondary hand slot, but the secondary hand slot cannot have two weapons of the same size category (e.g.: you can have a sword and a dagger, but not two swords).

I have written something similar in the past, you can find the script here, free to use for both commercial and non commercial games.

This pretty much works. Thank you.

This will probably best be done with a script, either the one suggested by Hierukichi or another, so...

Moved to: RGSS3 Script Requests

I didn't know this was going to require a script when I made it. Sorry.

Original thread: https://forums.rpgmakerweb.com/threads/prevent-dual-wielding-certain-types-of-weapons-but-not-others.116169/