costume.lua question

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
UlticraftMTT
Fighter Fly
Fighter Fly
Posts: 41
Joined: Tue Jul 09, 2019 3:43 am

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
Foo
Foo
Posts: 1442
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: cato and 2 guests