Yanfly Critical Control question

jonthefox

Veteran
Veteran
Joined
Jan 3, 2015
Messages
1,433
Reaction score
595
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,522
Reaction score
14,255
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,092
Reaction score
1,508
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 Posts

Latest Profile Posts

Avery's Advent Calendar Day event has put me in a jolly mood, so I dug through my folders finished up some old generator pieces. Check my Fantasy Generator Expansion -Dwarfs! To see what I dropped.
Anyone else here think that closets are claustrophobic?
People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D

Forum statistics

Threads
105,872
Messages
1,017,121
Members
137,593
Latest member
narwhalkyrie
Top