Attacks and abilities won't do damage.

The attacks and abilities don't do damage at all. The player and the enemies can't damage each other whatsoever I tried putting "4*atk-2def" into the formula thing for one ability, but that did nothing. I have no idea what I'm doing wrong.
theres no damage cause "atk" and "def" alone arent values by themselves. you need to use a and b to refer to the user and the target.
try "4*a.atk - 2*b.def"
There is a * missing as well. 2 b.def is not a right formula.

4 * a.atk - 2 * b.def
There is a * missing as well. 2 b.def is not a right formula.

4 * a.atk - 2 * b.def
yeah, had caught that after i hit send and editted it seconds after😀
yeah, had caught that after i hit send and editted it seconds after😀
Oh I didn't see that 😛 I thought you didn't notice, cause the original formula of OP had no * either.
@RTGMonika
and if that formula was a typo only here in the forum instead of in your game, we will need a screenshot of your skill to see its settings, and of the actor/enemy to check the values.

because there are dozens of ways how you could have done something wrong...
i didnt add the other *
theres no damage cause "atk" and "def" alone arent values by themselves. you need to use a and b to refer to the user and the target.
try "4*a.atk - 2*b.def"
that works for player abilities, but not enemy attacks
that works for player abilities, but not enemy attacks
Is it showing 0 damage?
that works for player abilities, but not enemy attacks
Elaborate? are enemies still doing 0 damage, and are the stats set up in a way that it shouldnt be the case with that formula?
that works for player abilities, but not enemy attacks
that WILL work for enemy attacks - it does work for anyone and everyone else.

which means that you have a different problem, and to find that we need the database screenshots I already asked for to find the problem: skill, actor, class and enemy for one case where the problem happens.
that works for player abilities, but not enemy attacks
Then your players DEF is too high, or your enemies ATK is too low.

Check your DEF in the game, and see if it is more than twice the ATK of the enemy.
Then your players DEF is too high, or your enemies ATK is too low.

Check your DEF in the game, and see if it is more than twice the ATK of the enemy.
oh yeah forgot to balance the stats thank you so much!
That is the hardest part of the whole development, though: Balance.

I changed my formula's, so they would always do damage, even when little attack tries to damage huge armor. The damage would be low, but never zero.

I did something like 10 * a.atk / b.def

In my case all stats, weapons and skills work just a bit different because of this. Meaning spells and skills will need stronger upgrades for higher levels.

An easier way to make sure your skills do damage, is to simply make a minimum:
Code:
Math.max( 10 , 4 * a.atk - 2 * b.def )

With this code it will always do 10 damage, or 4 * a.atk - 2 * b.def damage, depending on which one is higher.

Original thread: https://forums.rpgmakerweb.com/threads/attacks-and-abilities-wont-do-damage.162081/