Showing icons instead of HP and MP [REQUEST]

Hi, hope you all are enjoying a great Christmas season. 🙂

I was in need of a simple script that could convert HP and MP texts into icons? Here's a simple preview I could show.

[IMG]http://i.imgur.com/3hHX0uf.png[/IMG]

In more simpler words ; Is there a script that can disable the display of texts (HP and MP) and enables icons instead of viewing text.

I'll post a rough mock-up I made, so it's easier for you to understand. 😉

[IMG]http://i.imgur.com/OWGkgOo.png[/IMG]

Thank you for taking a look, and have a fantastic day! ♥
Here's a simple edit that will use Icon #122 (the Heart) instead of the word for HP.  If you want to reposition the icon a bit, you can do so with things like "x - 4" in the draw_icon line.

Think you can take it from here?  (If not I'll make a full script for you.)

class Window_Base  #--------------------------------------------------------------------------  # * Draw HP  #--------------------------------------------------------------------------  def draw_actor_hp(actor, x, y, width = 124)    draw_gauge(x, y, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)    draw_icon(122, x, y)    draw_current_and_max_values(x, y, width, actor.hp, actor.mhp,      hp_color(actor), normal_color)    end    endHappy holidays!!
Thank you very much, I got it handled. 🙂 Also, I really forgot to ask.. is there a script in which HP and MP icons change when rate is 50% or above, and also changes when HP and MP is at 0.
There may be a script out there to do this already, I have no idea.  But it's pretty easy to do - just use the below code.

class Window_Base #-------------------------------------------------------------------------- # * Draw HP #-------------------------------------------------------------------------- def draw_actor_hp(actor, x, y, width = 124) draw_gauge(x, y, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2) if actor.hp <= 0 draw_icon(281, x, y) elsif actor.hp < (actor.mhp * 0.50) draw_icon(123, x, y) else draw_icon(122, x, y) end draw_current_and_max_values(x, y, width, actor.hp, actor.mhp, hp_color(actor), normal_color) end endI think this is a cool idea.  Would you be okay if I turned this into a full script at some point and added it to my script site (probably for free use in commercial and non-commercial games)?  I'll give you credit for the original idea, of course.
Sure, I would love if you can write a full script. Thanks! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/showing-icons-instead-of-hp-and-mp-request.35183/