100 of 100

The question of topic: How to limit to 100/100 all stats as ATC, DEF, MDF, etc, which have 255/255?

For example, if character has 90/100 DEF and use ring +20 DEF he should have 100DEF (as 100 it's the max), the same story should be if character use a skill, which increase his DEF (In any case DEF shouldn't be more than 100/100)
Well, stat limitation is made by editing a little some scripts. Go to the script editor (F11), and open up the Find all dialog (Ctrl-Shift-F). Then look for this:

def param_max(param_id)Let's say the limitation is only necessary for actors, so this is the code you'll see:

def param_max(param_id)    return 9999 if param_id == 0  # MHP    return super  endThe thing we'll do is adding two lines, this could use just one line, but let's try to simplify the coding. I will just copy the other definition for that method, which is in Game_BattlerBase, and it's used for enemies limitations. But we will change the values to our liking.

  def param_max(param_id)    return 9999 if param_id == 0  # this sets limit for MHP    return 9999   if param_id == 1  # this sets limit for MMP    return 100 # this sets limit for anything else (ATK, DEF, MAG... uh... whatever else!)  endAnd voilà, if there were no mistakes the limit would be now 100,

Orochii Zouveleki

EDIT: You're welcome.
Just tested. Thank you very much!! It's so simple and it works! BD
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/100-of-100.20617/