How to set max stat limits

How do i set certain character stats to certain limit so that equipment, enhancers, etc. won't rise them higher?

My plan is to set MP cap to 500, Strength, Magic, Defense, Magic Defense, Agility and Evasion cap to 255, and Luck to 100. Max HP cap doesn't matter
VisuStella Core Engine plugin has a <param Max: x> notetag that you can use on actors or classes. I think it does what you want.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-max-stat-limits.164529/