How to inflict a state to user and target at the same time.

This does not require eventing.
 
This is how you do it.
State 1 = State to Target
State 2 = State to Caster
 
b.add_state(1); if b.state?(1); a.add_state(2); else; 0; end; damage formula
 
There you go   😀
 
If you want it to be done by chance, I suggest using this:
Let's say you want a 60% chance for states to work
 
rand(100) <= 60 ? b.add_state(1); if b.state?(1); a.add_state(2); else; 0; end; damage formula
 
Any questions or problems?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-inflict-a-state-to-user-and-target-at-the-same-time.66891/