MV Flat Element Rates

Is there some way of changing Element Rates from percentages to flat modifiers?
image_2025-06-07_063717623.png

For example: increasing or decreasing the damage of a certain element by a static value of 100.
I tried looking around but didn't find any plugins that achieved this.

Thanks in advance.
You can at least use Yanfly (passive) states notetags to do that. Like check the element of the attack and subtract 100 from 'value'.
Just keep in mind that there is a reason why the rates are multiplicative percentages, and if you change that you'll have to consider the consequences.

It's basically mathematics - with multiplicative percentages there is no way how the damage result can become negative or zero.
But as soon as you substract fixed numbers, the final result of the damage can become negativeif enough modifiers are added together, and that can break the battles (either literally by crashing or metaphorically by breaking any balance)
You can at least use Yanfly (passive) states notetags to do that. Like check the element of the attack and subtract 100 from 'value'.
It can do that? The plugin page makes no mention of states, so I'm guessing it requires a custom script? If that's the case, I don't know how to check for elemental damage.

Just keep in mind that there is a reason why the rates are multiplicative percentages, and if you change that you'll have to consider the consequences.
Yeah, I saw another post that involved changing the code directly, but it caused numbers to go into the negatives and heal the targets instead of dealing no damage.
Wouldn't it be possible to make some form of work around for this? I ask because high defense obviously doesn't cause this interaction.
You can at least use Yanfly (passive) states notetags to do that. Like check the element of the attack and subtract 100 from 'value'.
It can do that? The plugin page makes no mention of states, so I'm guessing it requires a custom script? If that's the case, I don't know how to check for elemental damage.
yanfly's passive plugin has their buffs and states core plugin as a requirement, and that plugin has the notetags that'll let you do what you wanted.

Code:
<Custom React Effect>
if (this.isDamage() && value > 0 && this.item().damage.elementId === 2){
  value += 100;
}
</Custom React Effect>
that should make any damage the affected battler take be increased by 100 provided that the action's set element's id is 2 and the action does damage

Code:
<Custom React Effect>
if (this.isDamage() && value > 0 && this.item().damage.elementId === 2){
  value -= Math.min(100, value);
}
</Custom React Effect>
and that subtracts it, but would prevent it from going negative and turning it into a heal if it does less than 100 dmg
<Custom React Effect>
if (this.isDamage() && value > 0 && this.item().damage.elementId === 2){
value -= Math.min(100, value);
}
It works! I though I was doing something wrong but there was actually a small error in your code (you added an extra closing bracket).

Thank you, Robro!
there was actually a small error in your code (you added an extra closing bracket).
good catch 🤣
ill edit the post to correct it if someone finds this in the future.
Wouldn't it be possible to make some form of work around for this? I ask because high defense obviously doesn't cause this interaction.
That is because they are different parts of the calculation process.
The damage formula itself has several safety checks, because a developer can obviously put any and all nonsense inside it.
But the element rates are outside that safety framework as you are not supposed to change their mathematics.

it's the same with event commands and their script equivalents. That list is available for most makers because using the script equivalent you can bypass several event command limitations - but as soon as you do, you're also bypassing the safety measures of the event commands.

you can install new safety margins with plugins that change the engine, but that is a lot more complex than simply taking care of the limits manually - which is why almost no one does that.

Original thread: https://forums.rpgmakerweb.com/threads/flat-element-rates.178158/