Attack Element Modifiers

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
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,564
Reaction score
3,846
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

Villager
Member
Joined
Dec 8, 2019
Messages
21
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
2,660
Reaction score
563
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 Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top