How to multiply Critical Chance and Evasion?

Uzi_Man

Veteran
Veteran
Joined
Jun 29, 2016
Messages
41
Reaction score
0
First Language
Spanish
Primarily Uses
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.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,600
Reaction score
6,552
First Language
Indonesian
Primarily Uses
RMVXA
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
 

Uzi_Man

Veteran
Veteran
Joined
Jun 29, 2016
Messages
41
Reaction score
0
First Language
Spanish
Primarily Uses
Awesome, thanks!
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top