Reduce damage only works per 10%?

I was playing around with damage reduction states, testing 5 different states, reducing damage by 5%, 10%, 15%, 20% and 25% on a 0% variance attack that deals 50. What I found is that with 5% reduction, it dealt the full 50, instead of 47-48 as it should have done. However, with 10% reduction, it deal the 45 damage as it should. With 15% reduction, it kept at 45 damage, then with 20% reduction, it went down to doing 40 damage.

Is this intended behaviour?
What's the formula?
I have a very easy and accurate way to do this, if you prefer using plugins (YEP Buffs & States Core).
What's the formula?
a.atk*10

The enemy has 5 attack, resulting in 50 damage under normal circumstances.

I have a very easy and accurate way to do this, if you prefer using plugins (YEP Buffs & States Core).
Sure. What is it?
If you are using YEP Buffs & States core, lets create a state which reduces damage with some note tags in its note box.
- First example, i will create a state which reduces 50% of all physical damage taken:
Code:
<Custom React Effect>
//Check if damage source is physical hit
if (this.isPhysical() && value > 0){
//value is the amount of damage dealt to you. 0.5 means 50%. You can change this
value = Math.round(value * 0.5);}
</Custom React Effect>

- Second example, i will create a state which reduces 50% of all magical damage taken:
Code:
<Custom React Effect>
//Check if damage source is magical hit
if (this.isMagical() && value > 0){
//value is the amount of damage dealt to you. 0.5 means 50%. You can change this
value = Math.round(value * 0.5);}
</Custom React Effect>

- Third example, i will create a state which reduces 50% of all Certain Hit damage taken:
Code:
<Custom React Effect>
//Check if damage source is Certain Hit
if (this.isCertainHit() && value > 0){
//value is the amount of damage dealt to you. 0.5 means 50%. You can change this
value = Math.round(value * 0.5);}
</Custom React Effect>

- Last one, i will create a state which reduces 50% of all damage taken (including Physical, Magical and Certain):
Code:
<Custom React Effect>
//Check if damage is more than 0
if (value > 0){
//value is the amount of damage dealt to you. 0.5 means 50%. You can change this
value = Math.round(value * 0.5);}
</Custom React Effect>
@JamesRyan Sorry, I forgot to specify it's a debuff, so it's meant to lower the damage output of those with the state applied on them. I'll only need the one that includes all types of damage.
So lower the damage dealt, not damage taken, right? It is also not too hard to do, and quite similar to those above:
Put this piece of codes into your state's note box and apply this state to the attacker:
Code:
<Custom Confirm Effect>
//Check if damage is more than 0
if (value > 0){
//value is the amount of damage you deal. 0.5 means 50%. You can change this
value = Math.round(value * 0.5);}
</Custom Confirm Effect>

"React Effect" works when you are the target, and "Confirm Effect" works when you are the attacker.
Thanks. Did a quick test, and it seems to be working. 😀 I'll be back if anything goes wrong during the more extensive tests, lol.

Original thread: https://forums.rpgmakerweb.com/threads/reduce-damage-only-works-per-10.94599/