Between line 95 and 101 you should see this
def draw_actor_exp_gauge(actor, x, y, width = 120)
gw = width * actor.bar_now_exp / actor.bar_next_exp
gc1 = exp_gauge_color1
gc2 = exp_gauge_color2
self.contents.fill_rect(x, y + WLH - 8, width, 6, gauge_back_color)
self.contents.gradient_fill_rect(x, y + WLH - 8, gw, 6, gc1, gc2)
end
Replace that with this:
def draw_actor_exp_gauge(actor, x, y, width = 120)
if @actor.level <= 98
gw = width * actor.bar_now_exp / actor.bar_next_exp
else
gw = width * actor.bar_now_exp
end
gc1 = exp_gauge_color1
gc2 = exp_gauge_color2
self.contents.fill_rect(x, y + WLH - 8, width, 6, gauge_back_color)
self.contents.gradient_fill_rect(x, y + WLH - 8, gw, 6, gc1, gc2)
end
All that will do is prevent the error. But if you want the gauge to display exp at max or something, you'll need to ask for that, I'm not familiar enough with RGSS to figure out how to do that.