I'm currently trying to make a combat system based around "Breaking one's Balance", and as a state to accompany that, i've been trying to make a state that grants critical hits to the attacker. I've tried fiddling with the crit evasion, but it didn't always result in critical hits on the recipient. Do i need JS or plugins to make a special effect? or should i just try another approach?
How to make "Vulnerable" state (state were every hit landing on affected battler is critical)
RPG Maker MZ SupportCritical evasion just prevents critical hits, and is only used as a roll to see if you dodge one. Lowering it will not force crits.
You will need another approach of some sorts. Most use plugins for this. All methods I've seen for this use a plugin at least.
You will need another approach of some sorts. Most use plugins for this. All methods I've seen for this use a plugin at least.
Just fill your project with VisuStella plugins and use Battle Core <JS Critical Rate as Target> state notetag to set the final crit rate.
A plugin would probably be convenient here. However, you might not actually need one. It depends exactly what you're trying to do.
By default the crit chance is determined by seeing if a random number in the range [0, 1) is less than the "crit threshold" (rmmz_objects.js):
So, for a crit to be possible without plugins:
E.g. a skill that can crit being used by someone with 5% CRI will always crit if:
=>
=>
I.e. the target must have -1900% CEV or less to ensure a crit in that case. The editor only allows down to -1000% CEV per trait, but you can add multiple traits as needed.
By default the crit chance is determined by seeing if a random number in the range [0, 1) is less than the "crit threshold" (rmmz_objects.js):
JavaScript:
Game_Action.prototype.itemCri = function(target) {
return this.item().damage.critical
? this.subject().cri * (1 - target.cev)
: 0;
};
- The skill/item must be marked Critical Hits: Yes in the database.
- The subject must have a Crit Rate parameter (CRI) not equal to 0.
- The target must have a Crit Evasion parameter (CEV) not equal to 1.
E.g. a skill that can crit being used by someone with 5% CRI will always crit if:
0.05 * (1 - target.cev) ≥ 1=>
1 - target.cev ≥ 20=>
target.cev ≤ -19I.e. the target must have -1900% CEV or less to ensure a crit in that case. The editor only allows down to -1000% CEV per trait, but you can add multiple traits as needed.
I was logged out and didn't see these. Thank you very much!!
Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-vulnerable-state-state-were-every-hit-landing-on-affected-battler-is-critical.180331/