Stat Limiter Issue?

Hi.

I'm using this Stat Limiter script along with SAS - Sapphire Action System. I also use a Stat Point Distribution system and set the limits to stat growth in the first script, to balance things. I set my Attack stat limit to 125, that way the player can't improve the stat past this limit - it helps me balance the game. There's an issue, however.
When enemies attack the player the game understands that their attack value is also capped at 125. So instead of a 500-atk enemy dealing 500 damage, they'll be dealing only 125.
I'm no expert at scripting and couldn't figure out a solution by myself, so i'm asking for help and tips.

I'd deeply appreciate any help!

I've moved this thread to Script Support. Thank you.

I'm guessing you just need to make separate limits for the enemies. Something like this should work:

Ruby:
class Game_Enemy < Game_Battler
  def param_max(param_id)
    # comment out any of the ones that should be the same as the ones set in the other script
#~   return 99999   if param_id == 0  # MHP
#~   return 99999   if param_id == 1  # MMP
    return 500    if param_id == 2  # Atk
#~   return 9999    if param_id == 3  # Def
#~   return 9999    if param_id == 4  # M-Atk
#~   return 9999    if param_id == 5  # M-Def
#~   return 9999    if param_id == 6  # Agi
#~   return 9999    if param_id == 7  # Luk
    return super
  end
end

Put that in a new slot below the stat limiter script.
I'm guessing you just need to make separate limits for the enemies. Something like this should work:

Ruby:
class Game_Enemy < Game_Battler
  def param_max(param_id)
    # comment out any of the ones that should be the same as the ones set in the other script
#~   return 99999   if param_id == 0  # MHP
#~   return 99999   if param_id == 1  # MMP
    return 500    if param_id == 2  # Atk
#~   return 9999    if param_id == 3  # Def
#~   return 9999    if param_id == 4  # M-Atk
#~   return 9999    if param_id == 5  # M-Def
#~   return 9999    if param_id == 6  # Agi
#~   return 9999    if param_id == 7  # Luk
    return super
  end
end

Put that in a new slot below the stat limiter script.
It worked. Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/stat-limiter-issue.123434/