Smb3goalcard.lua
The latest release can be found here. The source code can be found here.
Installation
Copy/Paste the smb3goalcard.lua file and smb3goalcard folder into your LuaScriptsLib folder which should be in the root of your SMBX folder. (../SMBX/LuaScriptsLib/)
How to Use
The script is meant to be used on a world basis, It is advised that you use lunaworld.lua.
In your lunaworld.lua file, start with the following import:
smb3card = loadAPI("smb3goalcard");
Then, override the onLoad() function of the level and set your variables.
function onLoad()
smb3card.usesCard(true);
end
This enables all of your levels that have the SMB3 Roulette exit to use the module.
If you wish to disable the roulette for a specific level for any reason, make a lunadll.lua file in the corresponding levels graphic folder, and add the following.
smb3card = loadAPI("smb3goalcard");
function onLoad()
smb3card.usesCard(false);
end
This will disable the ability to get a card from the roulette.
Methods Reference
| Name | Returns | Notes |
|---|---|---|
| usesCard() | bool | Enables/Disables the GetCard functions. |