Main Menu
  • Welcome to The RPG Maker Resource Kit.

No MP Guage?

Started by vilinious_viper, March 16, 2011, 07:29:13 AM

0 Members and 1 Guest are viewing this topic.

vilinious_viper

Is there a way to make specific characters not have MP guages in VX?

brewmeister

class Window_Base
 
    EXEMPT = [1, 2]
   
  alias exempt_draw_actor_mp draw_actor_mp
  def draw_actor_mp(actor, x, y, width = 120)
    if EXEMPT.include?(actor.id)
      return
    else
      exempt_draw_actor_mp(actor, x, y, width)
    end
  end
end


Change the "EXEMPT" array to include the actor id of the actors with no MP guage

Countdown

Wow Brewmeister. I like that. Very helpful. Is there any way to get rid of Levels as well?
My characters don't level up, so I don't really need to see what level they are.

pacdiggity

#3
Okay, don't expect this to work, as I'm by no means a scripter. However, I would like to see what I can do. This is my first ever attempt to even meddle with a script, aside from the odd bug fix (I'm good at bugs!).

This should do the trick.

In the EXEMPT_LEVEL array, replace the [1, 2] with the Actor IDs you'd like to not have levels.
I don't have a computer with VX atm, so if you'd like me to do this properly I could do it in about 2 weeks. Until then... um... have fun.

EDIT: Quite confident it works now.
it's like a metaphor or something i don't know

LoganF

Just tested it for you WDP. The method draw_actor_level doesn't take a width argument, only the first 3.

This is the original.


def draw_actor_level(actor, x, y)
    self.contents.font.color = system_color
    self.contents.draw_text(x, y, 32, WLH, Vocab::level_a)
    self.contents.font.color = normal_color
    self.contents.draw_text(x + 32, y, 24, WLH, actor.level, 2)
  end


So you just need to remove the width from the call to the original method.
(Why do I always feel like it's the end of the world and I'm the last man standing?)

pacdiggity

Ah, how silly of me. Thank you for notifying me. I'll edit the script.
As I mentioned, first attempt at scripting.

EDIT: That should work. Just let me know. I'd love to learn how to script, I just never seem to have the time.
it's like a metaphor or something i don't know