# How to make separate elemental damage?

#### Randor01

##### Veteran
Hello. I was wondering if there is a way so that, if a weapon is a specific element, it deals additional damage based on that element rather than converting all damage under that element.

I'll try explaining myself better with an experiment: Let's say that we have a Fire Sword. This weapon when attacking deals 10 Slashing damage, plus 4 Fire damage.
In this case we attack a zombie. Zombies have 50% resistance to Slashing damage, but have a 100% weakness to Fire damage. So, when we attack it with the sword, we would deal a total of (10-5)+(4+4) = 13 damage.

Is there a plugin or known method to implement something like this?

#### Andar

##### Veteran
not possible by default, it requires a plugin that changes the way damage is handled.
and while I know that there are a few plugins that do this, I don't know if their way of handling damage is the same that you want.

you'll have to describe what you want in plugin request forum.

#### micoomer

##### Villager
Yanfly Element Core allow you to utilize more than one element at the time.

#### Trihan

##### Speedy Scripter
As Andar said, this will require a plugin. Every plugin I currently know of that allows for multiple elements applies them multiplicatively rather than calculating resistances separately. You might be able to do something like this with YEP plugins and lunatic mode, but other than that I'm not aware of an existing plugin that does what you're asking for.

#### RicardoxRyu

##### Warper
Why not trying this?
10 * b.elementRate(x) + 4 * b.elementRate(x)

One x is for slashing
Another x is for fire

#### Andar

##### Veteran
Why not trying this?
10 * b.elementRate(x) + 4 * b.elementRate(x)

One x is for slashing
Another x is for fire
because the total would still be multiplied by the element rate set for the entire skill

#### Randor01

##### Veteran
because the total would still be multiplied by the element rate set for the entire skill
I actually think he might be onto something. If i use that method along with Yanfly's Damage Formula, i can remove the elementRate from the standard damage formula and only use it inside the attacks.

### Latest Profile Posts

I might not participate in the Boss Battle contest after all... I have more important things to do, like Wishful Wanda. And of course the Dark Deception spinoff I plan to pitch, Demon Slayer.
Changed my avatar, goodbye Alan Sugar, hello George Carlin (one of my favorite human beings ever)
If you still don't subscribe our Polish channel please consider it
Who wants to see my review of the worst star wars movie? This movie has all the excitement of being on Jury Duty of the most boring case ever about trade negotiations.
A lot to learn to make a game. Can I handle it?