Help with states

Hello, I seem to be having some problems when making my game. I want to make this skill where the character does really massive damage but loses a lot of defense for a couple of turns. I try doing the Add_state(id); in the formula but when I do that and test it out it seems to make my damage go down to zero. I put it in the beginning (I thought that's where is went but i may be wrong.)


Can someone help figure out how to make the skill work or an alternative way to make it work? I'm still new to this, the most experience i have is watching tutorials on YouTube but none of them seem to be helping. Thanks for taking the time to read this. 
Most probably it is because of the sequence in the damage formula - the add state has to come first, because the damage dealt is the last number processed - which would be the ID if that command comes last.


If not, we need a screenshot of your skill with the damage formula you used to find the problem.


I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-states.66310/