Minimum/Maximum Damage Plugin?

So, I'm working on my game, and I'm wanting to make it so that MAT represents a sort of "damage variance" stat. Essentially, I'm wanting to have it so that for most attacks, the ATK stat is the minimum damage an attack can do. Then, the game adds a random number between 0 and the user's MAT.


In addition, I'd like to have it so that DEF lowers the minimum damage of an attack, but MDF lowers the possible MAT modifier.


Is there any plugin that lets me do this?
You don't need a plugin, the damage formula will do just fine actually.
You don't need a plugin, the damage formula will do just fine actually.
Ok, thanks! How do you make there be a random modifier for damage like this, based on the MAT stat?
Math.RandInt (min, max) or how the function is called. It can be found inside the core scripts, if I remember correctly.

Original thread: https://forums.rpgmakerweb.com/threads/minimum-maximum-damage-plugin.84198/