Help with basic LunaLua, completely new to the language

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

Moderator: Userbase Moderators

The Handwoven Box
Bot
Bot
Posts: 56
Joined: Sun Jul 31, 2016 10:35 am

Help with basic LunaLua, completely new to the language

Postby The Handwoven Box » Mon Apr 12, 2021 10:20 pm

How would I go about doing these things:

1. Making the default character for the episode Wario (you only get set to Wario when first starting a save, not every time you boot up the episode).

2. Ensure that only one skin can be used for each character.

Also, is there a way to sort the search for the forums? In the main LunaLua forum I try and find specific things to see if they've been made, but the results are flooded by individual comments from one thread over and over, can I search by individual threads?

RadMetalMarioSMIX
Buster Beetle
Buster Beetle
Posts: 87
Joined: Sat Mar 14, 2015 6:42 pm
Flair: What kind of grave is this?
Pronouns: he/him

Re: Help with basic LunaLua, completely new to the language

Postby RadMetalMarioSMIX » Mon Mar 07, 2022 3:24 pm

Here’s a link to the general Luna.lua help topic: viewtopic.php?f=102&t=23742

Here’s a link to the code for starting as Wario: viewtopic.php?f=102&t=26388

I hope this helps and answers your questions! 😁

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

Re: Help with basic LunaLua, completely new to the language

Postby deice » Mon Mar 07, 2022 5:04 pm

The Handwoven Box wrote:
Mon Apr 12, 2021 10:20 pm
1. Making the default character for the episode Wario (you only get set to Wario when first starting a save, not every time you boot up the episode).
if you mean modifying/replacing the character select that comes up when you start the game from the launcher/lunaloader, then this is (probably??) currently not possible via lua. the WLD format doesn't support filtering characters outside of the base 5, and your episode's lua files aren't loaded until the episode itself is loaded. your best bet is to disable all characters but one and just use the code linked in the post above to forcibly change the player's character.


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari