YF Enemy levels in DMG formula?

Im trying to make a specific skill that does X dmg plus 10*user's level. I tried this an it does not work. http://www.yanfly.moe/wiki/Enemy_Levels_(YEP)

Code:
<Pre-Damage Eval>
var enemylv = enemy.level * 10;
var dmg = (value + enemylv);
value = Math.ceil(dmg);
</Pre-Damage Eval>
You can just use the normal formula box by adding a.level to your result. So if your normal formula is a.atk * 4 - b.def * 2, make it a.atk * 4 - b.def * 2 + a.level * 10
Any reason why you can’t use the damage formula box? I’ve used a.level there and it works with yanfly enemy level plugin.

edit: I got ninjad, lol

also you could try a.level instead of enemy.level in the pre damage eval
also you could try a.level instead of enemy.level in the pre damage eval

user.level should do the trick for the pre-damage eval
You can just use the normal formula box by adding a.level to your result. So if your normal formula is a.atk * 4 - b.def * 2, make it a.atk * 4 - b.def * 2 + a.level * 10

I set the damage to a.level * 10 and the enemy at level 1 does 5 dmg to me. It does not work lol
Is there anything else in your damage box? What's your damage variance set to? If I use a.level * 10 on a fresh project a level 1 enemy deals 10 damage, so something on your end is affecting it.
Is there anything else in your damage box? What's your damage variance set to? If I use a.level * 10 on a fresh project a level 1 enemy deals 10 damage, so something on your end is affecting it.
OMG Yes sorry!! I was testing it with a character who had gear that takes half damage from magic. It works perfectly now! Thanks guys for the quick response!

Original thread: https://forums.rpgmakerweb.com/threads/yf-enemy-levels-in-dmg-formula.124610/