Okay, so i want to make a skill that bypass a defensive state. This state, for example, protect, reduce the physical damage. However, this skill overpass protect, and doesn't count the protect stat increment. I don't know what to add to the damage formula to make this skill. Any ideas?
Help with a skill that bypass a state.
RPG Maker MV SupportDamage formula's don't calculate stat defenses unless specified. States simply add features to battlers, so the state itself isn't really important. If a state modifies GRD (guard rate), PDR, or MDR (damage rates), you could neutralize said modifiers with some simple math.
Physical Attack: a.atk * 4 * (1.00 / b.pdr) * (1.00 / b.grd)
Magical Attack: a.mat * 4 * (1.00 / b.mdr) * (1.00 / b.grd)
Ideally you would want to make the guard rate neutralizer a conditional.
a.atk * 4 * (1.00 / b.pdr) * b.isGuard() ? (1.00 / b.grd) : 1.00
((Not sure on the syntax))
Or... use a damage manager plugin.
Physical Attack: a.atk * 4 * (1.00 / b.pdr) * (1.00 / b.grd)
Magical Attack: a.mat * 4 * (1.00 / b.mdr) * (1.00 / b.grd)
Ideally you would want to make the guard rate neutralizer a conditional.
a.atk * 4 * (1.00 / b.pdr) * b.isGuard() ? (1.00 / b.grd) : 1.00
((Not sure on the syntax))
Or... use a damage manager plugin.
Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-skill-that-bypass-a-state.79495/