I know that I can use a [x,y].max in the formula. But I want a minimum damage applied to ALL attacks as a percentage based on the attack-value-formula-part.
Let's say I have 100 attack, and the creature has 500 defense, then I still want to deal 20% of the attack-damage minimum. I also want the minimum percentage to be able to crit.
Formula: a.atk * 4 - b.def * 2
I cant extract the total a.attack from RPG::UsableItem:😀amage. Basically I need the 100x4=400, 400 *20% = 80 damage. Then multiply 80 by the crit modifier (if any).
I found this:
http://forums.rpgmakerweb.com/index.php?/topic/27240-setting-a-minimum-damage-using-percentages/
But then I have to manually put it in every single damage formula... And the little script does not provide a minimum damage percentage.
Basically some automated form of:
[a.atk * 4 - b.def * 2, a.atk * 4 * 0.2].max
P.S.
I wasn't sure if this belongs here or in script support/request.
Let's say I have 100 attack, and the creature has 500 defense, then I still want to deal 20% of the attack-damage minimum. I also want the minimum percentage to be able to crit.
Formula: a.atk * 4 - b.def * 2
I cant extract the total a.attack from RPG::UsableItem:😀amage. Basically I need the 100x4=400, 400 *20% = 80 damage. Then multiply 80 by the crit modifier (if any).
I found this:
http://forums.rpgmakerweb.com/index.php?/topic/27240-setting-a-minimum-damage-using-percentages/
But then I have to manually put it in every single damage formula... And the little script does not provide a minimum damage percentage.
Basically some automated form of:
[a.atk * 4 - b.def * 2, a.atk * 4 * 0.2].max
P.S.
I wasn't sure if this belongs here or in script support/request.