School Techniques (a la The Witcher 3)

Hello again! Already, I'm not positive this is the correct forum to place this in (it might be a scripting request), so I'm sorry in advance!


In The Witcher 3, there are a few talents that increase based on the number of light, medium, or heavy armors currently equipped. As such:


Cat School Techniques


Each piece light armor increases critical hit damage by 25% and fast attack damage by 5%.


Griffin School Techniques


Each piece of medium armor increases your Sign intensity by 5% and Endurance regeneration by 5%.
 


Bear School Techniques


Each piece of heavy armor increases your strong attack 5% and maximum health by 5%.


While I am not trying to duplicate this identically, I am trying to find a way to implement something similar. After much hemming and hawing (and consulting a few friends), I've decided to allow all party members (of any class) to equip any armor types (Magic, Light, and Heavy). I already intend to impose various bonuses and penalties on the different types, to sort of steer mages to magick armor and the like. But I'd also like to reward creative builds.  


Long story short:


Is there a script or a way to call up or check how many equipment slots are filled by a certain type of armor? I'm thinking a State that references this and then provides a bonus or a perk accordingly.


Thanks again!


(I suppose I should mention I am using a combination of Yanfly and Moogle X's skill learn, equip skill slots, and passive states)
In what ways would just applying armor trait (parameters) be insufficient? Tried rereading your post some times, still not seeing it myself.
maybe if the armor increased a variable when equiped and (this part, youd have to make SURE yougot right) decreases that variables when unequipped


another way you could do it is attach passive states to armor and boom. easy fix. look for a passive state script quasis passive might work but im not sure. ill do some research when i get back from my hike


back from my hike: actually, you dont need a script because almoat every effect a state can apply equipment can too. just define it in that effects thing to the left. you can practicly duplicate witcher 3's system without a script
The problem with using passive states or armor traits for this is that they will stack multiplicatively with each other, and I assume that you want them to stack additively, like they do in the game. For this, a script is necessary.
I wanted to implement a similar system, only didn't want to implement it via the defaul traits in the editor because I wanted the bonuses to be granted only if they had more than 1 type of that armor equipped, and like you said stacks additively.

Original thread: https://forums.rpgmakerweb.com/threads/school-techniques-a-la-the-witcher-3.57109/