- Joined
- Mar 15, 2015
- Messages
- 233
- Reaction score
- 27
- First Language
- English
- Primarily Uses
- RMMV
So I have a skill called Nightmare that inflicts additional damage if the enemy is affected by the Sleep state (or is supposed to). So far it does 0 damage. What am I doing wrong here?
Basing this off some other formulas I saw.
if b.state?(6);end;c = 1000;else;c = 10;end;c
Very basic example. I plan to have my actual damage formula multiplied by "c", but for now I'm just trying basic testing with this formula and it's doing 0 damage.
*edit* The correct way, as answered by Ogouka, is this:
b.isStateAffected(x) ? [high damage formula] : [lower damage formula]
Thanks Ogouka!
Basing this off some other formulas I saw.
if b.state?(6);end;c = 1000;else;c = 10;end;c
Very basic example. I plan to have my actual damage formula multiplied by "c", but for now I'm just trying basic testing with this formula and it's doing 0 damage.
*edit* The correct way, as answered by Ogouka, is this:
b.isStateAffected(x) ? [high damage formula] : [lower damage formula]
Thanks Ogouka!
Last edited by a moderator:

