My damage formula started playing up

Moe_Lester13

Veteran
Veteran
Joined
Nov 22, 2015
Messages
72
Reaction score
11
First Language
English
Hey guys, 

Just joined the RPGMaker Community. No problems so far and have been hacking away at my first game for a few days now.

I have been able to suss everything out just fine so far, except for one thing.

My regular attacks were working fine up until now. They went from their regular low range damage to a range of 5000-6000 damage.

Here's my formula for the attack command.

a.atk / ( b.def / 100 )

My attackers start off with 50 Atk.

Enemies Def will vary between 50 and 150 (more ease of scaling for my game).

I can only attribute it to being a formula fault, but having no JS experience (I'm an excel pro instead) something is just going over my head here.

Any help would be greatly appreciated.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
That formula is the same as 100* (a.atk/b.def)


So with a def that is much lower than the attack values, the damage will increase a lot.


However, it's not only the damage formula that affect damage - wrong settings in the traits/features can also cause strange damage.


And there are too many options to describe everything here.


Please post screenshots of actor, class, enemy and skill if you want better help
 

Mellye

Veteran
Veteran
Joined
Oct 24, 2015
Messages
347
Reaction score
279
First Language
Portuguese
a.atk / ( b.def / 100 )
The way your formula is set up currently, any defense value under 100 would increase the ATK, and if for some reason something had a really low DEF (a debuff, for example) it could cause really high increases. For example, a character with 50 ATK against an enemy with 1 DEF would cause 5000 damage.

You'd probably do better using something like this:

a.atk / (1 + b.def/100)This way, the total damage will never be higher than a.atk (it will always divide at least by 1) - and DEF will always reduce it proportionally.

Multiply the final result by something, if you would rather have higher damage numbers overall.
 
Last edited by a moderator:

Moe_Lester13

Veteran
Veteran
Joined
Nov 22, 2015
Messages
72
Reaction score
11
First Language
English
Okay, so without even changing anything, my damage came back to its usual 50-70 range. 

I apologize about taking up time and space on here.

Edit- see new post below
 
Last edited by a moderator:

Moe_Lester13

Veteran
Veteran
Joined
Nov 22, 2015
Messages
72
Reaction score
11
First Language
English
Sorry guys, she's back to playing up and flipping me the higher values again. My stats are high enough to not cause issues. 

Actor.jpg

Class.jpg

Attack Command.jpg
 

Mellye

Veteran
Veteran
Joined
Oct 24, 2015
Messages
347
Reaction score
279
First Language
Portuguese
Sorry guys, she's back to playing up and flipping me the higher values again. My stats are high enough to not cause issues. 
How much is that ATK, and how much is the Defense of your target? Any debuff, elemental weaknesses?
 

Moe_Lester13

Veteran
Veteran
Joined
Nov 22, 2015
Messages
72
Reaction score
11
First Language
English
How much is that ATK, and how much is the Defense of your target? Any debuff, elemental weaknesses?
60 a.atk. 100 b.def.

No Debuff's or Elements in play.

Just keeping it as simple as possible while I try to find the cause of my issue.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,540
Members
137,834
Latest member
EverNoir
Top