costume.lua question

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

Moderator: Userbase Moderators

UlticraftMTT
Hoopster
Hoopster
Posts: 43
Joined: Tue Jul 09, 2019 3:43 am
Pronouns: he/him

costume.lua question

Postby UlticraftMTT » Wed Jul 22, 2020 3:56 pm

Is it possible to have multiple costume datas within a single costume.lua file? I'm working on a SMW styled episode and i'm using MrDoubleA's SMW Mario and Luigi costumes that were packaged in with SMBX as well as SpoonyBard's SMM2 Toadette costumes, but if i were to insert the costume.lua files from the SMW Mario and Luigi costume packs, it would overwrite the Toadette one.

Hoeloe
Phanto
Phanto
Posts: 1465
Joined: Sat Oct 03, 2015 6:18 pm
Flair: The Codehaus Girl
Pronouns: she/her

Re: costume.lua question

Postby Hoeloe » Wed Jul 22, 2020 6:48 pm

You don't "insert" the costume files. You place the entire costume folder in their own "costumes" folder, and activate the costume from a Lua script (though I believe MrDoubleA's SMW costumes are built into the latest version of the game):

function onStart()
Player.setCostume(CHARACTER_MARIO, "SMW-Mario")
end


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari