How to make skills with increased Critical rate?

For example, a skill like Slash in Pokemon? I tried messing with the cri in the damage formula but critical rate doesn't seem to be affected.

This is what I had in the formula

a.cri * 1.5; a.atk * 2.5 - b.def * 2

I messed with different numbers, even something as high as 10 (as it converts the decimal to a percentage iirc?)
You need a plugin to change the critical chance on a per-skill basis. I have a plugin (still unreleased) that offers a separate formula for critical chance, so that might be one option (provided I get time to polish it up for release); I think there's at least one other plugin out there that does something similar.
Ah, tha'ts a bummer. Then what is the "cri" used in the formula for? I'd like to make some sort of use for it at least.

And I'll keep an eye out for your plugin!
Well, your example formula didn't do anything with it, since everything before the semicolon had no effect on the ultimate result. You can use "cri" in your damage formula, sure, but only if you want the amount of damage to vary based on a battler's critical hit chance.
Doesn't cri in damage formula affect the critical rate or am I missing something?
Nothing in the damage formula calculation affects anything other than the amount of damage done. The purity of the formula isn't enforced, so you can do things like a.addState(4) and stuff, but "cri" just looks up what the battler's critical rate is, it doesn't have any effect on the rate.
Understood, thanks for the help!
If you want to temporarily boost the crit rate without any plugins, you can always try this approach: (not tested, but probably works maybe)

  1. Create a state with the desired crit boost. Make sure it expires after 1 turn or action or whatever so it goes away after the attack. You can give it an icon for testing purposes, but once you're certain it's getting added and removed as intended, get rid of the icon so it appears to happen behind the scenes.
  2. in your damage formula:
Code:
a.addState(x); YOUR_DAMAGE_FORMULA_HERE

And that should do it. Replace the "x" with the state ID of your crit bonus state and of course sub in your damage formula for the thing in all caps. The state should be applied before the damage calculation happens, boosting the skill's crit rate.
If you want to temporarily boost the crit rate without any plugins, you can always try this approach: (not tested, but probably works maybe)

  1. Create a state with the desired crit boost. Make sure it expires after 1 turn or action or whatever so it goes away after the attack. You can give it an icon for testing purposes, but once you're certain it's getting added and removed as intended, get rid of the icon so it appears to happen behind the scenes.
  2. in your damage formula:
Code:
a.addState(x); YOUR_DAMAGE_FORMULA_HERE

And that should do it. Replace the "x" with the state ID of your crit bonus state and of course sub in your damage formula for the thing in all caps. The state should be applied before the damage calculation happens, boosting the skill's crit rate.

That's a pretty slick solution, though if you do it that way you should definitely use "action end" for the removal on the state so that you don't end up going the rest of the turn with increased crit rate (which would affect things like counterattacks).
If you want to temporarily boost the crit rate without any plugins, you can always try this approach: (not tested, but probably works maybe)

  1. Create a state with the desired crit boost. Make sure it expires after 1 turn or action or whatever so it goes away after the attack. You can give it an icon for testing purposes, but once you're certain it's getting added and removed as intended, get rid of the icon so it appears to happen behind the scenes.
  2. in your damage formula:
Code:
a.addState(x); YOUR_DAMAGE_FORMULA_HERE

And that should do it. Replace the "x" with the state ID of your crit bonus state and of course sub in your damage formula for the thing in all caps. The state should be applied before the damage calculation happens, boosting the skill's crit rate.
I was thinking of going this route but I'm unsure how many states can be applied to a player character in MV? And if it's limited, if it would remove or cancel out the addition of other states or the critical state in question (quite a few enemies in my game can inflict multiple states as well as debuffs in certain enemy troops) Not too concerned whether or not to show the icon state, as I'd be hiding it like you mentioned.
Just want to point out that this is a pretty easy code change, and I do it all the time in Ace, though sadly I'm not sure of the exact syntax in MV because I've never had to do it in MV (and the documentation around this kind of stuff is bleh).

The method you would want to change is itemCri in rpg_objects.js:
Code:
Game_Action.prototype.itemCri = function(target) {
    return this.item().damage.critical ? this.subject().cri * (1 - target.cev) : 0;
};

You can create branching behavior based on whether a skill has a certain ID (just make sure no Items that can crit have the same ID, or you'll also need to check for whether it's a Skill or an Item). I am very unsure of the syntax for the "if" line, but it should at least give you a general idea of what needs to be done:
Code:
Game_Action.prototype.itemCri = function(target) {
    if (this.item().skillId === 138) {
        return this.item().damage.critical ? 4 * this.subject().cri * (1 - target.cev) : 0;
    } else {
        return this.item().damage.critical ? this.subject().cri * (1 - target.cev) : 0;
    }
};

In the case above, it would quadruple (4x) the Crit Rate for Skill #138 in your database. If you have a lot of skills that have different increased crit rates, then you could start the function out with a switch statement which sets a variable based on the Skill ID, and then multiplies the crit rate by that variable instead of "4" (if you need to know how to do this, just ask). Finally, if you wanted a skill to Auto-Crit (regardless of the target's Crit Evasion), I think you just want to return a 1, so the line for that skill would be return this.item().damage.critical ? 1 : 0;

You might already be happy with one of the solutions above, or someone might be able to deliver the correct code here (or mine might even work), but if you're still looking for it a few days from now, feel free to make a separate thread on the Learning JS board and ask for the correct syntax to check a skill's Skill ID within this method, and you'll almost certainly get a solid answer there.
Sweet, I'll be sure to take a thorough look in the morning! Also....

(and the documentation around this kind of stuff is bleh).
You can say that again! Lol.
And the documentation around this stuff is kind of bleh.

😉
I'm pretty sure there's no limit to the number of states that you can put on an actor.
Alternatively, you could use YEP_CriticalControl.

To give a skill its own Crit formula:
<Critical Rate Formula>

To give a skill its own Crit multiplier:
<Critical Multiplier Formula>

Edit: I just realized this plugin is paywalled now... Sorry, I'm really not used to Yanfly plugins not being free since I was able to get all 200 of his plugins before he retired. @.@
I'm a little curious what the difference is between those two?
I'm a little curious what the difference is between those two?
You mean crit rate vs crit multiplier? Crit rate is the chance they land a critlcal and crit multiplier, well that's the x2, x3, etc you apply to the damage if a critical hit happens.
Alternatively, you could use YEP_CriticalControl.

To give a skill its own Crit formula:
<Critical Rate Formula>

To give a skill its own Crit multiplier:
<Critical Multiplier Formula>

Edit: I just realized this plugin is paywalled now... Sorry, I'm really not used to Yanfly plugins not being free since I was able to get all 200 of his plugins before he retired. @.@
Yeah, that plugin seems like the best way to go. I plan to buy Yanflys entire plugin pack in the quite distant future but thought I'd post up to see if there's another way without a plugin (I really hope MZ makes, what I assume, fairly simple stuff like this already built in).
Appreciate the help regardless!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-skills-with-increased-critical-rate.123985/