Is there any way to change the Default Costume?

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

Metrovania
Hoopster
Hoopster
Posts: 46
Joined: Mon Nov 04, 2019 11:07 pm
Flair: *obligatory campaign plug*

Is there any way to change the Default Costume?

Postby Metrovania » Tue Mar 02, 2021 9:47 pm

I was working on a campaign and would like the player to START using the SMW costume built in to the game. Is there any way to do this? Alternatively, some LUA script which let's the player Look up and have a 2-stage run like SMW Mario would would also work, since It could hopefully be applied to the default mario.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9891
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Is there any way to change the Default Costume?

Postby Emral » Wed Mar 03, 2021 3:08 am

In map.lua and episode-wide luna.lua:

Code: Select all

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

Metrovania
Hoopster
Hoopster
Posts: 46
Joined: Mon Nov 04, 2019 11:07 pm
Flair: *obligatory campaign plug*

Re: Is there any way to change the Default Costume?

Postby Metrovania » Wed Mar 03, 2021 10:23 am

Thank you! I take it map.lua is just a script I should include in the world folder?

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9891
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Is there any way to change the Default Costume?

Postby Emral » Wed Mar 03, 2021 10:48 am

Metrovania wrote:
Wed Mar 03, 2021 10:23 am
Thank you! I take it map.lua is just a script I should include in the world folder?
Both scripts go into the main directory of your episode.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari