Random Toggle

[Open Assets] Random Toggle v1.2

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.
Random Toggle:tm:
(because choice paralysis got the best of me)
Ever tired of having to decide on a specific character to use? Heavy Magician not enough? I present this random toggle lua I made as a result.
This adds three new commands that allow you to toggle randomization options for yourself whenever a race begins.
Commands
  • randomchar: Toggles whether or not your character is randomized for the next race. This will roll any available character you have to your disposal. (If it's not able to successfully roll a character, it will default to Knuckles.)
  • truedefault: Toggles whether or not your character uses their prefcolor when randomizing. (This is more of a band-aid since I cannot properly check if someone is using default or not.)
  • randomcolor: Toggles whether or not you will randomize your color the next race. This can give you any color available in the game. (This takes priority over truedefault.)
Blacklisting
This mod also comes with support for character and color blacklisting. This is done by making an external script that uses two functions.
  • AHC_BlacklistCharacter(character) - Blacklists a given character. Takes their internal name as an input (for example, "sonic").
  • AHC_BlacklistColor(color) - Blacklists a given color. Takes its name as an input (for example, "Ultramarine").
Blacklisting:
-- The chaos emerald colors aren't the greatest to look at, so we can blacklist them like so:
AHC_BlacklistColor("Chaos Emerald 1")
AHC_BlacklistColor("Chaos Emerald 2")
AHC_BlacklistColor("Chaos Emerald 3")
AHC_BlacklistColor("Chaos Emerald 4")
AHC_BlacklistColor("Chaos Emerald 5")
AHC_BlacklistColor("Chaos Emerald 6")
AHC_BlacklistColor("Chaos Emerald 7")

-- As for characters, it's as simple as listing their name in this function.
-- Sorry, Sonic!
AHC_BlacklistCharacter("sonic")
Author
FrivolousAqua
Downloads
211
Views
1,191
Extension type
lua
File size
16 KB
MD5 Hash
f05337fe16894c1ad074c442f67df7b8
First release
Last update

More resources from FrivolousAqua

Share this resource

Back
Top