MV Need help with adding skills to armor combinations

Hello,

In my game I want characters to be able to get armor which grants an extra skill when worn as matching set, what I'm trying to achieve is the following;

Fire Cap adds skill 10
Fire Vest adds skill 11
When both are worn, it adds an extra skill, number 12

I know how to add skills to a single item, but how can I add a common event or something other, where I can use conditions to determine what extra skill is given if certain armor pieces are combined?

Thanks ahead of time for any help.

Edit: For some reason this was put in JS Plugin Requests, however just to be extra clear, I am trying to avoid the use of a plugin.
the default engine has no equipment sets.

that means you have only two options left:
1) add a plugin that implements sets and has that ability
2) make parallel processes checking if the player has all items equipped and add the skill if yes, remove it if no.

and the second option only works with a limited number of sets, you'll have to go the plugin route if you have more than a handfull of special set equipment.
I could've sworn there was a yanfly plugin that does this, but I didn't find it after a quick google search
If you don't want to mess around with plugins and your armor sets are relatively simple, you could event it pretty easily.

For example, you could have each armor piece raise a number of variables by +1 and form thresholds for certain combinations. That sounds a bit convoluted so let me give you an example:

Variables (become activated at +2):
- Purple
- Green
- Orange

Red Armor = Raise Purple +1, Raise Orange +1
Blue Armor = Raise Purple +1, Raise Green +1
Yellow Armor = Raise Green +1, Raise Orange +1

Blue Armor + Red Armor:
- Purple = 2 ---> Purple bonus activated
- Green = 1
- Orange = 1

Blue Armor + Yellow Armor:
- Purple = 1
- Green = 2 ---> Green bonus activated
- Orange = 1

Red Armor + Yellow Armor:
- Purple = 1
- Green = 1
- Orange = 2 ---> Orange bonus activated

Something like that?
There are plugins out there that add set effects - Olivia's is one I know of, but it is paid. You can also do this with Yanfly's Passive States plugin. I would link it here, but, ahh...missing edit bar!

What you do is make a state that adds skill 12 in the traits section. Then, in the notebox of that state, put this:

<Custom Passive Condition>
if (user.hasArmor($dataArmors[X]) && user.hasArmor($dataArmors[Y])) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>

Replace X and Y with the ID numbers of your armour that you want as part of the set. Then in ALL the armours' notebox, put:
<Passive State: Z>
Replace Z with the state's ID.
Then you can add whatever effects you want to the state! I normally do this to add bonus stats, but I just tested adding a skill this way and had no problems with it. My only warning is, use passive states carefully. Stacking dozens of passives can cause lag in battle.
Let me know if this helps!
the default engine has no equipment sets.

that means you have only two options left:
1) add a plugin that implements sets and has that ability
2) make parallel processes checking if the player has all items equipped and add the skill if yes, remove it if no.

and the second option only works with a limited number of sets, you'll have to go the plugin route if you have more than a handfull of special set equipment.
If I went with option 2, can it be a common event that runs parallel, or do I make it else where?
If you don't want to mess around with plugins and your armor sets are relatively simple, you could event it pretty easily.

For example, you could have each armor piece raise a number of variables by +1 and form thresholds for certain combinations. That sounds a bit convoluted so let me give you an example:

Variables (become activated at +2):
- Purple
- Green
- Orange

Red Armor = Raise Purple +1, Raise Orange +1
Blue Armor = Raise Purple +1, Raise Green +1
Yellow Armor = Raise Green +1, Raise Orange +1

Blue Armor + Red Armor:
- Purple = 2 ---> Purple bonus activated
- Green = 1
- Orange = 1

Blue Armor + Yellow Armor:
- Purple = 1
- Green = 2 ---> Green bonus activated
- Orange = 1

Red Armor + Yellow Armor:
- Purple = 1
- Green = 1
- Orange = 2 ---> Orange bonus activated

Something like that?
Yeah, I could make some interesting basic combinations with that. Could you explain how I can raise variables though? As I don't see any option in the 'Traits' section by Armor tab in the database.
There are plugins out there that add set effects - Olivia's is one I know of, but it is paid. You can also do this with Yanfly's Passive States plugin. I would link it here, but, ahh...missing edit bar!

What you do is make a state that adds skill 12 in the traits section. Then, in the notebox of that state, put this:

