Custom Attack Formula

Is there any chance for a relatively simple plugin that can let one easily replace the hit/defense formulae? Can't seem to find any that does this - basically, I'm looking for a plugin that lets me punch in a new formula in its entirety; variables, random numbers, etc. to replace the default mechanics.

Of course, I can't rule out the possibility that I'm merely a bit addled and managed to overlook a plugin that actually provides this, but I haven't seen anything. 😛
I don't think there is one, at least that I know of.

If you don't mind waiting a bit I can make you one, but do you want it on like a per actor basis? Or like a global formula used for all enemies and actors?
I'm in no great rush.

I was thinking of something global - naturally, separate formula boxes for physical and magical attacks, and probably items, too... A different formula for each actor *might* be a bit excessive.
Here you go: https://bitbucket.org/liquidize/anima-framework/raw/ca742c910a40e5c05ac8694787f6deebe4465c3b/Misc/Anima_CustomHitFormulas.js

Just edit the hit parameters in the parameters list. I didn't include "Certain Hit" as an option, because "Certain Hit" is..."Certain Hit" lol.

The below is a copy/pasted How-To from the file.

Code:
* If a formula is specified in the parameters, it will try to evaluate that* formula. If an error occurs it will return the default formulas. If no* formula is specified, it uses the default formulas.** The following variables are valid to use to obtain stats,and info on things:** VARIABLE : RETURNS** item = this.item(), the item/skill being used.* actor = the person using the skill or item* target = the person or enemy being targeted.* a = same as actor* b = same as target* subject = same as actor* s = $gameSwitches* v = $gameVariables** EXAMPLE:* (item.successRate * 0.01 * actor.hit)
...Four hours, and you've done it? You, Sir, are a prince among men!

Hum... I don't suppose this circumvents the "defense roll" mechanic, as well?
I haven't found the relevant segment in the default scripts, so I've been unable to tell whether it uses the old "check for hit/miss, then check for evasion" mechanic from earlier iterations...
It should completely overwrite how accuracy is handled other than the random generation to determine if the value is greater than the returned value of the formula.  To see the full original stuff, you can find it in the rpg_objects.js file, search for

Code:
Game_Action.prototype.apply = function(target) {
Thank you, again! 😀

Original thread: https://forums.rpgmakerweb.com/threads/custom-attack-formula.51465/