Where can I change it? Thanks!
MZ Critical hit multiplier?
Javascript/Plugin SupportI am not familiar with the codebase of MZ, but after some digging I found this function
in line 1970 of rmmz.objects.js:
You could save this code in a plugin and change the formula to anything you want.
If you want to use character parameters in the formula,
use this.subject() for "a" and target for "b".
Example:
Bonus:
If you also want to change of critical hit rates are calculated;
(Line 1888 in rmmz.objects.js)
in line 1970 of rmmz.objects.js:
JavaScript:
Game_Action.prototype.applyCritical = function(damage) {
return damage * 3;
};
You could save this code in a plugin and change the formula to anything you want.
If you want to use character parameters in the formula,
use this.subject() for "a" and target for "b".
Example:
JavaScript:
Game_Action.prototype.applyCritical = function(damage) {
return (damage * 2) + (this.subject().agi * 1.25);
};
Bonus:
If you also want to change of critical hit rates are calculated;
(Line 1888 in rmmz.objects.js)
JavaScript:
Game_Action.prototype.itemCri = function(target) {
return this.item().damage.critical
? this.subject().cri * (1 - target.cev)
: 0;
};
Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/critical-hit-multiplier.137334/