How to implement equipable item set effects

I want to implement a system where equipable items can belong to a "family" of items. If an actor is equiped with enough items from a set (3/5/7), they gain all applicable effects. Is there any way I can do this in the base game or would a plugin be better suited for this? If a plugin would be better, any recommendations?

Example Set:
Mythical (3 Set): +10 M.ATK
Mythical (5 Set): + 7% M.ATK
Mythical (7 Set): Attacks steal 3% of the target's MP
You'd use passive states from VisuStella's Skills and States. Have a state for each bonus and use a custom condition that checks for a certain number of the appropriate items to be equipped.

For example,
Code:
<JS Passive Condition>
// Replace with whatever armor IDs you want
condition = [14, 20, 42, 69].filter(id => user.hasArmor($dataArmors[id])).length >= 2;
</JS Passive Condition>

The above will cause the passive state to be active when the actor is wearing at least 2 of the listed armor IDs.
You'd use passive states from VisuStella's Skills and States. Have a state for each bonus and use a custom condition that checks for a certain number of the appropriate items to be equipped.

For example,
Code:
<JS Passive Condition>
// Replace with whatever armor IDs you want
condition = [14, 20, 42, 69].filter(id => user.hasArmor($dataArmors[id])).length >= 2;
</JS Passive Condition>

The above will cause the passive state to be active when the actor is wearing at least 2 of the listed armor IDs.
Okay cool. Thanks a bunch 🙂
If you have plans on getting all of the VisuStella plugins, or just want a plugin specifically for equipment set bonuses, they have a dedicated plugin for this as well. Stick with @ATT_Turan said if you're going free, but you've got an additional option if you aren't.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-implement-equipable-item-set-effects.167365/