I'm trying to figure out how to use these plugins. I'm sure they'll do what I want, I'm just not sure what the correct formulas are to do something such as reference the actor's ATK. Let me give an example of what I'm trying to do.
Under Class entries, I'd like to add:
<Hit Flat: +x%>
where x = ((a.lev/4)+1) * 5
Under Weapon and Enemy entries, I'd like to add things such as:
<Hit Flat: +x%>
where x = (Math.floor((a.atk-10)/2)*5
or
where x = (Math.max(Math.floor((a.atk-10)/2), Math.floor((a.agi-10)/2))) *5
I'd be doing something similar with EVA under Armors and Enemies.
Basically, I don't know what the format is for referencing things like an actor's level or ATK. I know how it works in the damage formula bar for skills, and I know how it works in *some* plugins, but some of the YEP plugins use things like "user" instead of "a", and the description of the Lunatic Mode of this plugin is using a full "actor" instead of "a", etc.
I'm also using YEP HitAccuracy, although I don't think that should make any difference.
Thanks for any help!
Normally, Yanfly's plugins have instructions on what to use (user, a, actor etc) so you better check the plugin itself because which one you need to use depends on where it is used. For example, in the damage formula the user is defined by "a", in the battle flow other than the formula its normally referenced by "user".
As for other stuff like level, atk etc, you can check the base js files (RPG Objects I think) to see them all.
The thing is, any of Yanfly's Lunatic modes need you to have some fundamental knowledge of JS because its practically a small scale coding work, else you will really be at a loss. You'll end up needing help from someone everytime you want something to be added.
Anyway, for this particular plugin, you can learn about the different possible parameters and functions by looking into the base JS file that contains the handling of actors, classes etc which afaik is rpgobjects.js. I dont know if it will make sense to you, hopefully it will. Afaik there's also a github repository listing all of those, but I dont know the link.
After that you will still need some fundamental knowledge of JS so that you can actually write working formulas.
Thanks again. Unfortunately, most of the js file makes no sense to me. So far, I have been able to accomplish most of what I've needed to do with plugins to set up the database to work for my games without any Lunatic Mode or JavaScript. I anticipate that trend to continue, since I'm finishing up a few final touches on the real "brain surgery" part of my set up. After that, I should mostly be able to use the basic plugin settings and commands without needing JavaScript. In light of that, I'm trying to press on with the design rather than wait until I achieve proficiency in JavaScript (if I ever do; I'm doing some online learning, but I don't need it for anything except RPGMaker, which makes it feel like somewhat of a waste of time). Would you be willing to suggest a different subforum that might be more appropriate for me to ask these sorts of questions? I've looked around, but haven't been able to get a clear feel for which subforum is the best to place to ask that sort of thing.
Since its more of about actually learning JS (since what you learn here will be useful in general not just for this plugin), this might be better in the JS Learning BUT that is for the mods to decide, dont post another thread somewhere, just wait for them to move this one if needed.
Practically though, most of the parameters that you need would be the same as how they are written in the database, like level, atk, def and so on. But those are mostly only for the things that are hardcoded to the engine. Other stuff like skills for example are saved in an array, so you need to know the name of that array and the skill id.
You could retry opening the rpgobjects js file and search for "Game_BattlerBase", the basic variables/parameters you can use should be listed just below it, if not, also look for "Game_Battler" and/or "Game_Actor"
If you can learn even the basic flow of JavaScript, I think it will be really helpful especially in the long run and you'll realize how much more you can do when you can readily command the language.
Thanks. I think instead of worrying about plugin commands I don't know how to use, I'm going to focus mainly on using what I do know for my first (small) game, even if the results aren't perfect. Then maybe I'll know more JavaScript, and have more experience with the limits of what I can do without it, for the next game.
That's a good mindset, focus first on what you know and work your way up bit by bit