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?
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?