Effect on Ability user

I want a technique which not only damages the target but also inflicts status conditions on the user.

How do i do this?
That is usually done with the damage formula box.


There is a (very long) forum topic that explains everything that can be done with the damage formula (including a lot more things), search for it (I don't have the link ready at the moment) and check there for how it's done.
Uhh..

I think it's something like this for the damage formula.

a.add_state(X);end; a.atk * 4 - b.def * 2

X is the state you want on the attacker.
^ That should work, but you wouldn't need the "end;". So it'd just be:

Code:
a.add_state(id); damage_formula
thanks, will try it

Original thread: https://forums.rpgmakerweb.com/threads/effect-on-ability-user.38489/