Adding Weapon Abilities

I was wondering if there was any way to change a weapon's states during a battle.
Say each successful hit had a chance to raise the player's attack?
or give the Weapon a certain advantage chance from the start of battle like 10% chance to lower enemy defence.
This would also apply to the armour as well.
For the first you'll need a plugin. For the second you can make a troop event that goes off at turn 0.
I can't find any plugins that do help with this problem.
The troop events work though.
If you use Yanfly you could try this: http://yanfly.moe/2017/12/01/yep-159-lunatic-pack-action-beginning-and-end-effects-rpg-maker-mv/ and make a custom effect that rolls a number and if within a range applies the buff. But that's beyond my head.
I do use Yanfly. Thank,s I will try it out. Looks to be what I need.

Original thread: https://forums.rpgmakerweb.com/threads/adding-weapon-abilities.103100/