NPC Boss with multiple hitpoints

Need help with any SMBX game-related issues? Ask your questions here.
User avatar
Pluixx
Cheep-Cheep
Cheep-Cheep
Posts: 11
Joined: Mon May 14, 2018 11:26 am

NPC Boss with multiple hitpoints

Postby Pluixx » Sat Apr 25, 2020 11:12 am

Im currently trying to make an NPC boss using LunaLua, but it keeps dying on the first hit, I added 'eventObj.cancelled = true' on the NPCHarm function, but it still keeps on dying, am I doing something wrong or is there just another way?

To add, I got this 'info' from Enjl's LunaLua tutorial on custom NPC packs.

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9016
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: NPC Boss with multiple hitpoints

Postby Enjl » Sat Apr 25, 2020 11:17 am

It would help if you shared relevant code (the onNPCHarm function and where you register it, at the very least. More is always better).
Ideas are useless if you can't make them real.
Image

All my assets from packs and episodes are free to use for non-Novaverse levels and projects, as long as proper credit is given.

Mirror of all my content and collaborations on IPFS: QmZKzVJAsD6dE2tTHEb58XEmsNLzrW2MVsTtW7HWLAAcCC

User avatar
Pluixx
Cheep-Cheep
Cheep-Cheep
Posts: 11
Joined: Mon May 14, 2018 11:26 am

Re: NPC Boss with multiple hitpoints

Postby Pluixx » Sat Apr 25, 2020 11:21 am

Oh, I was indeed being just being dumb and hadnt registered the onNPCHarm, it was still registering as onNPCKill while the function I used was onNPCHarm.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 6 guests