How to make formula to make user in State after using skill?

Hello,


I am trying  to make a skill that cause Unbalance/Faint state to the Actor after using the skill.


I already figure it out using Common Event, but can it be done on Damage Formula? Thought it can be useful in the versatility of making formula later on.


Shown in the attachment is my attempt to make one, but the damage just keep going 0 value, while the State applied to the Actor.


Please help xD


Thank you

1479018660649.jpg
The damage always has to go last.  Just swap the order around - add state, then calculate damage.
Alright it works! Thanks Shaz!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-formula-to-make-user-in-state-after-using-skill.70930/