worldPlayerDisable.lua is a script(?) that (mostly) fixes a bug in SMBX2 BETA 4 Patch 1 where the player can select a character that is not allowed within the episode in episodes where more than one character is allowed. Do
NOT use this script for episodes with only one character allowed, because it will most likely break in 2‐player mode. To use it simply enter these lines of code into your map.lua file:
Code: Select all
worldPlayerDisable=API.load("worldPlayerDisable")
worldPlayerDisable.allowedPlayers={playerList}
worldPlayerDisable.generateMask()
Replace playerList with a list of all players that should be allowed in the episode. If you need to have this character list change at some point during your episode, simply duplicate the second & third lines. If you are using this at a point in the future where SMBX2 has more than 16 characters, you need to also include this line somewhere:
Code: Select all
worldPlayerDisable.playerTotal=characterCount
Replace characterCount with the current number of characters in SMBX2.
Download here:
https://drive.google.com/file/d/1ueALiK ... sp=sharing
The reason that I say that it mostly fixes this bug is because the character that would be shown without the script (the disabled one) is still displayed for one frame.