(Request)Is it possible to disable lua scripts when playing a certain character?
Posted: Wed Apr 13, 2022 3:23 pm
Hello. I am using the AnotherPowerup script.lua and trying to modify it so that other characters can use the custom powerups and create sprites, but in what I do I would like to know if there is a way to disable that script when, for example, the player chooses Wario
Is there a way to achieve this?
Code: Select all
local littleDialogue = require("littleDialogue")
local anotherPowerDownLibrary = require("anotherPowerDownLibrary")
<<< Script that I would like to be deactivated when a chooses an unsupported character[/color]
local ap = require("anotherpowerupSMM2")
ap.registerItemTier(800, true)
ap.registerPowerup("ap_acorn")
ap.registerItemTier(801, true)
ap.registerPowerup("ap_penguinsuit")
local ap = require("anotherpowerup")
ap.registerItemTier(968, true)
ap.registerItemTier(969, true)
ap.registerPowerup("ap_thunderflower") >>>
local warpTransition = require("warpTransition")
twirl = require("Twirl")