Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Jens009's Hp and Sp images, Replaces Hp and Sp bars with images
jens009
post Jul 9 2007, 08:03 PM
Post #1


L Did you know? Death gods... only eat apples
Group Icon

Group: +Gold Member
Posts: 2,976
Type: Scripter
RM Skill: Skilled




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


__________________________

My RMXP Project:


Farewell RRR. =]
Go to the top of the page
 
+Quote Post
   
Heavyblues
post Jul 14 2007, 01:52 PM
Post #2


Level 11
Group Icon

Group: Revolutionary
Posts: 188
Type: Artist
RM Skill: Beginner




ok, I'm officially an RPGmaker dunce x3 it works fine in the menu, but I'm wondering which values you use to move it up...

in battle, the monster HP bars (I dunno how they are now, cuz of the error...) but I want them to be moved up... if you could possibly point out which script to change to do that

and the error is...

'Script 'Window_BattleStatus' line 40: ArgumentError occurred.

wrong number of arguments(4 for 3)

I don't know what it's telling me ;.;

it also makes the status window Die >.>;

This post has been edited by Heavyblues: Jul 14 2007, 01:54 PM
Go to the top of the page
 
+Quote Post
   
jens009
post Jul 14 2007, 03:33 PM
Post #3


L Did you know? Death gods... only eat apples
Group Icon

Group: +Gold Member
Posts: 2,976
Type: Scripter
RM Skill: Skilled




QUOTE (Heavyblues @ Jul 14 2007, 02:52 PM) *
ok, I'm officially an RPGmaker dunce x3 it works fine in the menu, but I'm wondering which values you use to move it up...

in battle, the monster HP bars (I dunno how they are now, cuz of the error...) but I want them to be moved up... if you could possibly point out which script to change to do that

and the error is...

'Script 'Window_BattleStatus' line 40: ArgumentError occurred.

wrong number of arguments(4 for 3)

I don't know what it's telling me ;.;

it also makes the status window Die >.>;

This isn't exactly the right place to put them but give me a minute or two and I'll show you.

Or wait 'til 10:00pm Pacific Time and I'll do the coding myself. All you have to do is to tell me where to put it. wink.gif


__________________________

My RMXP Project:


Farewell RRR. =]
Go to the top of the page
 
+Quote Post
   
Heavyblues
post Jul 14 2007, 04:26 PM
Post #4


Level 11
Group Icon

Group: Revolutionary
Posts: 188
Type: Artist
RM Skill: Beginner




x3 well, sorry 'bout that ^-^;

but, erm... I don't quite know what you mean x3
Go to the top of the page
 
+Quote Post
   
jens009
post Jul 14 2007, 08:08 PM
Post #5


L Did you know? Death gods... only eat apples
Group Icon

Group: +Gold Member
Posts: 2,976
Type: Scripter
RM Skill: Skilled




QUOTE (Heavyblues @ Jul 14 2007, 05:26 PM) *
x3 well, sorry 'bout that ^-^;

but, erm... I don't quite know what you mean x3


Well, where do you want to move the enemy's hp/sp bars?


__________________________

My RMXP Project:


Farewell RRR. =]
Go to the top of the page
 
+Quote Post
   
Heavyblues
post Jul 16 2007, 09:08 AM
Post #6


Level 11
Group Icon

Group: Revolutionary
Posts: 188
Type: Artist
RM Skill: Beginner




Up a bit, so that enemies that sit with their sprites resgin against the bottom of the screen will still have a showing HP bar ^-^;

like, make it's bottom row line up with the enemie's sprite's bottom row... know what I mean :3?
Go to the top of the page
 
+Quote Post
   
Zeffa
post Oct 5 2009, 07:21 AM
Post #7


Level 8
Group Icon

Group: Revolutionary
Posts: 130
Type: Artist
RM Skill: Intermediate




I'm really interested in this script.

You plan on getting the second part of the script up soon?


__________________________
Illustrator/GraphicDesigner, if you want somert... Like an illustration or a logo? Just ask! (Nothing too crazy though) ;)
For the love, the art, the game, the metal and the sex... And thanks for the freebies.


Out Now!
Awaiting reviews and feedback.

Current Project: Exodus: Escape Fort Bullwark
Engine: RMXP
Completion: Chapter One, 100%
Release Date: Out now, Winter 2009
Download Link: Via MediaFire

Exodus Full Game Thread
Exodus Forum Topic
Exodus Screen Gallery
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 04:43 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker