How increase enemies' health?

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

Seminesho
Snifit
Snifit
Posts: 200
Joined: Sun Jun 29, 2014 5:53 pm

How increase enemies' health?

Postby Seminesho » Wed Aug 27, 2014 5:32 pm

It's too easy to defeat npc-256 (Giant Piranha plant) with just only two hits... How can I increase the number of hits you need to defeat it?

bossedit8
Banned
Posts: 6838
Joined: Fri Dec 20, 2013 12:35 pm
Contact:

Re: How increase enemies' health?

Postby bossedit8 » Wed Aug 27, 2014 5:36 pm

You can make him reappear by adding him on another Layer and on the same spot where the previous one is.

DimitrisPowerSeven
Volcano Lotus
Volcano Lotus
Posts: 519
Joined: Sun Apr 06, 2014 8:56 am

Re: How increase enemies' health?

Postby DimitrisPowerSeven » Wed Aug 27, 2014 5:40 pm

You can use layer and event to make it appear another giant piranha plant when the first defeated,or you can use lunaDLL and lunaDLL boss life code but i'm not sure if will work with this because i don't know if for lunaDLL is boss.

Seminesho
Snifit
Snifit
Posts: 200
Joined: Sun Jun 29, 2014 5:53 pm

Re: How increase enemies' health?

Postby Seminesho » Wed Aug 27, 2014 5:57 pm

bossedit8 wrote:You can make him reappear by adding him on another Layer and on the same spot where the previous one is.
You can use layer and event to make it appear another giant piranha plant when the first defeated,or you can use lunaDLL and lunaDLL boss life code but i'm not sure if will work with this because i don't know if for lunaDLL is boss.
Thank you so much, I think I'll do it like bossedit8 said, as I don't know how to use LunaDLL.... :roll:

Veudekato
Guest

Re: How increase enemies' health?

Postby Veudekato » Fri Aug 29, 2014 10:36 am

Samuel wrote: I don't know how to use LunaDLL.... :roll:
no problem .

http://engine.wohlnet.ru/forum/viewtopic.php?f=26&t=146 - how to use lunadll

http://www.youtube.com/watch?v=DhnZTL1LroU - tutorial to hp

if you want to make another npc as goomba or . attach mother brain with graphcis of goomba to goomba .
example special for you: big piranha plant with 5 Hp. put this code in lunadll.txt (read tutorial).
SetHits,256,1,-3,0,2,0 (now him hp is 5)
#1 is the section the next codes will activate in

SetHits is the command we want for setting hits

256 is big piranta plat's NPC ID

1 is the section she's in

2 is how much you want to set her hits to. She starts with 0 hits and dies at 2. Setting to 2 will leave her with 1 hits left until 2 ( in my example , if you type -3 its npc's hp + 3)

0 is not used

2 is how many frames the code will run. You only want to set her hits just as you enter the section, so 2 is short enough to set it and forget it

0 is not used

FanofSMBX
Ludwig von Koopa
Ludwig von Koopa
Posts: 3878
Joined: Sun Dec 22, 2013 12:01 pm

Re: How increase enemies' health?

Postby FanofSMBX » Fri Aug 29, 2014 10:57 am

That's false. The big piranha dies at 6 hits not 2.

superhammerbros100
Volcano Lotus
Volcano Lotus
Posts: 569
Joined: Fri Jan 24, 2014 11:03 am
Flair: Hello fellow profile reader!

Re: How increase enemies' health?

Postby superhammerbros100 » Fri Aug 29, 2014 10:59 am

FanofSMBX wrote:That's false. The big piranha dies at 6 hits not 2.

No, He dies at 3 hits. not at 6.

Superiorstar
Birdo
Birdo
Posts: 2153
Joined: Tue Jul 22, 2014 5:49 pm

Re: How increase enemies' health?

Postby Superiorstar » Fri Aug 29, 2014 11:00 am

It depends what your killing him with.

bossedit8
Banned
Posts: 6838
Joined: Fri Dec 20, 2013 12:35 pm
Contact:

Re: How increase enemies' health?

Postby bossedit8 » Fri Aug 29, 2014 11:02 am

Very specific.

Giant Piranha dies with:

2 Hits with any throwing Projectiles (Throwable Block, Hammer, Veggie, etc.)

3 Hits with Links Sword

6 Hits with Fireballs

Seminesho
Snifit
Snifit
Posts: 200
Joined: Sun Jun 29, 2014 5:53 pm

Re: How increase enemies' health?

Postby Seminesho » Fri Aug 29, 2014 11:06 am

Oh, then i'll try to defeat it with fireballs instead of turnips. Thank you so much and sorry, i didn't know that there was different hitpoints depending on what you're using :oops:

bossedit8
Banned
Posts: 6838
Joined: Fri Dec 20, 2013 12:35 pm
Contact:

Re: How increase enemies' health?

Postby bossedit8 » Fri Aug 29, 2014 11:15 am

Samuel wrote:I didn't know that there was different hitpoints depending on what you're using.
No problem. Now you know that a giant Piranha has some differency when you are trying to destroy him. Have a nice editing and time.

Veudekato
Guest

Re: How increase enemies' health?

Postby Veudekato » Fri Aug 29, 2014 11:35 am

i pm you. maybe i make wrong hp . but you can experiment .



Veudekato wrote:
Samuel wrote: I don't know how to use LunaDLL.... :roll:
no problem .

SetHits,256,1,-3,0,2,0 (now him hp is 5)


2 is how much you want to set her hits to. She starts with 0 hits and dies at 2. Setting to 2 will leave her with 1 hits left until 2 ( in my example , if you type -3 its npc's hp + 3)


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari