Attack Element Modifiers




This script allows you to set up "attack element modifiers". Basically, you can


1. Set up skills with multiple attack elements


2. Specify the attack element rate for each element


By default, damage calculations are done by first calculating the skill's "base" damage, then applying the elemental modifiers. An elemental modifier is the product of "elemental damage rate" and "elemental resist rate".


For example, if your fire damage rate is 100% and the target's fire resist rate is 25%, then the actual fire damage is 75%. If your damage was 100% fire, then that means the actual damage you inflict is reduced by the target's resistance.


Suppose you have a skill that inflicts both fire and earth elemental damage, and you want to make it so that the damage is 70% fire and 30% earth. With this script, it properly calculates the total damage dealt, after all elemental resistances have been applied.


If an enemy has no fire resistance and has 50% earth resistance, then your final element multiplier is equal to 70% from fire + 15% from earth, for a total of 85% of the skill's base damage.


Get it at Hime Works!
I was looking for a script like this, you never fail to please! Thanks.
The script has been updated to support all feature objects: actors, classes, weapons, armors, states, and enemies.

When the skill/item's damage element type is "Normal", it will use the user's attack elements to calculate the elemental modifiers.

For example, suppose you have a sword that deals 50% fire and 50% physical damage. If your target is immune to physical damage, your attack can still inflict 50% fire damage.

Realistically, if you're using a skill that involves using your weapon to hit the target (eg: attack, double attack, triple attack, strong attack, etc), your weapon's attributes should be taken into account.

Or if your actor was completely surrounded by fire, you would expect it running up to an enemy would deal fire damage.
hi i would like to use your plugin for commercial use. Is that ok?
like to use your plugin for commercial use. Is that ok?

Original thread: https://forums.rpgmakerweb.com/threads/attack-element-modifiers.21849/