problems with basic attack

Downloaded the trial version of mv, and enjoying it so far

anyway, im having problems with a damage formula for the attack skill. the formula is ((a.atk*2.4))/((b.def/2.4))
a charecter with 30 attack attacked a charecter with 25 deffense. the number should have returned 5 or 6, but it returned 1. in frustration i boosted there attack to 40 and tried again. it returned 2

They have a skill with ((a.atk*4))/((b.def/4)) and it's returning around 19

Why is it only the basic attack skill that's doing this?
the number should have returned 5 or 6, but it returned 1
No, it shouldn't.

EDIT: Nevermind, my bad 😀 I mistook a divisor for a multiplicator.

I think though that there is a mistake in the equation. Because computers don't make numerical mistakes. Mind sharing some screenshot?
(If I substitute your first equation for a.atk * 2.4 / (b.def * 2.4), it checks out, so I think your equation actually looks like
a.atk * 2.4 / b.def / 2.4 - missing important brackets.)
How do i take a screenshot on windows 10?
Perhaps press Print screen?
In earlier versions of Windows I always pressed print screen and then copied it in microsoft paint or something... with Win 10 I use Lightshot though, since it allowes me to take only a small portion of the screen.
mv_battle_ss.png

screenshot_mv.png
I can confirm it works 100% alright for me. From the screen the equation looks alright too. What about armor, is there some armor that raises their def?
you cant put armor on enemies
Well, you can, through plugins. So I asked preemptively.

What if you substitute the b.def / 2.4 with b.def * 2.4 instead? Does it change anything?
The damage goes down to 0

Edit: Even if i boost the charecters attack
In that case let's take a look at whether the attack and defence check out.

Code:
console.log ([a.atk, b.def, ((a.atk*2.4))/((b.def/2.4))]); ((a.atk*2.4))/((b.def/2.4))
I have added a bit of console logging to the front of your damage formula. In battle if you then open the dev console (f8) and attack, you should see a couple of arrays pop up. They will contain the attack of the attacker, the defence of the defender and the equation. See if it checks out. If it does, then I'm officially out of ideas as I cannot replicate the issue.
It does. I think i found the issue. I copied and pasted it from a boss that has a 20% paramater on physical damage and changed the stats and skills, but forgot to change the parameter >.<. I guess this thread can be deleted
That definitely sounds possible 😀
Tech Support is for troubles with the engines themselves, not with issues with battles or events.

I've moved this thread to MV Support. Thank you.


But since you say you found the issue...

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/problems-with-basic-attack.112743/