Hi. I've searched over the whole forum for this, but was unable to find a solution that worked. I've created a skill that does more damage to the enemy if the enemy is stunned.
This is what I've put into the damage formula:
b.state(8)? a.atk * 7 - b.def * 2 : a.atk * 5 - b.def * 2
However, whenever I test it in the game, it always inflicts 0 damage (regardless of whether the enemy has the state on or not). I've checked enemy stats and all, so it shouldn't be dealing 0 damage, unless my formula is wrong. I tried doing it via other ways, but all those ways give me a syntax error. Would anyone be able to advise what I'm missing here?
Thanks.
This is what I've put into the damage formula:
b.state(8)? a.atk * 7 - b.def * 2 : a.atk * 5 - b.def * 2
However, whenever I test it in the game, it always inflicts 0 damage (regardless of whether the enemy has the state on or not). I've checked enemy stats and all, so it shouldn't be dealing 0 damage, unless my formula is wrong. I tried doing it via other ways, but all those ways give me a syntax error. Would anyone be able to advise what I'm missing here?
Thanks.