Attack Element Modifiers

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,230
Reaction score
3,072
First Language
English



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!
 
Last edited by a moderator:

Jarrad

Broke College Student
Veteran
Joined
Mar 17, 2013
Messages
821
Reaction score
44
First Language
English
Primarily Uses
I was looking for a script like this, you never fail to please! Thanks.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,230
Reaction score
3,072
First Language
English
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.
 

Joka

Warper
Member
Joined
Dec 8, 2019
Messages
3
Reaction score
1
First Language
English
Primarily Uses
RMMV
hi i would like to use your plugin for commercial use. Is that ok?
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
1,853
Reaction score
408
First Language
English
Primarily Uses
RMVXA
like to use your plugin for commercial use. Is that ok?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Oh, stop with the Melodrama...

...Listen to it instead!

anybody else like getting baked whilst coding?

When you go to the beach watch out for coconuts. Coconuts are more dangerous than sharks. Fact.
Try to get into pixelart again, so far its a sucess.
Also finally found a useful pixeltutorial which helps a lot.
♫ Anyone knows an ant can't move a rubber tree plant, but he's got high hopes, he's got high hopes, he's got high apple pie in the sky hopes ♫

Forum statistics

Threads
93,615
Messages
913,983
Members
123,180
Latest member
tdominach
Top