<Custom Passive Condition>
if (user.hasArmor($dataArmors[X]) && user.hasArmor($dataArmors[Y])) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>

Replace X and Y with the ID numbers of your armour that you want as part of the set. Then in ALL the armours' notebox, put:
<Passive State: Z>
Replace Z with the state's ID.
Then you can add whatever effects you want to the state! I normally do this to add bonus stats, but I just tested adding a skill this way and had no problems with it. My only warning is, use passive states carefully. Stacking dozens of passives can cause lag in battle.
Let me know if this helps!
My armor set idea is pretty basic (so far) that I want to attempt it without a plugin, also helps me better understand the possiblities in RMMV. When I want a large variety of set bonuses, I will definitely take up your advice and use Yanfly's plugin, and thanks for the explanation.
Double-post notice: @Dagothe

You can also use +Quote to grab multiple posts to respond to in a single reply.

Moved to: Plugin Requests
Double-post notice: @Dagothe

You can also use +Quote to grab multiple posts to respond to in a single reply.

Moved to: Plugin Requests
Ah okay, I hit +Quote and reply, but reply alone quotes already I see, my mistake.

However how is this requesting JS Plugin? I intended to use common events as I stated.
Yeah, I could make some interesting basic combinations with that. Could you explain how I can raise variables though? As I don't see any option in the 'Traits' section by Armor tab in the database.

You'd run a parallel event conditional branch to check for the armor pieces.
However how is this requesting JS Plugin?

Parallel processes are not great for this as these are the ones that can tend to lag, and the majority of replies prior to my moving it all suggested plugins.
My armor set idea is pretty basic (so far) that I want to attempt it without a plugin, also helps me better understand the possiblities in RMMV. When I want a large variety of set bonuses, I will definitely take up your advice and use Yanfly's plugin, and thanks for the explanation.
You can do whatever you like with your game, but this is generally speaking a poor design approach. It is always better to plan ahead and implement systems coherently in one way.

If you have some reason that you want to avoid having any plugins in your project (although I can't think of one), then go for it, you have the explanation of how to go about it.

But if you have any suspicion that you might want to have more armor sets eventually, and you know you'd need to use the passive states plugin to keep your game running smoothly, you should do it from the beginning. Trying to change systems you already coded only gives you an increased chance of creating bugs (not to mention the wasted time in implementing your armor sets two different ways).
You can do whatever you like with your game, but this is generally speaking a poor design approach. It is always better to plan ahead and implement systems coherently in one way.

If you have some reason that you want to avoid having any plugins in your project (although I can't think of one), then go for it, you have the explanation of how to go about it.

But if you have any suspicion that you might want to have more armor sets eventually, and you know you'd need to use the passive states plugin to keep your game running smoothly, you should do it from the beginning. Trying to change systems you already coded only gives you an increased chance of creating bugs (not to mention the wasted time in implementing your armor sets two different ways).
I'm well aware of the poor design approach, my approach is different all together, I simply rather understand what is possible in the Maker before I design something eleborate and find out I can't implement it, or have to buy plugins to make it happen. Yanfly's plugin is free, but you already warned me about the lags when there's vast armor sets. I know it may sound strange but I've designed many things for other various games, and in my experience my designs are way to complex to be implemented 99% of the time, meaning I wasted a ton of time either way. So I'm just gonna start with basic stuff and expand upon that, an approach which has saved me loads of time. Just to give an example, I spent 100 hours designing a giant castle for a FPS called Kingpin (1999), only to load the map and it be unplayable due to rspeeds. 100 hours down the drain, when in fact I could have made a castle in 10 hours, just a tiny one compared to my square mile one... had I know the limitations before hand.

Thanks again for the input.

Btw I do have a grand design, 100 armor sets (10 per tier, upto tier 10), 5 ring slots, and materia (FF7) slots. No one learns skills or magic from levels, but items and combinations. Due to the input about lags and stuff I already realize I have to downsize dramatically.
Parallel processes are not great for this as these are the ones that can tend to lag, and the majority of replies prior to my moving it all suggested plugins.
Fair enough, and I got my answers on my comment event question, so all good.

How do I close this thread? As it can be closed.
You close a thread by reporting your post and advising the mods that the question has been answered.

Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-adding-skills-to-armor-combinations.132814/