MV Changing weapons during combat through a skill, including texture alteration, etc.

So here's what I have in mind, but I'm not sure if it will work.

A character should have the ability to carry two weapons: a crossbow in the main hand and a dagger in the offhand (in the equipment window).

When the character joins the party, the crossbow should be equipped by default (visually), and during battles, the character should start with the crossbow equipped and only be able to use skills intended for the crossbow.

Now, I want to create a skill or two, for example, called "Dagger Switch," which activates a switch that changes the character's battle sprite from crossbow to dagger (I can handle this part myself). Additionally, all the skills that required a crossbow should be grayed out, and the player should be able to use dagger skills instead.

Is there a plugin available for this? I initially tried without one, and it seemed to work, at least on paper. However, it could be frustrating for players since it doesn't work during battles, only outside of them. Additionally, the player would have to re-equip the weapon after switching, which could be even worse if they forget and find themselves in the middle of a battle.
Now, I want to create a skill or two, for example, called "Dagger Switch," which activates a switch that changes the character's battle sprite from crossbow to dagger (I can handle this part myself). Additionally, all the skills that required a crossbow should be grayed out, and the player should be able to use dagger skills instead.
You can use Yanfly's Skill Core.
Code:
<Custom Requirement>
value=$gameSwitches.value(4);
</Custom Requirement>

That will make the skill only usable if switch 4 is turned on. If you want a skill to only be usable when the switch is off, make it !$gameSwitches etc.

That's presuming the only requirement is the switch. If you are also using the weapon requirements built into the skill in your database, you'll either have to ditch those or change the actor's weapon or something.

Original thread: https://forums.rpgmakerweb.com/threads/changing-weapons-during-combat-through-a-skill-including-texture-alteration-etc.159321/