State added with formula issue

I have a formula in my game that adds a state. (a.add_state(10); a.atk * 35 - b.def * 2)

The problem is the state only applies when the attack hits.
Is there any way to make it apply regardless of hitting or not?
not with the damage formula alone, because that is only executed when it hits.

you'll either need a script for that, or have the effect through a common event (which has its own disadvantages)
does VX have anything like action sequence scripts?
thats how i usually do my user.addstates with MV

Original thread: https://forums.rpgmakerweb.com/threads/state-added-with-formula-issue.140144/