That seemed to be the language used in YEP_EnemyLevels.js. Attachment related. Is that not correct?
Those are examples. The word enemy there requires an actual reference in your game to an enemy - it might be going off of a specific member of the troop,
Code:$gameTroop.members()[2].level
or in the case of the damage formula, the battler you're hitting is always b
Lack of JavaScript literacy makes it easy to second-guess one's self as to whether or not certain things hold true in certain cases or not, especially when the information comes from third-party sources that aren't specifically linked to RPGM. Do object names change per version? Does the damage formula box respect the same rules that JavaScript itself does? Do ALL parts of RPGM do so?
I understand where you're coming from, but to me it's just sensible to see that "RPG Maker MV/MZ uses JavaScript," so I'm going to use JavaScript information. There's no real reason to think it
wouldn't work unless, y'know, you try it and it doesn't
:wink:
And, again, there are certainly multiple sources of information about this which
are specifically related to RPG Maker. The basic operators are listed in the help file, there are several tutorial threads on here which discuss operators and some of the commonly-used math functions, etc.
I'm not trying to make you feel bad, I just didn't see how any of it was so hard to find that you had to express such uncertainty and frustration in your original post.
I'm glad you got it working the way you want.
As a side tip for troubleshooting - when things aren't working right, a helpful step is always to press F8 and go to the Console tab. Any code-related errors will print there - your formula should have generated errors for arctan not being a function as well as enemy being undefined.