hey so i was wondering if damage formulas can be in negetive numbers for example if you had a skill that does more damage the slower you are so i have a atk formula that goes like this
0 + a.atk * 3.5 - a.agi * -8.5 - b.def * 1.0
so will the game actually check how low the agi is doing damage calculation? or will something else happen?
no negative possible, that's why you have to select the damage type for recovering.
are you sure that neagtive doesn't work?
As far as I'm concerned, RPG Maker (i am using MV) evaluates the damage formula as a code, meaning u can use if else statements and custom codes.
You coud just say var i = (target.agi) * (-1); and operate with that value, couldn't you?
doesn't work that way, because then the enemy would heal you if your defense is greater than his attack (remember 4*a.atk - 2*b.def?)
You can use negative numbers inside the formula, but if the total result is negative it will be changed to zero after the damage evaluation is complete.
If the original question was about using agi inside the formula, then yes, you can use anything inside it (there are even commands to add states or if conditions inside the formula), but the final result after the formula is executed will always be positive or zero.