dootthaloop
Member
I looked all over, and I could not find a script like this... so I'm requesting one, I'm really surprised no one's requested one before unless I'm seriously missing something.
Okay to start off with, I basically want a system that shows the enemy's HP during battle, with the bars and numbers. Basically, like I can see my own party's HP down here, for example, this is my party's HP:
Now, beside of the enemy's name, exactly like it looks beside the party members' name, I want to see the enemy's HP. MP is not necessary (for my game in particular), but I encourage whoever writes the script to add it in if they think it might benefit others besides me. Example two, this is what it looks like when I select the enemy, see, no HP:
Now... assuming there are more than four enemies on the screen, I would like to be able to scroll down further through the various enemies' HP, keeping the battle menu the same size. I hope that made sense...
Also, on a final note, I have this one script installed that I would prefer to be compatible with the request, it was seen in the screenshot, but anyway, it's called SephirothSpawn's Slanted Bars, and here is that script for your reference:
Okay so... to sum it up, here are the important points of my request:
- Show the enemy's HP in the battle menu below when the enemy is selected, exactly like showing the party member's HP below when the party member is selected.
- MP is not necessary.
- Ability to view HP of more than four enemies without changing the size of the battle menu or anything.
- Compatible with Slanted Bars Script.
Thanks a lot for taking a look at my request! I hope I was descriptive enough^^;
Okay to start off with, I basically want a system that shows the enemy's HP during battle, with the bars and numbers. Basically, like I can see my own party's HP down here, for example, this is my party's HP:
http://img401.imageshack.us/img401/8245/screenshot2rf9.png[/img]
Now, beside of the enemy's name, exactly like it looks beside the party members' name, I want to see the enemy's HP. MP is not necessary (for my game in particular), but I encourage whoever writes the script to add it in if they think it might benefit others besides me. Example two, this is what it looks like when I select the enemy, see, no HP:
http://img137.imageshack.us/img137/9058/screenshotye3.png[/img]
Now... assuming there are more than four enemies on the screen, I would like to be able to scroll down further through the various enemies' HP, keeping the battle menu the same size. I hope that made sense...
Also, on a final note, I have this one script installed that I would prefer to be compatible with the request, it was seen in the screenshot, but anyway, it's called SephirothSpawn's Slanted Bars, and here is that script for your reference:
#==============================================================================
# â– SephirothSpawn's Slanted bars in VX
# 25.4.2008
#------------------------------------------------------------------------------
# Script by: Kylock (Based on SephirothSpawn's Original Slanted Bars)
#==============================================================================
# Inspired by Syvkal (http://rmvxpuniverse.com) who ported Cogwheel Style
# bars to VX, I realized how much I missed Seph's Slanted Bars. So here they
# are. Just add this script and it'll automagically transform your HP and MP
# bars. Bar colors are easily customized in the following module.
#==============================================================================
# Change Log
# 1.0 - Original Release.
# 1.1 - Added option to use default window skin colors.
#==============================================================================
module SLANT_BARS
USE_WINDOWSKIN = false # If set to true, the colors will be taken from the
# current system skin and the following settings
# will be ignored.
DEFAULT_HP_BAR_COLOR = Color.new(150,0,0,255) # Beginning color of HP bar
DEFAULT_HP_END_COLOR = Color.new(255,192,0,255) # Ending color of HP bar
DEFAULT_MP_BAR_COLOR = Color.new(0,0,150,255) # Begenning color of MP bar
DEFAULT_MP_END_COLOR = Color.new(0,150,200,255) # Ending color of MP bar
end
class Window_Base < Window
#==========================================================================
# * Draw Slant Bar(by SephirothSpawn)
#==========================================================================
def draw_slant_bar(x, y, min, max, width = 152, height = 6,
bar_color = Color.new(150, 0, 0, 255),
end_color = Color.new(255, 255, 60, 255))
# Draw Border
for i in 0..height
self.contents.fill_rect(x + i, y + height - i, width + 1, 1,
Color.new(50, 50, 50, 255))
end
# Draw Background
for i in 1..(height - 1)
r = 100 * (height - i) / height + 0 * i / height
g = 100 * (height - i) / height + 0 * i / height
b = 100 * (height - i) / height + 0 * i / height
a = 255 * (height - i) / height + 255 * i / height
self.contents.fill_rect(x + i, y + height - i, width, 1,
Color.new(r, b, g, a))
end
# Draws Bar
for i in 1..( (min / max.to_f) * width - 1)
for j in 1..(height - 1)
r = bar_color.red * (width - i) / width + end_color.red * i / width
g = bar_color.green * (width - i) / width + end_color.green * i / width
b = bar_color.blue * (width - i) / width + end_color.blue * i / width
a = bar_color.alpha * (width - i) / width + end_color.alpha * i / width
self.contents.fill_rect(x + i + j, y + height - j, 1, 1,
Color.new(r, g, b, a))
end
end
end
#--------------------------------------------------------------------------
# * Draw HP gauge
# actor : actor
# x : draw spot x-coordinate
# y : draw spot y-coordinate
# width : Width
#--------------------------------------------------------------------------
def draw_actor_hp_gauge(actor, x, y, width = 131)
if SLANT_BARS::USE_WINDOWSKIN
draw_slant_bar(x-3,y+13,actor.hp,actor.maxhp,width,8,
hp_gauge_color1,hp_gauge_color2)
else
draw_slant_bar(x-3,y+13,actor.hp,actor.maxhp,width,8,
SLANT_BARS::DEFAULT_HP_BAR_COLOR,SLANT_BARS::DEFAULT_HP_END_COLOR)
end
end
#--------------------------------------------------------------------------
# * Draw MP Gauge
# actor : actor
# x : draw spot x-coordinate
# y : draw spot y-coordinate
# width : Width
#--------------------------------------------------------------------------
def draw_actor_mp_gauge(actor, x, y, width = 131)
if SLANT_BARS::USE_WINDOWSKIN
draw_slant_bar(x-3,y+13,actor.mp,actor.maxmp,width,8,
mp_gauge_color1,mp_gauge_color2)
else
draw_slant_bar(x-3,y+13,actor.mp,actor.maxmp,width,8,
SLANT_BARS::DEFAULT_MP_BAR_COLOR,SLANT_BARS::DEFAULT_MP_END_COLOR)
end
end
end
# â– SephirothSpawn's Slanted bars in VX
# 25.4.2008
#------------------------------------------------------------------------------
# Script by: Kylock (Based on SephirothSpawn's Original Slanted Bars)
#==============================================================================
# Inspired by Syvkal (http://rmvxpuniverse.com) who ported Cogwheel Style
# bars to VX, I realized how much I missed Seph's Slanted Bars. So here they
# are. Just add this script and it'll automagically transform your HP and MP
# bars. Bar colors are easily customized in the following module.
#==============================================================================
# Change Log
# 1.0 - Original Release.
# 1.1 - Added option to use default window skin colors.
#==============================================================================
module SLANT_BARS
USE_WINDOWSKIN = false # If set to true, the colors will be taken from the
# current system skin and the following settings
# will be ignored.
DEFAULT_HP_BAR_COLOR = Color.new(150,0,0,255) # Beginning color of HP bar
DEFAULT_HP_END_COLOR = Color.new(255,192,0,255) # Ending color of HP bar
DEFAULT_MP_BAR_COLOR = Color.new(0,0,150,255) # Begenning color of MP bar
DEFAULT_MP_END_COLOR = Color.new(0,150,200,255) # Ending color of MP bar
end
class Window_Base < Window
#==========================================================================
# * Draw Slant Bar(by SephirothSpawn)
#==========================================================================
def draw_slant_bar(x, y, min, max, width = 152, height = 6,
bar_color = Color.new(150, 0, 0, 255),
end_color = Color.new(255, 255, 60, 255))
# Draw Border
for i in 0..height
self.contents.fill_rect(x + i, y + height - i, width + 1, 1,
Color.new(50, 50, 50, 255))
end
# Draw Background
for i in 1..(height - 1)
r = 100 * (height - i) / height + 0 * i / height
g = 100 * (height - i) / height + 0 * i / height
b = 100 * (height - i) / height + 0 * i / height
a = 255 * (height - i) / height + 255 * i / height
self.contents.fill_rect(x + i, y + height - i, width, 1,
Color.new(r, b, g, a))
end
# Draws Bar
for i in 1..( (min / max.to_f) * width - 1)
for j in 1..(height - 1)
r = bar_color.red * (width - i) / width + end_color.red * i / width
g = bar_color.green * (width - i) / width + end_color.green * i / width
b = bar_color.blue * (width - i) / width + end_color.blue * i / width
a = bar_color.alpha * (width - i) / width + end_color.alpha * i / width
self.contents.fill_rect(x + i + j, y + height - j, 1, 1,
Color.new(r, g, b, a))
end
end
end
#--------------------------------------------------------------------------
# * Draw HP gauge
# actor : actor
# x : draw spot x-coordinate
# y : draw spot y-coordinate
# width : Width
#--------------------------------------------------------------------------
def draw_actor_hp_gauge(actor, x, y, width = 131)
if SLANT_BARS::USE_WINDOWSKIN
draw_slant_bar(x-3,y+13,actor.hp,actor.maxhp,width,8,
hp_gauge_color1,hp_gauge_color2)
else
draw_slant_bar(x-3,y+13,actor.hp,actor.maxhp,width,8,
SLANT_BARS::DEFAULT_HP_BAR_COLOR,SLANT_BARS::DEFAULT_HP_END_COLOR)
end
end
#--------------------------------------------------------------------------
# * Draw MP Gauge
# actor : actor
# x : draw spot x-coordinate
# y : draw spot y-coordinate
# width : Width
#--------------------------------------------------------------------------
def draw_actor_mp_gauge(actor, x, y, width = 131)
if SLANT_BARS::USE_WINDOWSKIN
draw_slant_bar(x-3,y+13,actor.mp,actor.maxmp,width,8,
mp_gauge_color1,mp_gauge_color2)
else
draw_slant_bar(x-3,y+13,actor.mp,actor.maxmp,width,8,
SLANT_BARS::DEFAULT_MP_BAR_COLOR,SLANT_BARS::DEFAULT_MP_END_COLOR)
end
end
end
Okay so... to sum it up, here are the important points of my request:
- Show the enemy's HP in the battle menu below when the enemy is selected, exactly like showing the party member's HP below when the party member is selected.
- MP is not necessary.
- Ability to view HP of more than four enemies without changing the size of the battle menu or anything.
- Compatible with Slanted Bars Script.
Thanks a lot for taking a look at my request! I hope I was descriptive enough^^;