Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
zahraa

HP and SP bar (solved)

Question

in RPG maker xp,HP and SP bars are like this:

 

OlOQm.png

 

 

but i want to show them with colour.like this:

 

5abjw.png

 

(millennium 4 beyond sunset)

 

what should i do?

 

thanks

Edited by zahraa

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Use a script. If you can't script, find a battle system/menu system/project with bars that appeal to you and search the scripts for Window_Base#draw_actor_hp and Window_Base#draw_actor_sp.

class Window_Base
 ...
 alias ..._draw_actor_hp draw_actor_hp
 def draw_actor_hp(...)
   ...
 end
 alias ..._draw_actor_sp draw_actor_sp

 def draw_actor_sp(...)
   ...
 end
end

Copy both methods and put them in a new entry of your script edtior (including the alias statements if there are any), encased in a class Window_Base block, as shown above.

 

Also, it is possible that the new draw_actor_hp and draw_actor_sp methods call on yet other methods. Once you've done all this and run your project, if you get errors like:

NoMethodError in script <name of the script you just created> at line <number>: undefined method <method name>

Then search for said line number, there should be a call to another method (typically draw_bar or draw_text_shadowed or whatever) you also have to copy from the source script.

Share this post


Link to post
Share on other sites
  • 0

i copied this in a new script that named battle:

class Window_Base

...

alias ..._draw_actor_hp draw_actor_hp

def draw_actor_hp(...)

...

end

alias ..._draw_actor_sp draw_actor_sp

 

def draw_actor_sp(...)

...

end

end

and nothing happened in game

 

i guess i didn't understand your words

sorry.can you explain it more? :sweatdrop:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...