Attack that adds buff/state to the user?

So, in my game I'd like there to be a skill which damages an enemy and also gives the user a buff or a state. Namely, a slide attack which damages one enemy and also gives the user a small agility boost.

Are there any plugins that would allow me to put something like that in my game? Or anyone willing to make one?
You don't need a plugin to do it. In the damage formula box, you can use some commands to do that.


For example, paste


a.addState(5);a.atk * 4 - b.def * 2


In your attack skill box and you'll see that everytime someone uses attack, they'll gain the blind state (state n*5). I don't know the command for buffs, but I suspect there is one too.

Original thread: https://forums.rpgmakerweb.com/threads/attack-that-adds-buff-state-to-the-user.70991/