How to make and customize boss hp bar?

This is the place for discussion and support for LunaLua and related modifications and libraries.
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
LooKiCH
Tweeter
Tweeter
Posts: 158
Joined: Tue Jun 13, 2017 11:28 am
Pronouns: he/him
Contact:

Re: How to make and customize boss hp bar?

Postby LooKiCH » Thu Dec 20, 2018 10:58 am

MECHDRAGON777 wrote:
Wed Oct 17, 2018 2:31 am
I would be able to help make it, but I need to know the following info:
  • Graphics in .png format.
  • Location in either X,Y of the setup, or the general area.
  • Event to start the fight.
...but if I do it, I would need to suggest make the boss in question start with an event to trigger the showing of it.
Filename of HP bar - HealthBar.png
Image
Filename of HP bar icon - HealthBarIcon.png
Image
5 HP from slashes and hops, 25 HP from fireballs and lasers
HP bar's position: X - 680, Y - 23
HP bar icon's position: X - 680, Y - 30
NPC ID: 280
HP bar event - meet with the boss
Section 4

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6422
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: How to make and customize boss hp bar?

Postby MECHDRAGON777 » Fri Dec 21, 2018 5:44 pm

Super Mario Craft Min wrote:
Thu Dec 20, 2018 10:58 am
MECHDRAGON777 wrote:
Wed Oct 17, 2018 2:31 am
I would be able to help make it, but I need to know the following info:
  • Graphics in .png format.
  • Location in either X,Y of the setup, or the general area.
  • Event to start the fight.
...but if I do it, I would need to suggest make the boss in question start with an event to trigger the showing of it.
Filename of HP bar - HealthBar.png
Image
Filename of HP bar icon - HealthBarIcon.png
Image
5 HP from slashes and hops, 25 HP from fireballs and lasers
HP bar's position: X - 680, Y - 23
HP bar icon's position: X - 680, Y - 30
NPC ID: 280
HP bar event - meet with the boss
Section 4
Okay, and what boss NPC is this replacing? I do not know any boss that can be killed in exactly five stomps. (They all require 3 stomps if they do work to my knowledge, although this can be changed with lua.)

LooKiCH
Tweeter
Tweeter
Posts: 158
Joined: Tue Jun 13, 2017 11:28 am
Pronouns: he/him
Contact:

Re: How to make and customize boss hp bar?

Postby LooKiCH » Thu Jan 17, 2019 12:23 pm

MECHDRAGON777 wrote:
Fri Dec 21, 2018 5:44 pm
Super Mario Craft Min wrote:
Thu Dec 20, 2018 10:58 am
MECHDRAGON777 wrote:
Wed Oct 17, 2018 2:31 am
I would be able to help make it, but I need to know the following info:
  • Graphics in .png format.
  • Location in either X,Y of the setup, or the general area.
  • Event to start the fight.
...but if I do it, I would need to suggest make the boss in question start with an event to trigger the showing of it.
Filename of HP bar - HealthBar.png
Image
Filename of HP bar icon - HealthBarIcon.png
Image
5 HP from slashes and hops, 25 HP from fireballs and lasers
HP bar's position: X - 680, Y - 23
HP bar icon's position: X - 680, Y - 30
NPC ID: 280
HP bar event - meet with the boss
Section 4
Okay, and what boss NPC is this replacing? I do not know any boss that can be killed in exactly five stomps. (They all require 3 stomps if they do work to my knowledge, although this can be changed with lua.)

I edited quantity of hp in npc-280.txt

ElectriKong
Posts: 4650
Joined: Mon Jun 06, 2016 4:32 pm
Flair: I have NO idea what to put here
Pronouns: he/him
Contact:

Re: How to make and customize boss hp bar?

Postby ElectriKong » Thu Jan 17, 2019 12:42 pm

Super Mario Craft Min wrote:
Thu Jan 17, 2019 12:23 pm
MECHDRAGON777 wrote:
Fri Dec 21, 2018 5:44 pm
Super Mario Craft Min wrote:
Thu Dec 20, 2018 10:58 am

Filename of HP bar - HealthBar.png
Image
Filename of HP bar icon - HealthBarIcon.png
Image
5 HP from slashes and hops, 25 HP from fireballs and lasers
HP bar's position: X - 680, Y - 23
HP bar icon's position: X - 680, Y - 30
NPC ID: 280
HP bar event - meet with the boss
Section 4
Okay, and what boss NPC is this replacing? I do not know any boss that can be killed in exactly five stomps. (They all require 3 stomps if they do work to my knowledge, although this can be changed with lua.)

I edited quantity of hp in npc-280.txt
There isn't any option for health in an NPC txt file in SMBX at this time.

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6422
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: How to make and customize boss hp bar?

Postby MECHDRAGON777 » Fri Jan 18, 2019 9:29 pm

Electriking wrote:
Thu Jan 17, 2019 12:42 pm
Super Mario Craft Min wrote:
Thu Jan 17, 2019 12:23 pm
MECHDRAGON777 wrote:
Fri Dec 21, 2018 5:44 pm


Okay, and what boss NPC is this replacing? I do not know any boss that can be killed in exactly five stomps. (They all require 3 stomps if they do work to my knowledge, although this can be changed with lua.)

I edited quantity of hp in npc-280.txt
There isn't any option for health in an NPC txt file in SMBX at this time.
I can make NPC-280 have five hits (to lazy to try to think how many fireballs that is) in the lua code for the health bar.

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6422
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: How to make and customize boss hp bar?

Postby MECHDRAGON777 » Wed Jan 23, 2019 5:17 pm

Sorry for the double post, but here is an update:

Considering that ImageImage is the two pictures you gave me, do you want me to just send the code or a zip file? The issue at hand is I am assuming you want the bars to vanish with each hit. (that or a fifth per hit). Either Way, I will need to split that image into a single bar to draw per health point, or split the bar into five segments for the other option. I assume a .zip would just make it easier. I can not really do anything without further getting feedback from the person who has the request.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari