Additional damage if used against someone asleep

Is there a way to do this? Wheather if it's plugin or not? If it is, any way to do it with Yanfly's stuff?
I can't quite explain it myself, but this link should have what you need.


http://www.rpgmakercentral.com/topic/36290-damage-formulas-101-mv-edition/
Did you mean a specific skill?


If you wanna do it without any plugins, just use this in the damage formula:


b.isStateAffected(x) ? 200 : 100


Change x to your Sleep state


Change 200 to your higher damage formula


Change 100 to your lower damage formula


- Riff

Original thread: https://forums.rpgmakerweb.com/threads/additional-damage-if-used-against-someone-asleep.65731/