heartsForAll (v2.4.2.5) - Applies Heart System to Box Users

Share and discuss custom LunaLua code and content packs for SMBX2.
AppleTheTomato
Fighter Fly
Fighter Fly
Posts: 47
Joined: Wed Jun 02, 2021 8:44 pm
Flair: I am a Tomato named Apple.
Pronouns: He/Him

heartsForAll (v2.4.2.5) - Applies Heart System to Box Users

Postby AppleTheTomato » Fri Aug 26, 2022 12:10 am

I remember browsing through the #help channel on the SMBX Discord Server and seeing someone ask 'how do you hide the reserve box?' MrDoubleA then gave them an answer, and gave me an idea. What if Mario and Luigi could use the heart system?

Thus, after several days and long nights, I finally developed code to do just that. Behold!
Image
Image
Image
Here's the download: https://drive.google.com/file/d/1hfgYDp ... share_link
To use, simply put the below in your luna.lua file:

Code: Select all

local pC = require("heartsForAll")
The library has these settings:

Code: Select all

pC.enabled - Set this to true to enable the lua, and false to disable it. You can enable and disable the library mid level too, if you want
pC.boxOffset - Change this for any custom HUD changes to the itembox. It's set to -100 to hide the items, and the default is 16, like in the basegame
pC.itemOffset - Change this to determine where the item goes. It's set to -100 by default to hide the items
The credits are throughout the lua file.
If you wanna use this, go ahead! I just want some form of credidation, like: heartsForAll.lua: by AppleTheTomato
This is my first released piece of lua, so it may not be the most polished, but I did the best I could to optimize it, and I hope it works well!
If you find any bugs, reply to this post. I'll check on it as frequently as possible.
Also, it's 2-Player, so that's epic.

sonic_de_hedhog
Goomba
Goomba
Posts: 4
Joined: Fri Jan 20, 2023 7:37 am
Pronouns: he/him

Re: heartsForAll (v2.4.2.5) - Applies Heart System to Box Users

Postby sonic_de_hedhog » Fri Jan 27, 2023 12:36 pm

can you make a version for smbx2

MrDoubleA
Flurry
Flurry
Posts: 351
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?
Pronouns: he/him

Re: heartsForAll (v2.4.2.5) - Applies Heart System to Box Users

Postby MrDoubleA » Sun Jan 29, 2023 12:53 pm

sonic_de_hedhog wrote:
Fri Jan 27, 2023 12:36 pm
can you make a version for smbx2
It is for SMBX2.

sonic_de_hedhog
Goomba
Goomba
Posts: 4
Joined: Fri Jan 20, 2023 7:37 am
Pronouns: he/him

Re: heartsForAll (v2.4.2.5) - Applies Heart System to Box Users

Postby sonic_de_hedhog » Tue Jan 31, 2023 2:20 am

how do i get it to work

Alagirez
Boom Boom
Boom Boom
Posts: 3370
Joined: Tue Dec 02, 2014 2:28 am
Flair: Show your fangs!
Pronouns: He/Him/That wolf
Contact:

Re: heartsForAll (v2.4.2.5) - Applies Heart System to Box Users

Postby Alagirez » Tue Jan 31, 2023 6:34 am

sonic_de_hedhog wrote:
Tue Jan 31, 2023 2:20 am
how do i get it to work
You need to put this code into your luna.lua file:

Code: Select all

local pC = require("heartsForAll")


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 1 guest