Damage Formula working for my character but not enemies - they're hitting 0 damage every time?

lvkennelly

Villager
Member
Joined
Jun 1, 2014
Messages
22
Reaction score
5
First Language
English
Primarily Uses
So I'm using the damage formula a.atk - b.def * 1.32 which is working fine for my characters but when the enemies attack, they're hitting 0 damage every time and I cannot for the life of me work out why! I've calculated all the numbers in the formula to check they work and they always work as I've predicted for the character but not for the enemy. I've checked that my character has a hit rate and all that stuff I cannot work out what I'm doing wrong? I'll put some screenshots if anyone can work it out I'd be really grateful!

Example of stats I'm using:
my character:
atk - 16
def - 16

enemy:
atk - 30
def - 6

So I've worked it out with the formula my character should do about 8.08 damage (which he does) and the enemy should do about 8.88 damage 30 - (16 * 1.32, which is 21.12) so 30 - 21.12 = 8.88 but it's doing 0 every time?
 

Attachments

Pine Towers

Knight Hospitaller
Veteran
Joined
Nov 11, 2015
Messages
467
Reaction score
226
First Language
Portuguese
Primarily Uses
RMMV
Could the playtest actor be equipped with some armor that increases DEF?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,672
First Language
German
Primarily Uses
RMMV
can you give a screenshot of the skill as well? it might be something there.

One additional comment: the add skill attack on the enemy is completely without function, the enemies are using the attack pattern for their skills and don't even have a list of learned skills where that trait would be added
 

lvkennelly

Villager
Member
Joined
Jun 1, 2014
Messages
22
Reaction score
5
First Language
English
Primarily Uses
Thanks for the help both of you! :D I still can't work out what's wrong with it, but I created a new attack skill solely for enemies to use with a different formula (a.atk * 5 / b.def * 2.2) and that seems to work fine for some reason! But I'm still curious why the same formula for the player doesn't work! I'll attach the attack skill I was talking about before! And thanks Andar, I did think that! Just added it then as a last desperate attempt to try and make it work not that it had any effect haha!
 

Attachments

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,855
Messages
1,017,012
Members
137,563
Latest member
MinyakaAeon
Top