Custom Skill Formula if Crit

can I make a formula that adds and additional effect on crit.

a.crit? tp += 5

Everything I can tried has resulted in damge = null
You could do:

b.result.critical ? 1000000 : regular formula

for a different effect or:

if b.result.critical; something; end; regular formula

for an additional effect
You could do:

b.result.critical ? 1000000 : regular formula

for a different effect or:

if b.result.critical; something; end; regular formula

for an additional effect
Fomar... You are the master of combat formulas I read your combat formula tutorial earlier.

Any chance you can include a sample list of things that can be used in the formula box in your tutorial?

I would never have thought of .result.critical nor do I know where I could find it out > <

something like that included in your tutorial would be awesome!

are the .things methods?
b is the defender where the damage is calculated

result is an object of type Game_ActionResult

critical is an attribute of that object.

I keep meaning to copy further examples in to the first post, maybe one day I'll get around to it.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/custom-skill-formula-if-crit.16417/