"ChangeWeaponOnBattle" Issue

Heyo everyone!

Hope somone might be able to help me out here 🙂

So RMMV came with the "ChangeWeaponOnBattle" plugin. I was looking forward to using this feature as it was adding a little bit of flexibility to the battle system (in my game different weapons do different attacks, so it's pretty nice to be able to switch mid-fight to be able to adapt to new situations).

I stumbled upon an issue, though...

Let's take my "Knight" class for this example:

My knight can equip greatswords, swords, axes and maces as well as small and large shields. Equipping a greatsword locks the shield slot as it should be. Wielding any of the one-handed weapons enables the knight to equip a shield. Again, as it should be.

However... shields are not included in the list of equippable items on that change weapon screen. I can switch my weapons just fine and it locks/unlocks the shield slot the way it should be, but even if I switch from greatsword to sword I then can NOT equip as none of the shields in my inventory show up. Even worse! When selecting the shield slot it wants me to equip a weapon there. My knight can NOT dual wield. Again, even worse! Trying to actually equip a weapon in that shield slot DELETES the weapon from the player's inventory permanently. Like... wtf lol 😀

I'm using most of Yanfly's plugins, including item and equip core. Could that cause the issue? Is this maybe a "known issue" with the plugin? Is my plugin outdated, has there been an update? Or am I just stupid in some way that I don't realize?^^

Would really appreciate any help in this matter 🙂

Thanks in advance to anyone trying to help!

Tara

EDIT:

a quick test with a new project without any plugins "revealed" that the issue really DOES stem from one of the plugins i'm using... anyone have an idea how to fix this? 🙁

EDIT2:

i identified yanfly's EquipCore plugin as the culprit... any known workaround?

shields.JPG

uwotm8.JPG
I'm also having this exact problem. It's such an issue that I have had to disable Yanfly's EquipCore plugin. It's a bug with EquipCore, and I don't think there's a workaround aside from just not using it. There are also other bugs with ChangeWeaponOnBattle not updating certain parameter buffs/debuffs on-equip and just applying it when the character swings the weapon. I'm thinking of using Bobstah's Battle Command plugin alongside Yanfly's Instant Cast plugin as an ugly workaround, but I think it's better to just wait for the bug fixes to come.

EDIT: I ended up diving into the script and manually edited Sasuke's code to fix one of the bugs. I might try to do the same for Yanfly's compatibility later.

Original thread: https://forums.rpgmakerweb.com/threads/changeweapononbattle-issue.49252/