[Library] Hammer.lua - Kirby styled hammer! - v1.0

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

Marioman2007
2025 Egg Hunter
2025 Egg Hunter
Posts: 544
Joined: Tue Aug 25, 2020 3:19 am
Flair: Dr. Bones
Pronouns: He/Him

[Library] Hammer.lua - Kirby styled hammer! - v1.0

Postby Marioman2007 » Tue Jul 12, 2022 12:38 am

Yo! Here's another script I made

GIF:
Spoiler: show
Image

Credits: (for details, please check the [Credits].txt file given with the download)
Me
MrDoubleA
Neweegee
HartFlip0218
LinkstormZ
Cooper B. Chance
Mysticus

Notes:
This script adds 4 new lua events-
onNPCBonk(evtObj, BonkedNPC, slamType) - executes when a npc gets slammed, can be cancelled
onBlockBonk(evtObj, BonkedBlock, slamType) - executes when a block gets slammed, can be cancelled
onPostNPCBonk(BonkedNPC, slamType) - executes when a npc gets slammed, cannot be cancelled
onPostBlockBonk(BonkedBlock, slamType) - executes when a block gets slammed, cannot be cancelled

BonkedNPC & BonkedBlock the npc/block that got hit
evtObj used to cancel the hit, evtObj.cancelled = true
slamType the type of slam, 1: normal slam, 2: hammer swing, 3: air swing

Settings are given at the top of the file

Download:
https://drive.google.com/file/d/1gFJzIE ... sp=sharing

GFX Patch - smb3 mario instead of modern mario
https://cdn.discordapp.com/attachments/ ... hammer.zip

Enjoy and please give credits!
Last edited by Marioman2007 on Tue Jul 12, 2022 11:00 pm, edited 3 times in total.

MegaDood
Charged Spiny
Charged Spiny
Posts: 1831
Joined: Wed Nov 01, 2017 2:43 am

Re: [Library] Hammer.lua - Kirby styled hammer! - v1.0

Postby MegaDood » Tue Jul 12, 2022 2:21 am

This is a very nice script here! It looks like it'll be pretty useful for new sorts of level designs, great job with this.

Chilly14
Snifit
Snifit
Posts: 236
Joined: Thu Jul 18, 2019 10:28 pm
Flair: wash your hands and stay at home
Pronouns: he/him

Re: [Library] Hammer.lua - Kirby styled hammer! - v1.0

Postby Chilly14 » Tue Jul 12, 2022 3:31 pm

Animations are weird while swinging the hammer, especially for Small, Tanooki, and Hammer Mario.
Spoiler: show
Image
Image
Small, Tanooki, and Hammer Mario turn into large squares while using the hammer.

Marioman2007
2025 Egg Hunter
2025 Egg Hunter
Posts: 544
Joined: Tue Aug 25, 2020 3:19 am
Flair: Dr. Bones
Pronouns: He/Him

Re: [Library] Hammer.lua - Kirby styled hammer! - v1.0

Postby Marioman2007 » Tue Jul 12, 2022 10:10 pm

Chilly14 wrote:
Tue Jul 12, 2022 3:31 pm
Animations are weird while swinging the hammer, especially for Small, Tanooki, and Hammer Mario.
Spoiler: show
Image
Image
Small, Tanooki, and Hammer Mario turn into large squares while using the hammer.
Yeah, I mainly use the modern mario GFX, will fix that.
As for Small, Tanooki, and Hammer Mario, the GFX wasn't available so I'm still trying to create em, it will take some time.

Edit: GFX patch has been made, check the original post.

Registered sand eater
Bot
Bot
Posts: 55
Joined: Fri Jan 28, 2022 4:14 pm
Pronouns: he/him

Re: [Library] Hammer.lua - Kirby styled hammer! - v1.0

Postby Registered sand eater » Fri Jul 15, 2022 6:28 am

Wow, definitely a good way to replace the Hammer suit if you are going for a kirby themed level! One question though, what characters does it support?

Marioman2007
2025 Egg Hunter
2025 Egg Hunter
Posts: 544
Joined: Tue Aug 25, 2020 3:19 am
Flair: Dr. Bones
Pronouns: He/Him

Re: [Library] Hammer.lua - Kirby styled hammer! - v1.0

Postby Marioman2007 » Fri Jul 15, 2022 10:37 pm

Registered sand eater wrote:
Fri Jul 15, 2022 6:28 am
Wow, definitely a good way to replace the Hammer suit if you are going for a kirby themed level! One question though, what characters does it support?
It should support every character, but was only tested with mario.
of course you need GFX for the other characters as well.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 5 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari