No. The existing scripts already have the actor id, so you just need to check for the "current" actor. You do not want to hardcode an actor id at all.
Start with this as a base, and expand on the first 3 methods as needed.
class Window_Base < Window def actor_mp_gauge_color1(actor) case actor.class_id when 1 text_color(x) when 11 text_color(y) else mp_gauge_color1 end end def actor_mp_gauge_color2(actor) case actor.class_id when 1 text_color(a) when 11 text_color(
😎 else mp_gauge_color2 end end def actor_mp_vocab(actor) case actor.class_id when 1 'SP' when 11 'EP' else Vocab::mp_a end end #-------------------------------------------------------------------------- # * Draw MP #-------------------------------------------------------------------------- def draw_actor_mp(actor, x, y, width = 124) draw_gauge(x, y, width, actor.mp_rate, actor_mp_gauge_color1(actor), actor_mp_gauge_color2(actor)) change_color(system_color) draw_text(x, y, 30, line_height, actor_mp_vocab(actor)) draw_current_and_max_values(x, y, width, actor.mp, actor.mmp, mp_color(actor), normal_color) endendIf you want to use the same term and colours for several classes, you can do this:
instead of listing them separately.On the lines that have text_color(), replace a, b, x, y with the index of the colours you want to use. These come from the palette in the lower right corner of the windowskin image, and the first one has index of 0.
So what happens is every time it goes to draw an MP bar, it will check to see what colours and term it should use. It will look at the class of the current actor, and if it's one of the 'special' classes, it will return that specific colour or term. If it's none of the 'special' classes, it'll return the default values.