- Joined
- Jul 22, 2014
- Messages
- 5,624
- Reaction score
- 5,104
- First Language
- English
- Primarily Uses
- RMVXA
Yeah. Look through Window_Base for "mp" and figure out which commands are causing MP to be drawn.So if an actor does not have MP at all, is there a way to hide it in the menu? Due to Yanfly's battle engine, I already don't have it displaying in battle if no one has a skill the uses MP, but it is still displayed in the main menu.
For example, the following method "Draw Simple Status":
#-------------------------------------------------------------------------- # * Draw Simple Status #-------------------------------------------------------------------------- def draw_actor_simple_status(actor, x, y) draw_actor_name(actor, x, y) draw_actor_level(actor, x, y + line_height * 1) draw_actor_icons(actor, x, y + line_height * 2) draw_actor_class(actor, x + 120, y) draw_actor_hp(actor, x + 120, y + line_height * 1) draw_actor_mp(actor, x + 120, y + line_height * 2) endYou might change it to something like:
#-------------------------------------------------------------------------- # * Draw Simple Status #-------------------------------------------------------------------------- def draw_actor_simple_status(actor, x, y) draw_actor_name(actor, x, y) draw_actor_level(actor, x, y + line_height * 1) draw_actor_icons(actor, x, y + line_height * 2) draw_actor_class(actor, x + 120, y) draw_actor_hp(actor, x + 120, y + line_height * 1) if actor.mmp > 0 draw_actor_mp(actor, x + 120, y + line_height * 2) end endNow it will only draw if the actor's Maximum MP is greater than zero, which should be approximately what you want to do. A lot of this stuff can be solved by looking through the existing code, seeing what it does, and making minor modifications (like this "if" branch) to force it to do what you want.
Don't do what Reno suggested above, unless you want to remove the MP bar on the menu for all characters.

