How to have a state that raises a stat when a certain weapon type is equipped?

I'm trying out an ability system in my game similar to Final Fantasy V and Bravely Default and one of the types of abilities is called "(weapon)faire." This skill idea is taken from Fire Emblem, and basically how it works is that it raises a certain stat (usually attack) when a certain type of weapon is equipped. Does anyone know how to accomplish this in RPG Maker MV? Thanks.
Hmm.. So if you use the skill, it gives a stat buff to a character when the character uses certain weapon?
Does the Weapon Database can already do that? You can set the Attack in the Parameter Change.. or you need another attack buff when equipping that certain weapon?
That wouldn't work. I needed to have a passive skill that raised your ATK or MAT when equiped with a certain weapon type. The passive skill would only become active when the weapon of a certain type is equiped. Having a particular weapon or state having a +50% ATK/MAT buff wouldn't work because it would activate 100% of the time rather than only when a certain weapon type is equipped. Luckily, Yanfly had a "tips and tricks" set of code that I could use. It just had a weird name so it was harder to find.

That wouldn't work. I needed to have a passive skill that raised your ATK or MAT when equiped with a certain weapon type. The passive skill would only become active when the weapon of a certain type is equiped. Having a particular weapon or state having a +50% ATK/MAT buff wouldn't work because it would activate 100% of the time rather than only when a certain weapon type is equipped. Luckily, Yanfly had a "tips and tricks" set of code that I could use. It just had a weird name so it was harder to find.


Oh okay then, glad to see that you already got the solution. You should report the thread so the moderators can close it. 🙂
Thread closed a

Original thread: https://forums.rpgmakerweb.com/threads/how-to-have-a-state-that-raises-a-stat-when-a-certain-weapon-type-is-equipped.130730/