Is it possible to create an armour restriction that limits types of armours?

I'm looking for a set of armours to have the restriction so that only one can be worn at any time,only one charecter will be wearing the armour types and i have yanfly plugin
You're gonna need to be more specific here. A character can only have one suit of armor on at a time to begin with. I assume you mean a matching set, such as a suit of armor, a helm, and a shield, just as an example. Am I correct?
You could create a "core part" for the set that needs to be worn to allow all the other parts of the set. Say you want a Fireproof set containing armour, boots and gloves and helmet. Boots, gloves and helmet need to have a unique armour class, Fireproof in this case. Then make the armour itself a class that is always available to your character and give it the trait "Equip armour: Fireproof".

Now the other parts of the armour can only be equipped, when the core part is worn. Then you do the same for your waterproof armour. Since your character can only wear one core part at a time, they can't equip parts from both sets.

If that's not what you want you could use Yanflys Equip Requirements. There is a notetag that marks a piece of equipment as "unique", so only one of it's kind can be equipped at the same time. If you give all of your armour pieces the unique trait only one can be worn, but I think that's not how you want it to work, since you have multiple pieces of a set, right?

In this case you'd need some js knowledge to use the lunatic mode notetags that come with the plugin.
You're gonna need to be more specific here. A character can only have one suit of armor on at a time to begin with. I assume you mean a matching set, such as a suit of armor, a helm, and a shield, just as an example. Am I correct?


Sorry let me explain, i have a yanfly plugin which allows me to have several accessories. The charecter Is based around a unique set of items to allow him to customise how he sees fit. Theyre all the same classification. I want it so that there are a few of these armours which stop the player from equipping other armours (ones which replace the gaurd to be exact)
You could create a "core part" for the set that needs to be worn to allow all the other parts of the set. Say you want a Fireproof set containing armour, boots and gloves and helmet. Boots, gloves and helmet need to have a unique armour class, Fireproof in this case. Then make the armour itself a class that is always available to your character and give it the trait "Equip armour: Fireproof".



Now the other parts of the armour can only be equipped, when the core part is worn. Then you do the same for your waterproof armour. Since your character can only wear one core part at a time, they can't equip parts from both sets.



If that's not what you want you could use Yanflys Equip Requirements. There is a notetag that marks a piece of equipment as "unique", so only one of it's kind can be equipped at the same time. If you give all of your armour pieces the unique trait only one can be worn, but I think that's not how you want it to work, since you have multiple pieces of a set, right?



In this case you'd need some js knowledge to use the lunatic mode notetags that come with the plugin.

That is kind of what i want, all the samms are the same armour set I'm using a plugin which lets you have multiple. Instead of needing a core for the others to he equipped though it'd need to stop them from being equipped if that makes sense
you select the text and reply on it so it would be better readable.

if you want an actor that only can wear "light armor" but not "heavy armor",
there is a plugin that can do that as well you can set it in the actor traits to
be like that.

YEP_EquipCore I believe could do that, but you should read the helpfile
how it works and/or watch the tutorial video if its explain how to accomplish it.

if you want a special "set effect", make it one of a kind, but there is a plugin for it
to make this set effect, but as mentioned, you can give it a tag for only "light armor".
alternative, you can set it to actorID only so no other actors can wear it.
As a quick note, we're not supposed to double post. If you forgot to say something, you can Edit your post. Also, as @ShadowDragon said, your posts will be much more legible if you use the Reply/Quote buttons so we can see the difference between what you're saying and what someone else has said.

As for your questions:
I want it so that there are a few of these armours which stop the player from equipping other armours
I'm just going to pick this out, because this is easy to answer and I think it's the core of your question. You can use the Equip Requirements plugin because, logically, a restriction is just saying it's required that this not be true, right?

You're going to have to fill in some blanks and do some copying and pasting on your armors. Let's take this notetag:
Code:
<Custom Equip Requirement Condition>
condition=![13, 25, 89].some(armor => user.isEquipped($dataArmors[armor]));
</Custom Equip Requirement Condition>

The numbers I listed you will replace with the IDs of any piece armor that would stop the actor from equipping this armor. So, in the example, if he's wearing 13 or 25 or 89, this will be greyed out and he can't equip it.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-create-an-armour-restriction-that-limits-types-of-armours.153569/