Need the new NPC codes

Need help with any SMBX game-related issues? Ask your questions here.
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?
User avatar
Animebryan
Bit
Bit
Posts: 144
Joined: Fri Jun 03, 2016 5:40 pm
Flair: Need help!
Current Project: Star of Darkness
Contact:

Need the new NPC codes

Postby Animebryan » Wed Oct 30, 2019 7:58 pm

Does anyone know where I can get the newest NPC codes?
Need serious help with Lua based features :(

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

Re: Need the new NPC codes

Postby Enjl » Wed Oct 30, 2019 11:56 pm

The section of the handbook titled "NPC Codes" has a link to a spreadsheet.
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
Animebryan
Bit
Bit
Posts: 144
Joined: Fri Jun 03, 2016 5:40 pm
Flair: Need help!
Current Project: Star of Darkness
Contact:

Re: Need the new NPC codes

Postby Animebryan » Thu Oct 31, 2019 1:05 am

Aren't there supposed to be ones like nohammer to determine whether or not if it's effected by hammers, as well one for the statue effect, and one that determines whether if the npc dies when it touches lava?

Also, can collectable npcs finally have their score set to like 13, which would give a 5-up?

And in regards to the health npc code: "Extended per-npc uses are specified in the section about the specific NPC type on the NPC-specific spreadsheets below."
Where can I find these spreadsheets?
Need serious help with Lua based features :(

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

Re: Need the new NPC codes

Postby Enjl » Thu Oct 31, 2019 1:38 am

Animebryan wrote:
Thu Oct 31, 2019 1:05 am
Aren't there supposed to be ones like nohammer to determine whether or not if it's effected by hammers, as well one for the statue effect, and one that determines whether if the npc dies when it touches lava?
To my knowledge, nohammer, noshell, something about statue effect, were myths that never existed in SMBX. They might exist in 38A. IDK.
NPC death flags are done with the vulnerableharmtypes npc code that needs to be set through lua. All basegame npcs set this using npcManager.registerHarmtypes if you need a reference or two (hundred).
Animebryan wrote:
Thu Oct 31, 2019 1:05 am
Also, can collectable npcs finally have their score set to like 13, which would give a 5-up?
The iscoin or isinteractible flag might override this. I'm not aware of any changes we made.
Animebryan wrote:
Thu Oct 31, 2019 1:05 am
Where can I find these spreadsheets?
At the bottom of the one you were reading this in. There are more tabs. (had to double-check to make sure it says "below")
ImageImageImageImage
ImageImageImageImageImageImage


Return to “Help and Support”

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron