YF Enemy levels in DMG formula?

Icenick

Veteran
Veteran
Joined
Mar 28, 2012
Messages
410
Reaction score
61
First Language
English
Primarily Uses
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>
 

rainyday

Veteran
Veteran
Joined
Nov 5, 2019
Messages
73
Reaction score
44
First Language
English
Primarily Uses
RMMV
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
 

HumanNinjaToo

The Cheerful Pessimist
Veteran
Joined
Apr 18, 2013
Messages
1,226
Reaction score
603
First Language
English
Primarily Uses
RMMV
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
 

Icenick

Veteran
Veteran
Joined
Mar 28, 2012
Messages
410
Reaction score
61
First Language
English
Primarily Uses
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
 

rainyday

Veteran
Veteran
Joined
Nov 5, 2019
Messages
73
Reaction score
44
First Language
English
Primarily Uses
RMMV
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.
 

Icenick

Veteran
Veteran
Joined
Mar 28, 2012
Messages
410
Reaction score
61
First Language
English
Primarily Uses
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!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,446
Members
137,820
Latest member
georg09byron
Top