hello,
I want to create a skill that amplifies the enemy element rates. What it would do is make the element weakness more potent, but also make their resistances stronger.
For example, enemy a takes 150% damage from fire, but 50% damage from ice.
After using the skill, they now take 200% damage from fire and 25% damage from ice.
The way I wanted to plan his was use conditional branches from check the enemies weakness and resistances and then apply states based on that.
Anyone know if that will work well, or if there is an easier way?
Skill that amplifies element rates
● ARCHIVED · READ-ONLY
-
-
You can probably do this from easier with Yanfly's damage core plugin or using states.
I'd probably do it a quick way using state that sets those things on the enemy.
Have a skill that applies the state.
Have the state apply the effects. Here I have it set to last until the end of battle but set how it wears off as you please.
-
This works for a standard, but I still need to check for the current element rates of the enemy. For instance (using the same example) enemy a is weak to fire and resist ice, so those rates would be changed.
However, enemy b resists earth and is qeaknto thunder so using the same skill would make their thunder weakness worst and their earth resist better.
Basically, I don’t want to add new enemy resists or weakness, I want to make their current weakness and resist more prolific. -
Hmm, the Formula box you can check the elemental rate with "b.elementRate(x) >== 0.5 ? 999 : a.mat*4;" but I am not sure if it can be altered.
I was able to use the Formula Box to take away perm hp from enemies using it, for Disintegrate, but HP is a param, not sure if ElemRate is -
This is something similar to what I was thinking. Basically, have the skill formula to determine what the enemy weakness and resistances are, and then store those in a variable.
Then call a common event with conditional branches to apply proper states depending on the variables.
My game has a lot of elements though, so it may be a long string of code... which is why I was wondering if there was an easier way....