stacking passive state

I want to make a lvleling system that allows the player to choose from different passive and active skills after x uses of a weapon.

say the player uses a sword for 5 times he / she got better with the weapon and may choose from:

passive skills
+2 hit rate
+1 eva
+1 CH
...
active skills
....
I put the passives in (permanent) state.
say the player starts at 50 hit rate and can lvl this up to 100.
He should be able to stack the hit rate state 25 times.
I know I can do multiple states using the buff state core from Yan Fly, but it's only available for stats and not for traits.
any ideas?

thanks!
I'm not sure if i get your point correctly, but I guess you can use Extra-Param Control & Special-Param Control plugins to do the same as stats:
- http://yanfly.moe/2016/02/12/yep-69-extra-parameter-formula/
- http://yanfly.moe/2016/03/04/yep-78-special-param-formula-rpg-maker-mv/

Like HIT, use "user.addHit(x)" in a state's custom note tag to add bonus HIT.
thanks for answering 🙂.

I found out about the plugins already.
I use them for other things 🙂.

Let me explain some more.

I have a variable counting sworduses.
At some # of uses, the swordskill goes a level up.
At this point the player can choose one skill.
All passive skills are stackable.
this gives the player the opportunity to specialise in one skill. Or go for an allround kinda character if he like more diversity.
It's the specialisation that troubles me.

I have a several states that gives passive bonusses.

Let's say that the player's swordskill level a first time. He chooses the hitbonus. He gains the state that grands him +2 hit rate.
after some time the swordskill level a second time. Again he chooses the hitbonus. He gains the state that grands him +2 hit rate for a second time.
only...both states don't stack. and the character only have +2 to hit rate (and not the +4 which he should have).

I tried to solve this by making a second state with hit rate +4.
For this I use a conditional branch. If player has hit rate +2 state then forget this state and get hit rate +4.
I could make states up to + 50 hit rate and more if I have to.
This works fine.

Although I have about 4 passives this way.
I won't do the math about the combinations in the conditional branches i have to create, but I recon it will be 1000's 😛.

So If I could make 1 state which I could stack without the use of the conditional branch this problem would be solved.
I see. So it is a bit different from what i imagined, so i cannot assist you more. But i realize that your idea is really interesting so i hope someone else will be able to help you about this ☺️
Okay, thanks.
I hope so too, cause I want to imply it to my tradeskills (craftingskills) aswell.

Original thread: https://forums.rpgmakerweb.com/threads/stacking-passive-state.77839/