Disable equipment comparison in shops for characters with locked equip slots

Hello, pretty quick question here. I'm using Yanfly's Equip Core and their Shop Core in an MV game. I have a character who joins the party temporarily whose weapon slot is locked, as she is using a certain weapon that is hers to use alone. Her other equip slots are fine to mess with, but the weapon is locked.

In spite of that, I can still enter a shop and see the potential stat increase/decrease from equipping a weapon that I'm viewing, when in reality I'd prefer her not to be able to even see the comparison so my players don't think she can equip new weapons.

Screenshot (133).png


The image above is how it currently looks. This is a weapon type that by all rights, her class should be able to equip, but I just don't want her to be able to swap weapons. I'd rather it display like the below image for ANY weapon for her, rather than just those of a class she can use.

Screenshot (134).png


An alternative would be to just make a new Weapon Type with her name on it, and make her proficient with only those weapons, but it would be a ton easier to know if there is a way to universally do this so I don't have this issue come up again in the future, as in my game, certain skills require certain weapon types. I'd rather future-proof it than band-aid fix this, essentially.

If anyone knows of a plugin that addresses this, or if I'm just missing something in the editor, please let me know! Thanks 🙂
Hmm. Can't you just give the characters with restricted slots a different type of equipment in your database? You could still call it "Gun" or whatever but since it's a separate type from everyone else, the regular type gun in the shop will always show up grey for the guy with the slot restrictions.
Hmm. Can't you just give the characters with restricted slots a different type of equipment in your database? You could still call it "Gun" or whatever but since it's a separate type from everyone else, the regular type gun in the shop will always show up grey for the guy with the slot restrictions.
Yeah, that's the "second best" solution I mentioned. I have some skills that require the weapon types "light melee" or "heavy melee" to be used, for example, and I don't want to modify her skills to have to account for a new weapon type. Making a duplicate skill for her to learn with the weapon type "Self" or whatever I name it would just be a little more work when making changes to skills in the future--I'd have to update both at once, and multiple different versions of that skill would exist across my database.

My goal was having to avoid doing what you described, but if that's the only way, I suppose that's where I may have to land. I was just hoping someone knew a way around it.
Making a duplicate skill for her to learn with the weapon type "Self" or whatever I name it would just be a little more work when making changes to skills in the future
Just to put it out there (not saying this is the only solution to your problem), there are plugins that let you specify additional required weapon types in a skill's notetags. So you wouldn't have to make duplicate skills for anything, just add that type as an option.
I think in the base RPG Maker you can add to the Shop drawActorEquipInfo an additional condition:

!actor.isEquipTypeLocked(this._item.etypeId);

At least that seemed to work LOL (just winging it). Maybe something similar for the Yanfly shop plugin?

Original thread: https://forums.rpgmakerweb.com/threads/disable-equipment-comparison-in-shops-for-characters-with-locked-equip-slots.162413/