Yanfly Critical Control question

jonthefox

Veteran
Veteran
Joined
Jan 3, 2015
Messages
1,431
Reaction score
593
Primarily Uses
There's a field that says "Flat Critical Formula" and by default it has some formula that seems to add a bonus based on the user's luk and the target's luk.

If I were to remove the default formula, and instead put this: value += target.maxhp * 0.1

Would this make it so that on a critical hit, 10% of the target's maxhp is added to the damage? And would this damage be factored in AFTER the normal damage formula?
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,512
Reaction score
14,241
First Language
English
Primarily Uses
RMVXA

I've moved this thread to Plug-In Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,039
Reaction score
1,471
First Language
EN
Primarily Uses
RMMZ
Plugin link for reference: http://yanfly.moe/2015/11/08/yep-26-critical-control/

It's mhp, not maxhp; otherwise you have the right idea! :kaojoy:

The default formula reads:
Code:
value += ((baseDamage >= 0) ? 1 : -1) * 1.5 * user.luk + bonus;
This says "if the skill does damage, start with a value of 1, else (healing) start with a value of -1; then multiply by 150% of the user's luk stat before adding any bonus flat crit". Actually, that's odd, I wonder why the bonus (from notetags) isn't being multiplied by +|- 1? :kaoswt2:

Anyway. So, if you're using any flat crit notetags then you may want to consider a formula like this instead:
Code:
value += target.mhp * 0.1 + bonus
...and if you have any crit-enabled healing skills, maybe extend that:
Code:
value += ((baseDamage >= 0) ? 1 : -1) * (target.mhp * 0.1 + bonus)
And yes, by default the flat crit is step 81 in Damage Core (prerequisite), whereas crit multiplier is step 31, so flat crit applies after crit mult unless you've changed that. :kaophew:
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

rux
Just 80% of my motivation on game making lmao, anyone got tips on how to not be unmotivated?
I've signed up for a job training program for people with Asperger's Syndrome. I went to a "test run" today so they could see how well I did with simple jobs, and I amazed them. Most new people do it in 30+ minutes, while I finished in a mere 15 minutes. Gives me time to work on a screenplay for Studio MDHR...
People,I have seen that Someone from China/Chile and London is doing a Vaccine Against COVID-19.
Doing anything that yield good result in the long run is like sowing seeds. With proper care, they will grow and bear fruits. I'm excited for tomorrow. :D

Forum statistics

Threads
105,455
Messages
1,013,840
Members
137,105
Latest member
twilightprincess
Top