Make Skills Damage Enemy and Buff User

Trying to make it so that if an actor uses a skill on an enemy, it will inflict damage to that enemy while simultaneously giving the actor a buff/debuff, but can't figure out how to accomplish this. If there's a way to do it without plugins that'd be preferable, but if it can only be done with plugins then which plugin would I have to use? Thanks!
Use the damage formula box:

Code:
a.addState(x); a.atk * 1
Thank you, that worked!

Original thread: https://forums.rpgmakerweb.com/threads/make-skills-damage-enemy-and-buff-user.65099/