Page 1 of 1

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

Posted: Fri Aug 26, 2022 12:10 am
by AppleTheTomato
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.

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

Posted: Fri Jan 27, 2023 12:36 pm
by sonic_de_hedhog
can you make a version for smbx2

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

Posted: Sun Jan 29, 2023 12:53 pm
by MrDoubleA
sonic_de_hedhog wrote:
Fri Jan 27, 2023 12:36 pm
can you make a version for smbx2
It is for SMBX2.

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

Posted: Tue Jan 31, 2023 2:20 am
by sonic_de_hedhog
how do i get it to work

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

Posted: Tue Jan 31, 2023 6:34 am
by Alagirez
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")