You people and your damn events. :p
Cant_Level_Switch = 1
Cant_Level_Cap_Variable = 1
class Game_Actor
alias_method :seph_cantpasslevel_gmactr_exp=, :exp=
def exp=(exp)
if $game_variables[Cant_Level_Switch]
if self.level >= $game_variables[Cant_Level_Cap_Variable]
return
end
end
self.seph_cantpasslevel_gmactr_exp=(exp)
end
end
Just change your Cant_Level_Switch with the switch you plan to use to cap the level, and use Cant_Level_Cap_Variable with the variable will hold your max level.
So if you want to cap the level at 65, change your variable switch (in this case, variable 1) on, and set your variable (in this case 1) to set.