How to multiply Critical Chance and Evasion?

I want to boost the Ex-parameters CRI and EVA, not by a flat percentage amount but by a factor (for example, the skill Power-Up multiplies the user's critical chance by 2, which means if he had an innate crit chance of 5%, it goes up to 10%, if he had 10% then it goes up to 20%, and so on). Same with EVA.

I wanted to use control variables to modify these values but Ex-parameters aren't listed there. Anyone knows a solution to this? Thanks in advance.
To modify hidden params, you definitely need script. To achieve this in (might not so) simple solution, will be putting this snippet into your script editor
Code:
class Game_BattlerBase
 
  def cri
    state?(state_id) ? xparam(2) * 2 : xparam(2)
  end
 
end
Replace the state_id with your power up state ID. So when the a battler has the state, the chance of critical attack will be doubled

If you want to do the same with EVA, add this one as well
Code:
class Game_BattlerBase

  def eva
    state?(state_id) ? xparam(1) * 2 : xparam(1)
  end

end
The formula can be changed as much as you want actually, but you definitely need scripting skill
Awesome, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-multiply-critical-chance-and-evasion.87365/