The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: vilinious_viper on March 16, 2011, 07:29:13 AM

Title: No MP Guage?
Post by: vilinious_viper on March 16, 2011, 07:29:13 AM
Is there a way to make specific characters not have MP guages in VX?
Title: Re: No MP Guage?
Post by: brewmeister on March 16, 2011, 02:24:06 PM
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
Title: Re: No MP Guage?
Post by: Countdown on March 22, 2011, 08:11:27 PM
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.
Title: Re: No MP Guage?
Post by: pacdiggity on March 23, 2011, 08:56:28 AM
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 (http://rmrk.net/index.php/topic,42156.msg482433/topicseen.html#msg482433).

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.
Title: Re: No MP Guage?
Post by: LoganF on March 23, 2011, 09:02:00 AM
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.
Title: Re: No MP Guage?
Post by: pacdiggity on March 23, 2011, 09:09:17 AM
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.