New account registration is temporarily disabled.

[RMVX ACE] BUFFS, DEBUFFS NOT WORKING.

Posts

Pages: 1
Hey all! In my game I noticed that buffs nor debuffs were actually working especially in the MDF and DEF department, it's like my game ignores any changes to defense made in battle. Not even states could change the damage to a greater amount if the foe's defense was lowered.

I messed around with my damage formulas
but I had either two results, one. The game would count any attack
as immune or 2, it would ignore defense buffs and debuffs.

I've seriously spent 5 hours today trying to figure out what
the problem is, I've experimented with everything, can anyway help me?


My Physical Damage Formula: I'm Using: a.atk * 4 - b.def / 999
My Magical Damage Formula: 290 + a.mat * 4 - b.mdf * 2/999


I haven't tested it or anything, but I'm guessing it's that /999. If atk/def are also integers then it'll do integer division and can result in 0. Like if you have 50 DEF, 50 / 999 is 0.05, but with integer division that remainder is dropped and it becomes 0. If you change that 999 to 999.0, that makes it a floating point number instead of an integer and 50 / 999 will become 0.05 instead of 0.

Again, haven't tested but try that and post if it did the trick or not.
Marrend
Guardian of the Description Thread
21806
A result of or "immnue" feels a bit off to me, but, ignoring DEF and buffs/debuffs to DEF makes a lot of sense. Consider the order of operations (PEMDAS) of your formula.

There's no parenthesis, or exponents to resolve, so next would be multiplication and/or division. So, it would evaluate a.atk*4 and d.def/999. I don't pretend to know how high DEF can go (999 is the hard-coded limit for characters, and perhaps monsters, in Ace), but, that division operation is probably returning 0 because of integer division, as GRS is pointing out. That means the equation should ultimately return whatever a.atk*4 is!

As to how you're getting an "immune" message, that's the part that confuses me. My current guess is that there's an elemental immunity in play. There's also some kind of parameter that can set a multiplier on physical or magical damage. Though, I don't remember off-hand what they are called, or what type of parameter they are.
Pages: 1