MV Questions about the Enemy Levels Plugin YEP

I'using the plugin of YEP, Enemy Levels, and I have an idea, if the diference between the actor level and the enemy levels is more thah 5, for example, the damage of that attack will be improve, in case of the actor level is higher, in case that the enemy level is higher, the damage will be down, only with that diference of levels, to allow the player finish quickly the battles with weak enemies. I'm using too the plugins Damage Core and Action Sequence, if that helps with my question.
Either work in the level scaling into your damage formulas or add it into the damage steps parameters of the damage core plugin
In the Lunatic Mode of Enemy Levels, include:

enemy.level

I try to put in the Damage Steps, an if comparing the a.level with the enemy.level, a simple comparation to prove it that works and I didn't see any change.
enemy.level
I try to put in the Damage Steps, an if comparing the a.level with the enemy.level
it wouldn't be enemy, it'd be b. a.level and b.level
Isn't work
Can you show exactly what you put into the damage steps?
if (item.hitType === 0) {
baseDamage = (((a.atk + a.level)/2)^(1/2))
} else if (this.isPhysical()) { // def instead of atk cause I'm using atk in other side.
baseDamage = ((v[31]^(1/2)) * (a.def^(1/2)))
} else if (this.isMagical()) {
baseDamage = ((v[31]^(1/2)) * (a.mat^(1/2)))
}
baseDamage /= ((b.mdf*8)^(1/2)) // mdf is my universal defense
baseDamage = Math.round(baseDamage)

if target.elementRate(user.currentAction().item().damage.elementId) > 1 {
if (target.isStateAffected(20)) {
wait: 1
} else {
target.addState(22)
}
}
if (baseDamage > 0) { value = this.applyDamageRate(value, baseDamage, target); }
if (baseDamage < 0) { value = this.applyHealRate(value, baseDamage, target); }
if (baseDamage > 0) { value = this.applyFlatDamage(value, baseDamage, target); }
if (baseDamage < 0) { value = this.applyFlatHeal(value, baseDamage, target); }

baseDamage *= this.calcElementRate(target);
value *= b.elementRate(item.damage.elementId);

if (!critical) {
if (this.isPhysical()) { value = this.applyFlatPhysical(value, baseDamage, target); }
if (this.isMagical()) { value = this.applyMagicalRate(value, baseDamage, target); }
}

value = this.applyVariance(value, item.damage.variance);
baseDamage = Math.round(baseDamage)
value = this.applyFlatGlobal(value, baseDamage, target);
baseDamage = Math.max(baseDamage, 1)

While I was proving the plugin of Passive States and Element Core I notice that a enemy that isn't weak to Ice Spells, suddenly was weak when my character have de Passive of Ice Boost, now I wanna know if Element Magnify and Element Amplify affect the damage of the spell or affect the Element Rate of the enemy, for my mechanic of One More, I cannot allow a Extra Action when attack some enemy without weakness.
When you're providing code here, place it within[CODE] [/CODE] tags. Regular forum text gets formatted and it can alter the code you provide. I cannot tell if some of them are actual errors in your damage steps or not because of it. For example:
if target.elementRate(user.currentAction().item().damage.elementId) > 1 {
if (target.isStateAffected(20)) {
wait: 1
} else {
target.addState(22)
}
}
I am unsure if that first if properly has parenthesis around its condition. If it does, then the forum text removed it. If it doesn't, then it's an error. That wait: 1 should cause an error regardless.

if (item.hitType === 0) {
baseDamage = (((a.atk + a.level)/2)^(1/2))
How did you determine that it is not working?
And to be certain, is the skill you tested to see if it works set to certain hit? its only going to look at the user's level if it is.

I wanna know if Element Magnify and Element Amplify affect the damage of the spell or affect the Element Rate of the enemy
Yes. The element core's magnify and amplify effects work by essentially changing the target's element rate used within calcElementRate(). If you want to have it work only off of the target's element rate, you can use getItemElements() to get the action's elements and get the target's element rates from the resulting array.

Original thread: https://forums.rpgmakerweb.com/threads/questions-about-the-enemy-levels-plugin-yep.179094/