I would like a similar solution. Say my character can equip all types of weapons and shields but when you equip a 2-handed weapon like a bow
then the shield slot would be hidden from player sight not just sealed. This is for immersion only as it would appear that the player character
is using both hands to hold the weapon if the shield slot is hidden instead of just being inaccessible. Then when you unequip bow the shield slot returns. I thought you could add a note to weapons in Yanfly Equip but ive been away for quite awhile and when testing found this to be untrue...maybe i just forgot lol but thanks for any reply.
More than a small necropost here, but what you're saying is you want something like 1H/1H, 1H/Shield, or 2H equips, where the 2nd weapon slot disappears when you have a 2H weapon equipped?
If so, then find this section of code in the Yanfly EquipCore plugin and add in the edited line.
Code:
Game_Actor.prototype.equipSlots = function() {
var slots = this.currentClass().equipSlots.slice();
if (slots.length >= 2 && this.isDualWield()) slots[1] = 0; // Edit
return slots;
};
First, give each character 2 weapon slots on the actor page
Now, to make it work the way you want it to, you need to make all 2 handed weapons have "Slot Type: Dual Wield" as one of the traits
Next, make your shields as weapons (with a shield weapon type) in the database, make it so no character can equip shields by default (to prevent them from being able to equip 2 at the same time... unless you want that?)
Lastly, make all your 1 Handed weapons allow the use of the Shield weapon type.
This may sound confusing, but I promise you that it works!
Spoiler: Screenshots
How the actors first 2 slots should look... (my games weapons are "Battle Gear"
His starting weapon is a 2H weapon, so the 2nd slot is missing and cannot be interacted with
When the 2H is removed the 2nd slot re-appears
When attempting to equip a weapon in a slot, you will notice that a shield is not an option
Once I have a dagger equipped, the option for a shield in the 2nd weapon slot can be used
So here it is... 1H/1H, 1H/Shield, 2H/- working as described!
If you are having more problems I can attempt to help, but I have a busy day and weekend ahead, so my responses may be delayed a fair bit.