Help with starting with wario

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

Moderator: Userbase Moderators

arhi998
Cheep-Cheep
Cheep-Cheep
Posts: 11
Joined: Sun Oct 21, 2018 5:00 am
Flair: Hi everyone! i'm just a normal dude playing smbx.

Help with starting with wario

Postby arhi998 » Sat Dec 28, 2019 12:12 pm

So i was wondering if there was a script for starting level with a specific character? Like i wanna make starting with Wario in every level, but i don't wanna use Wario block.

Is there a script for that?

Archived
Birdo
Birdo
Posts: 2166
Joined: Tue Mar 13, 2018 6:15 pm

Re: Help with starting with wario

Postby Archived » Sat Dec 28, 2019 1:10 pm

Archived
Last edited by Archived on Sun Jan 29, 2023 1:47 pm, edited 1 time in total.

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

Re: Help with starting with wario

Postby Emral » Sat Dec 28, 2019 1:35 pm

Eclipsed wrote:
Sat Dec 28, 2019 1:10 pm
arhi998 wrote:
Sat Dec 28, 2019 12:12 pm
So i was wondering if there was a script for starting level with a specific character? Like i wanna make starting with Wario in every level, but i don't wanna use Wario block.

Is there a script for that?
Use an OnStart function and set Player.character to Wario's id
Capitalisation matters. A lot. What you proposed is invalid.

Code: Select all

function onStart()
	player:transform(CHARACTER_WARIO)
end
"player" small (first player instead of the class), and onStart instead of OnStart.

arhi998
Cheep-Cheep
Cheep-Cheep
Posts: 11
Joined: Sun Oct 21, 2018 5:00 am
Flair: Hi everyone! i'm just a normal dude playing smbx.

Re: Help with starting with wario

Postby arhi998 » Mon Dec 30, 2019 6:02 am

Enjl wrote:
Sat Dec 28, 2019 1:35 pm
Eclipsed wrote:
Sat Dec 28, 2019 1:10 pm
arhi998 wrote:
Sat Dec 28, 2019 12:12 pm
So i was wondering if there was a script for starting level with a specific character? Like i wanna make starting with Wario in every level, but i don't wanna use Wario block.

Is there a script for that?
Use an OnStart function and set Player.character to Wario's id
Capitalisation matters. A lot. What you proposed is invalid.

Code: Select all

function onStart()
	player:transform(CHARACTER_WARIO)
end
"player" small (first player instead of the class), and onStart instead of OnStart.
Thanks a lot you two!

You really helped :D


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari