[OBSOLETE AND BROKEN] Player-controlled shield ability toggle

[Open Assets] [OBSOLETE AND BROKEN] Player-controlled shield ability toggle V2

What permissions do you give others to modify and/or maintain your submission?
Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
2.2.15 and onward will not have the shield button, this addon is now obsolete and should not be used.


This addon needs to be loaded before your characters to work properly.



2.2.14 adds a great new feature to assign shield abilities to a dedicated button! However, some older characters may never get updated to support this due to author inactivity.
In response to this, I made a simple whitelist-controlled Lua addon to allow server hosts and players to define which skins can and cannot use the shield abilities!


This addon is very simple, there's two basic commands, an done more complicated command.

shield4all_whitelistmode <on/off, default: off>
This command will determine if the list of skins will act as a whitelist to allow those skins to use shield abilities, or as a blacklist to stop the specified characters from using shield abilities.
It acts as a blacklist by default.

srb20051.gif




shield4all_toggleskin <skin name>
This command will either add or remove a skin from the list of skins. It works like a toggle, running a skin through this command once will add them to the list. If the skin already exists within the list, it will instead be removed.

srb20056.gif




shield4all_shieldspecialfix <skin name>
Here's that complicated command.
This command is meant for characters who use the ShieldSpecial hook to block shield abilities. This was the method used before the SF_NOSHIELDABILITY flag was introduced (one example I know of is V2.1.1 of Cacee by light dasher as of Nov 19, 2025).
You will need to use this command for all characters that use this technique.
Please be aware that this will break characters who utilize ShieldSpecial beyond a nil return, so use this with caution.
Also keep in mind that the character will still be affected by the shield4all_toggleskin command.

srb20058.gif




Extra features
Meta Knight by Kibito is a rather complicated character that functions unlike any addon due to how early it was created, and its complexity. I could not get it to work without a super specialized script just for Meta Knight.
Due to this, you will need to use a command made just for Meta Knight to control whether or not he can use shield abilities. He is not affected by any of the other commands.

shield4all_metaknightshields <on/off, default: off>
This is that command. Setting it to off will disable the script entirely.
It is set to off by default due to how hacky it is, only enable it if you use Meta Knight.

srb20060.gif



Please be aware that only players with admin permissions can run these commands.


That's all, I hope this helps with some of you server hosts who prayed for these characters to use shields!


Credits:
Pikaspoop: Majority of the code and functionality.
Lach: Teaching me about Function overloading, providing code for the overload, and helping analyze Meta Knight.
Author
Pikaspoop
Downloads
195
Views
1,265
Extension type
pk3
File size
3.8 KB
MD5 Hash
4ef2f9d9bf7da03ed4f1ea5d45aa88c5
First release
Last update

More resources from Pikaspoop

Share this resource

Latest updates

  1. Better Character Compatibility + Meta Knight specific Lua

    Remember when I said that ShieldSpecial users could not be affected? Welp, thanks to Lach's help...
Back
Top