How do I make weapons that buff certain attacks?.

Sorry if this is in the wrong thread. I'm entirely new to this.

Anyways I recently got rpgmaker for the switch to see if I have an actual passion for game development. I do. Before I do anything serious I want to make my own little mini rpg on the switch.

I have an idea where players can get certains buffs like +10hp +7str for farmer class with weapons like a garden hoe or pitchfork having an additional 4 attack if equiped to a farmer.

I also want the same thing but with attacks. Like a Slash attack doing +10% damage when a saber is equiped. Does anyone know how to do that?
You may be able to do some of that with damage formulas. But probably the easiest way is to use a plugin that applies passive states. Like, you could have the saber apply a state Saber to the wielder, and reference that state in the damage formula of a skill.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-weapons-that-buff-certain-attacks.144712/