MV Is there a way to cap the minimum damage for a weapon?

So basically There is this weapon in the game I am working on that you are supposed to replace due to it having 2 attack but if you wish you can actually not equip the dream sword which has 20 attack or if you ignore every hint towards that you could actually never even get it. I want it to at least be doable while still keeping defense at a normal point so is there any way to cap a weapons minimum damage?
Well, since damage doesn't come from weapons, but rather is calculated in your damage formulas, you could add || 1 at the end of all of your skills, that way it would always deal at least one damage.
Well, since damage doesn't come from weapons, but rather is calculated in your damage formulas, you could add || 1 at the end of all of your skills, that way it would always deal at least one damage.
I want it to deal 2 as the minimum.
I want it to deal 2 as the minimum.
Take a wild guess as to what you'd need to change...
in this case, they'd want to use Math.max(x,2) instead for the formula route.

assuming valid numbers are used, the || only uses the 2 if the value on the left is exactly 0 and would allow for 0-1 damage to be dealt if the calculations ends up resulting in 1 or a negative number. the engine rounds up negative damage values to 0, but that happens after the formula is evaluated.

I want it to at least be doable while still keeping defense at a normal point so is there any way to cap a weapons minimum damage
as mentioned, damage doesnt come from the weapon directly.
is it that you want all skills with that weapon specifically to have a damage minimum when equipped, all weapons to have a damage minimum and that weapon has a min of 2, only "attack" has a damage minimum when equipped with that weapon specifically, or attack has a damage minimum based on the equipped weapon?
If you want to set a minimum damage for all weapons, you alter the Attack skill. If you want to set it by weapon, give those weapons skill replacements. There are a few plugins that do that.

If you want it to be a flat 2, great. Or you could make it a.atk / 10, if you want a percentage to always go through. Or anything you want.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-cap-the-minimum-damage-for-a-weapon.179472/