Script Title: Jens009's HP and Sp Images
Script Version: 1.1
Credits: Jens009 for the script, HeavyBlues for the Hp and Sp Images.
Description: Replaces the hp and sp bars with hp and sp images.
Compatibility: Compatible with any script because it only replaces draw_actor_hp and draw_actor_sp. Your most likely incompatibility would be scripts that modify those 2 lines. which is highly, I mean HIGHLY unlikely. I mean seriously, who would want to replace hp and sp bars when they would want images already? ;-)
Screenshots:Menu Screenie

Battle Screenie with Enemy Hp and Sp bars add on
Demo Link: None.
Script Installation:First off, put the following images into your Project's Pictures folder





Next, put the script above main and below anything else:
CODE
#==============================================================================
# ** HP and SP Images v.2
#-------------------------------------------------------------------------------
# by Jens009
# Draws hp and sp bars using images
# Version 2 includes 2 things:
# - Draw_actor_sp which originally draws a sp bar and now draws nothing. XD
#------------------------------------------------------------------------------
class Window_Base < Window
def draw_actor_hp(actor,x,y)
hpspbackground = RPG::Cache.picture("HPSP_Background")
cw = hpspbackground.width
ch = hpspbackground.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x + 43, y - ch + 40, hpspbackground, src_rect)
hpback = RPG::Cache.picture("Hp_Back")
cw = hpback.width
ch = hpback.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x + 65, y - ch + 29, hpback, src_rect)
hpmeter = RPG::Cache.picture("HP_Bar")
cw = hpmeter.width * actor.hp / actor.maxhp
ch = hpmeter.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x + 65, y - ch + 29, hpmeter, src_rect)
spback = RPG::Cache.picture("SP_Back")
cw = spback.width
ch = spback.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x + 58, y - ch + 35, spback, src_rect)
spmeter = RPG::Cache.picture("SP_Bar")
cw = spmeter.width * actor.sp / actor.maxsp
ch = spmeter.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x + 58, y - ch + 35, spmeter, src_rect)
def draw_actor_sp(actor,x,y)
end
end
end
You guys will most likely ask how to get those bars to work during battle. ;-) I'll be posting the script soon
This post has been edited by jens009: Jul 9 2007, 08:04 PM