Jump to content

Recommended Posts

What does it do?
Boss can now have a multi-layer health bar. Meaning it won’t just go to empty, the layers will deplete 1 by 1 until the bar is completely empty.
 
Author: Mr. Trivel
Name: Multi-Layer Boss Health Bar
Created: 2014-10-31
Version: 1.2b
 
Video:
Health bar design and art by Izu.
 
Instructions: 
Read instructions and customize the offsets.
 
Edited by Glasses

Share this post


Link to post
Share on other sites

Hahaha, this is so great. I will be using this since YEA's enemies hp bar script doesn't have an option for bosses, it's the same for every enemy

 

Fun fact: the first boss in my game is called Izu xD i had no idea that someone was called like that lol

 

Like for you!

Share this post


Link to post
Share on other sites

It seems the new version crashes with

ead0e26aee.png

every time I finish a battle without any bosses.

@bhpb_bars.each { |b|  b.dispose if b }

This was line 261.

 

Tested it on an empty project as well.

Edited by RaythalosM

Share this post


Link to post
Share on other sites

Does this work with Falcao's Pearl ABS? Can you make a version that puts little circles under the HP Bar like in Kingdom Hearts so that each circle is a health bar? Each time one health bar is depleted it refills and one of the circles goes away.

Share this post


Link to post
Share on other sites

Great script, there's just one thing I'd like to ask.

 

As it is, this script always sets up the HP bar so that bar_1 is on top, and the bars increase layering down depending on the boss' max bar count.

 

Could you show me how to modify your script so that bar_1 is always on bottom of the health bar, and the bars layer ontop of each other?

 

Thanks for reading!

Share this post


Link to post
Share on other sites

No idea why you'd want to modify the script, since you can just switch around the images so that bar 1 is the bar 5 now and so on.

 

But anyways,

    5.times { |time|
      @bhp_fill.push(Cache.system("boss_hp_bar#{5-time}"))
    }

Share this post


Link to post
Share on other sites

Sorry, i guess I didnt explain well enough. Your modification didn't acomplish what I wanted.

 

Alright, so there's 5 bar images.

 

If a boss has <boss: 1>, there bar is only 1

If <boss: 3>, then from top to bottom bar pics 3, 2, 1

If <boss: 5>, 5, 4, 3, 2, 1

then it cycles back like normal.

 

It's like a sandwich I guess. new stuff always goes on top, but at bare minimum you could just eat the bottom piece of bread.

Edited by Ninkoro

Share this post


Link to post
Share on other sites

Oh, I think I know what you mean.

Disregard my last code then.

 

E.g. If boss has 6 bars, you want it to be 1, 5, 4, 3, 2, 1 and if boss has 4 bars, it has to be 4, 3, 2, 1, right?

If so,

      tmp.bitmap = $game_temp.bhp_fill[(@current_bar-bar)%5]

Share this post


Link to post
Share on other sites

Yeah exactly, and that's almost it.

 

Just one little thing, it skipped the bar_1 image and went directly to 2. For future reference to others, just -1 to the formula so it looks like (@current_bar-bar-1)

 

Thanks for all the help!

Edited by Ninkoro

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×