multiHitNPC Help

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

Paul Flemister II
Goomba
Goomba
Posts: 1
Joined: Fri Aug 27, 2021 8:19 pm
Pronouns: he/him

multiHitNPC Help

Postby Paul Flemister II » Fri Jan 28, 2022 1:24 am

Hello everyone, so I've been wondering how create a code about how many hitpoints will the NPC take by a certain HARM TYPE.

Like how many hitpoints will the NPC takes from HARM_TYPE_PROJECTILE_USED or HARM_TYPE_JUMP separately instead being the same?

I greatly apologize for brothering you... I'm still a novice at LunaLua Coding...

deice
Rocky Wrench
Rocky Wrench
Posts: 622
Joined: Fri Jul 23, 2021 7:35 am

Re: multiHitNPC Help

Postby deice » Fri Jan 28, 2022 7:12 am

the base game already has a good example of how you'd go about doing this. i recommend looking at the "onNPCHarm" event in "data/scripts/npcs/AI/chucks.lua".


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari