MZ Battle counter and storing multiple values in a single variable

Hello again, my idea is maybe too hard, but im try to make a battle victory counter for one armor category when this value reaches three - each subsequent battle victory will add +10% to the fact that the character will receive a state of -50% to all his characteristics.

I'm thinking of doing this through the WAY_CustomOnEquipEval plugin. When a character puts on armor, he turns on the switch, which adds a variable. This variable is included in the cycle, where each win adds +1. When the variable reaches 3, it turns on another switch, which makes the variable with a random value from 1 to 100. And after the check: If there are 4 wins and the value is equal to or greater than 90(10%). After that: If there are 5 wins and the value is equal to or greater than 80 (20%) and so on.

In general, I need to somehow keep track of which armor the character is wearing, without creating 3 thousand different common events. Is it possible to use some kind of plugin to add a new variable to a common event or something like that to implement this?
Do you mean 'armor type' when you say 'armor category'? Make some game variable an array, like:
$gameVariables.setValue(X,[0,0,0,0,0,0,0,0,0])

Make a battle victory common event (VS Battle Core):
$gameParty.battleMembers().forEach(member =>
{if (member.armors().some(armor => armor.atypeId === Y)) {
$gameVariables.value(X)[member.actorId()] += 1;
const timeArmor = $gameVariables.value(X)[member.actorId()];
if (timeArmor > 3){
if (Math.random() < 0.1*(timeArmor-3)){
member.addState(Z);
}
}
}
})

Add whatever system you want to set the count back to 0.

Original thread: https://forums.rpgmakerweb.com/threads/battle-counter-and-storing-multiple-values-in-a-single-variable.179248/