(Request) Start as Wario

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

Moderator: Userbase Moderators

RaccAttacc
Spiny
Spiny
Posts: 26
Joined: Wed Oct 28, 2020 4:13 pm
Flair: I am the uterus 2
Pronouns: she/her

(Request) Start as Wario

Postby RaccAttacc » Wed Oct 28, 2020 4:18 pm

I'm making a Wario Land themed episode. And I can't figure out how to make it so the player is always Wario.

Who can do this? or at least how?

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

Re: (Request) Start as Wario

Postby Hoeloe » Wed Oct 28, 2020 6:04 pm

You can do this very easily.

If you have a world map, just make a file named "map.lua" in your episode folder, and insert this code:

Code: Select all

local playerManager = require("playermanager")
playerManager.overworldCharacters = {CHARACTER_WARIO}

function onStart()
    player:transform(CHARACTER_WARIO)
end

If you don't have a world map, then make a file named "luna.lua" in your episode folder, and insert this code:

Code: Select all

function onStart()
    player:transform(CHARACTER_WARIO)
end


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari