Galv Menu Themes + Remove MP Script compatibility snippet request

Good Morning / Day / Afternoon / Evening everyone.

I'm using this script to remove MP from a certain actor for my game. The script works perfectly in the battle window but it still shows his MP on the menu because there is probably some incompatibility with Galv's menu themes




Is there a way the MP can be removed for the Menu Engine too?

Any help is appreciated.
Try this (with the notetag that was mentioned
Ruby:
class Window_Base < Window
    
    alias custom_bar_draw_actor_mp draw_actor_mp
    def draw_actor_mp(actor, x, y, width = 124)
        if actor.remove_mp?
        else
            custom_bar_draw_actor_mp(actor, x, y, width)
        end
    end
    
    alias custom_bar_draw_actor_tp draw_actor_tp
    def draw_actor_tp(actor, x, y, width = 124)
        if actor.remove_tp?
        else
            custom_bar_draw_actor_tp(actor, x, y, width)
        end
    end
    
  def draw_gmp(actor, x, y, width = 124)
        if actor.remove_mp?
        else
    draw_gauge(x, y, width, actor.mp_rate, mtheme::MP_COLOR1, mtheme::MP_COLOR2)
    change_color(system_color)
    draw_text(x - 30, y + 7, 30, line_height, Vocab::mp_a,2)
    draw_current_and_max_values(x, y + 3, width, actor.mp, actor.mmp,
      mp_color(actor), normal_color)
        end
  end
    
end

class Game_Actor <  Game_Battler

    def remove_tp?
        note = $data_actors[@actor_id].note
        a = actor.note.scan(/<remove[- _]tp>/)
        return a != []           
    end
    
    def remove_mp?
        note = $data_actors[@actor_id].note
        a = actor.note.scan(/<remove[- _]mp>/)
        return a != []           
    end
    
end
Try this (with the notetag that was mentioned
Ruby:
class Window_Base < Window
   
    alias custom_bar_draw_actor_mp draw_actor_mp
    def draw_actor_mp(actor, x, y, width = 124)
        if actor.remove_mp?
        else
            custom_bar_draw_actor_mp(actor, x, y, width)
        end
    end
   
    alias custom_bar_draw_actor_tp draw_actor_tp
    def draw_actor_tp(actor, x, y, width = 124)
        if actor.remove_tp?
        else
            custom_bar_draw_actor_tp(actor, x, y, width)
        end
    end
   
  def draw_gmp(actor, x, y, width = 124)
        if actor.remove_mp?
        else
    draw_gauge(x, y, width, actor.mp_rate, mtheme::MP_COLOR1, mtheme::MP_COLOR2)
    change_color(system_color)
    draw_text(x - 30, y + 7, 30, line_height, Vocab::mp_a,2)
    draw_current_and_max_values(x, y + 3, width, actor.mp, actor.mmp,
      mp_color(actor), normal_color)
        end
  end
   
end

class Game_Actor <  Game_Battler

    def remove_tp?
        note = $data_actors[@actor_id].note
        a = actor.note.scan(/<remove[- _]tp>/)
        return a != []          
    end
   
    def remove_mp?
        note = $data_actors[@actor_id].note
        a = actor.note.scan(/<remove[- _]mp>/)
        return a != []          
    end
   
end
Thank you, this works perfectly. I will let you know if I encounter any problems.

Original thread: https://forums.rpgmakerweb.com/threads/galv-menu-themes-remove-mp-script-compatibility-snippet-request.137410/