How to make a character have a chance to do normal and double critical damage?

What i mean by this is for example: lets say we have a character named Shroud and he has a 10% base chance to crit and when he does crit he will deal 1.7 times the regular damage. But he also has half of his base crit a ( in this case 5%) chance to do double crit which would deal 2.5 times normal damage. Basicaly i got the idea from one now dead mmorpg called Marvel heroes, double crit there was called brutal strike and it would deal more damage than normal crit.
This is how I understand how it works in Marvel Heroes:

*Critical Hit Chance is the chance for you to do extra damage on top of your base damage.

*Critical Hit Damage is how much extra damage you'll do when you 'crit' on top of your base damage.

*Brutal Strike Chance is a double crit. So the game rolls to see if you crit then rolls to see if you brutal. You can't brutal before you crit, so when focusing on building your toon, your crit hit chance should be higher.

*Brutal Strike Damage is how much extra damage you'll do when you brutal strike above base and crit damage.

Is there any way to possibly recreate this in rpg maker mv? I have all YEPs plugins if its of any help.
Thx in advance any help is appreciated.
not directly - it is possible, but will require either a big rewrite of the damage sequence or a lot of eval notetags with javascript.

Please start here, with the default damage flow:

what yanfly's plugin do and allow is adding javascript code at specific parts of that damage sequence.
so you would have to add your code for testing a brutal strike somewhere and then storing that result, modifying the damage when it comes to processing it.

sorry, I can't give you the code for that, but this should be a start to understand how it is done.
You can just at the start of every turn in combat run a Common Event that rolls the chances for the critical and brutal strikes to occur, and switch in/out versions of those skills accordingly. Example:

Character always has the normal version of the skill equipped by default. At the end of each turn, the Common Event rolls a random variable (1-20) if it's a 5% chance. If it lands on the 5%, it unlearns the default skill and equips the critical version of the skill. Then it'll run another check for the brutal strike. If it rolls in favour of the brutal strike, switch out the critical skill for the brutal version of the skill. If it fails both checks, unlearn the enhanced versions of the skill and switch to the normal skill again.
You could do what Milennin suggests. The downsides to that are the additional work in making multiple versions of the skills and...I know it's not different for the player, but it feels like stacking the deck to me, to say the results of your attacks are determined ahead of time 😛

To do this more organically (and rather more easily on your part), you can use Yanfly's Auto Passive States and Buffs & States Core. Give your actor a passive state, and add this notetag:
Code:
<Custom Confirm Effect>
if (this.isForOpponent() && target.result().critical && Math.random()<.06)
    value*=1.5;
</Custom Confirm Effect>

Replace the number after Math.random with whatever percentage you like, and do whatever you like with the value multiplier (I used your example of going from 1.7 to 2.5).
I don't have enough scripting knowledge to advise on creating a separate stat for Brutal Chance, but I managed to set up a fairly simply scripted chance for a Brutal Hit in the Normal Attack notes using Yanfly Skill Core:


Code:
\\Pre-Damage Eval can be used to change the calculated damage before it hits
<Pre-Damage Eval>
\\Check if the attack was a critical
if (target.result().critical) {
\\Generate a random value 0-4 for variable 'brut'
var brut = Math.floor(Math.random() * 5);
\\The critical hit will do twice as much damge if 'brut' is equal to 0
if (brut == 0) {
value = value * 2
\\Otherwise it will do standard crit damage
} else {
value = value * 1
}
}
</Pre-Damage Eval>

This means there is a 20% or 1 in 5 chance that a critical hit is brutal hit. If you wanted 25% you would just do (Math.random() * 4) or 50% would be (Math.random() * 2). Math.floor().

If you wanted the damage of a brutal hit to scale, or have the brutal chance to scale, you'd have to do more complicated scripts. I think your biggest challenge there would be incorporating stats that aren't already present, in which case I'd look into use something like Yanfly's Actor Variables, which does cost money.
And this is why i really love Rpg maker community, ty everyone for your help!
I was testing today both ATT-Turan and Aphotic suggestions and both work perfectly.
Thx alot guys now i can implement this mechanic in my game and classes like archer and assassins that relly more on crit rather than on raw power can be interesting. You guys are the best!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-character-have-a-chance-to-do-normal-and-double-critical-damage.149980/