[ACE] Adjusting Critical damage

Greeting rmvxa people!

I would like to ask a favor from anyone who willing to help me out to adjust critical damage. Because I'm a noob when it comes to scripting.

By game default setting, critical damage will be final damge x (n) <-- any number you want. But I would like the damage equals to attacker's atk with 10% var. The damage will ignore enemy's def stat.

One more thing, I also would like the damage to be boosted by variable set for each character. Let's say Eric is equipped with a Crimson Sword that has a abilitiy to increase critical damage by 20%. So the ability will set variable(n) to 20% for Eric's critical damage but for other character will not be affected.

Thank you for listening to my asking!
Does anyone happen to know?
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/ace-adjusting-critical-damage.37055/