Way to add more global switches?
Posted: Sun Aug 20, 2023 9:54 pm
Alright, so the card suit switches. Is there a way to add more of those through lua?
Forums for SMBX
https://www.smbxgame.com/forums/
Code: Select all
local bigSwitch = {}
local npcManager = require("npcManager")
local palaceSwitch = require("npcs/ai/palaceswitch")
local npcID = NPC_ID
local settings = {id=npcID, color="purple", speed = 1, blockon=999, blockoff=1000, iscustomswitch = true}
palaceSwitch.registerSwitch(settings)
return bigSwitch