Hide equipment slots?

I am using Yanfly Equip. I am looking for a plugin that hides certain equipment slots, as there is no way to "force equip" a character equipment.


thanks
I think you need to explain what exactly you want to do, because there are ways to fix or seal equipment slots based on what exactly you want.
Through YEP Equip Core itself you can choose which slots you want a specific class to have.
You can't use these tags on actors, sadly.


You can define the slot order


<Equip Slot: z, y, x>


Number of slots


<Equip Slot: z, z, z, y, y, x, x>

And the slot type the class may have


<Equip Slot: x, z>
 


Just replace the letters with the number of the slot type.
@Andar


I am looking to hide the equipment slot to have a character still equip armor on that slot, but to have it invisible on the equipment/status screen.
Oh, that's something that needs a new plugin, i guess.
 
@Black Lotus


why do you want it invisible? You're missing a logic problem here.


If the slot is invisible, then the player cannot change the equipment anyway. If the equipment cannot be changed, there is no need for an equip slot as you could simply add the bonuses of that equipment permanently to the actor/class.


So either you're thinking wrong, or there is something that you didn't tell us yet - and there are probably better ways to handle it than an invisible equip slot if you just tell us what you want to do instead of how you want to do it. "making a slot invisible" is how you want to do something, but I asked for what that something is that you want to achieve by making the slot invisible.
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.
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"
upload_2018-5-11_9-10-1.png


His starting weapon is a 2H weapon, so the 2nd slot is missing and cannot be interacted with
upload_2018-5-11_9-9-29.png


When the 2H is removed the 2nd slot re-appears
upload_2018-5-11_9-10-58.png


When attempting to equip a weapon in a slot, you will notice that a shield is not an option
upload_2018-5-11_9-11-49.png


Once I have a dagger equipped, the option for a shield in the 2nd weapon slot can be used
upload_2018-5-11_9-13-6.png


So here it is... 1H/1H, 1H/Shield, 2H/- working as described!
upload_2018-5-11_9-14-19.png

upload_2018-5-11_9-14-48.png

upload_2018-5-11_9-15-9.png

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.
So cool thanks! Didn't realize post was so old. Yes that is exactly what I was looking for. You don't happen to know how to get a weapon to visually
show in game (outside the menu) in only left or right hand using SRD Dynamic Actors?
Can i use script calls in the weapon notes? I have weapons that I use with Dynamic Actors plugin so when i equip a sword in the right hand it shows up and when i equip a sword in the left hand it also shows up. But i need a script call to run when i equip the weapon that says if sword is equipped in right hand then show only in right hand or if sword is equipped in left hand then show in left hand.
————————————————————————————————————
$game_actors[actor id].weapons.include?($data_weapons[weapon id])

right_hand = $game_actors[actor_id].equips[0]

left_hand = $game_actors[actor_id].equips[1]

if !right_hand.nil? && right_hand.name.eql?(“”Sword””)

elseif !left_hand.nil? && right_hand.name.eql?(“”Sword””)

end
——————————————————————————————–
The problem is that I reference both Weapon and Weapon2 in the notes and they both appear regardless of what weapon slot they are in.
Just wondering if this because the Dynamic Actors ignores script in the notes? Any help is greatly appreciated. Thanks again and have a
great weekend.
I don't really know that plugin, but I took a look in it and the character creator plugin it requires and as far as I can see I cannot find a method of doing what you're looking for. :/

Someone who knows more than me when it comes to JS may be able to help, but I'm really not that great at JS still... I can do edits and whatnot to get to my goal, but it can take several hours or days of trial and error to get there for me in some cases.

I may try again later to see if I overlooked something, but like I said, without some real tweaking I can't find a way as-is.
i like this idea i want it 2 but i want also a little more becease i use
CCEX Dynamic Actors plugin
i wanna make a set of cloths that only been seen and be change by a event

what i do is i add some hair as armor but only by a event the hair it self does nothing but only change the look but it is a piece of armor becease its is only a style option i like it to be hidden

armor front hair hidden
armor back hair hidden
armor accessory a hidden
armor accessory b hidden
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"
View attachment 89720

His starting weapon is a 2H weapon, so the 2nd slot is missing and cannot be interacted with
View attachment 89719

When the 2H is removed the 2nd slot re-appears
View attachment 89721

When attempting to equip a weapon in a slot, you will notice that a shield is not an option
View attachment 89722

Once I have a dagger equipped, the option for a shield in the 2nd weapon slot can be used
View attachment 89723

So here it is... 1H/1H, 1H/Shield, 2H/- working as described!
View attachment 89724
View attachment 89725
View attachment 89726

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.
HI, sorry to necro this.. I tried setting this and its working ALMOST perfectly..
My only grip is that now everyone can dual wield with any one-handed weapon.. and i don't like it..
The only weapons with i want to dual wield in my game are daggers and axes..
is it possible to do with this setup?
I am literally going crazy all day trying to solve this..
@Garten
Unless there is a way to seal specific equipment types, which is not a default function of RMMV/RMMZ then I don't think it would be possible.

IF it were possible all you would have to do is make a setting/trait/ect and put it on your Daggers and Axes so that when one of them is being used it removed the ability for that character to equip Swords/Maces/Staves, ect.

Now for the issue with that setup:
If you use this method it would make it so the player would have to manually un-equip the item to remove the flag from the character so they could put back on other weapon types... otherwise they wont even appear in the useable list as long as a Dagger or Axe was equipped.

I know, not the answer you were looking for, but sadly I do not have a solution to the issue and wanted to say as much. :/
HI, sorry to necro this..
Welcome! We're not supposed to necro-post - especially as your question is not the same as the OP from 6 years ago. However:
The only weapons with i want to dual wield in my game are daggers and axes..
is it possible to do with this setup?
This plugin allows you to define which weapons can be dual wielded.
I am very sorry. AFTER writing the post i read the forum rules >_>. i am not sleeping much theese days, doing little hours on my project xD
I am using that plugin right now and it's very nice. Honestly I have another little request but i think i'll do another thread.

Tnx a lot <3

Original thread: https://forums.rpgmakerweb.com/threads/hide-equipment-slots.67073/