customReserve.lua - Multiple reserve powerups! [v1.01]

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

Moderator: Userbase Moderators

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

customReserve.lua - Multiple reserve powerups! [v1.01]

Postby Marioman2007 » Sun Feb 11, 2024 11:56 am

Also works for heart based characters.

GIFs:
Spoiler: show
Image
Image

Credits:
Me
Emral - draw9Slice function from lakituShop.lua
Special thanks to AppleTheTomato for testing this script!

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

Suggestion:
Use modernReserveItems.lua with this because the default function to spawn the reserve items does not cover every case.

Give credits if used, settings at the top of the lua file.
Last edited by Marioman2007 on Sun Feb 11, 2024 10:22 pm, edited 1 time in total.

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 611
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: customReserve.lua - Multiple reserve powerups! [v1]

Postby mariobrigade2018 » Sun Feb 11, 2024 7:48 pm

This reminds me of 3D world’s multiplayer reserve system. Cool!

Now to figure how this this works with custompowerup.lua...

Wiimeiser
Snifit
Snifit
Posts: 215
Joined: Mon Jun 24, 2019 4:36 am
Flair: What?

Re: customReserve.lua - Multiple reserve powerups! [v1]

Postby Wiimeiser » Sun Feb 11, 2024 9:02 pm

Getting this error the first time I switch characters after loading a level in test mode. Haven't tested actually playing the episode.

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

Re: customReserve.lua - Multiple reserve powerups! [v1]

Postby Marioman2007 » Sun Feb 11, 2024 10:27 pm

Wiimeiser wrote:
Sun Feb 11, 2024 9:02 pm
Getting this error the first time I switch characters after loading a level in test mode. Haven't tested actually playing the episode.

Thanks!
I've updated the code fix that and a rendering related bug.


Return to “LunaLua”

Who is online

Users browsing this forum: gio_zen, Miju and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari