Disallowing playable characters

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

Moderator: Userbase Moderators

Waluiggy
Goomba
Goomba
Posts: 4
Joined: Fri Jan 29, 2021 11:50 am

Disallowing playable characters

Postby Waluiggy » Sun Jan 31, 2021 1:13 pm

Is there any way to change which playable characters are allowed to be selected on the world map? I can only find options in the editor for Mario, Luigi, Peach, Toad, and Link.

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

Re: Disallowing playable characters

Postby Hoeloe » Sun Jan 31, 2021 5:36 pm

Code: Select all

local playerManager = require("playerManager")

playerManager.overworldCharacters = {CHARACTER_MARIO, CHARACTER_LUIGI, CHARACTER_BOWSER}
This little bit of Lua (placed in "map.lua") controls which characters can be selected, and in what order.

Waluiggy
Goomba
Goomba
Posts: 4
Joined: Fri Jan 29, 2021 11:50 am

Re: Disallowing playable characters

Postby Waluiggy » Sun Jan 31, 2021 6:52 pm

Great, thanks a lot! :D


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 5 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari