This script lets character creators give their characters changeable secondary colors!
The instructions for usage are included in the script itself. Simply drag the script into your WAD or PK3 as a new lump and start reading!
I've done my best to make the process as easy as possible—all you need to do to get this working is import a separate set of sprites to overlay your character, then type into the script the name of your character, the name of the extra spriteset, and the list of secondcolors that you want your character to use. There are a number of extra options too, such as the ability to turn the secondcolor overlay off for certain colors, or set a default secondcolor!
When actually playing as a character that makes use of this script, the console command secondcolor can be used to choose a custom secondcolor! Not only does this let players come up with their own unique combinations during play, it makes choosing a character's color combinations a lot easier for their creators. (Of course, there are splitscreen variants of the command too! Unfortunately they're only usable in offline mode.) Creators, you can turn this feature off for your character, if you would rather players didn't mess with your selections.
If the setup process is somehow still confusing, I've included an example addon for creators to view (kl_secondcolorexample_v1.pk3). Adding this file in-game lets Eggman's cape change color.
Keep in mind that adding Lua scripts to your character disables Record Attack mode when they are added to the game!! If you would like your character to be usable in Record Attack, release a separate version without the script.
Please note that the script itself is NOT a standalone addon, it is for creators to use to add secondcolor functionality to their characters.
The instructions for usage are included in the script itself. Simply drag the script into your WAD or PK3 as a new lump and start reading!
I've done my best to make the process as easy as possible—all you need to do to get this working is import a separate set of sprites to overlay your character, then type into the script the name of your character, the name of the extra spriteset, and the list of secondcolors that you want your character to use. There are a number of extra options too, such as the ability to turn the secondcolor overlay off for certain colors, or set a default secondcolor!
When actually playing as a character that makes use of this script, the console command secondcolor can be used to choose a custom secondcolor! Not only does this let players come up with their own unique combinations during play, it makes choosing a character's color combinations a lot easier for their creators. (Of course, there are splitscreen variants of the command too! Unfortunately they're only usable in offline mode.) Creators, you can turn this feature off for your character, if you would rather players didn't mess with your selections.
If the setup process is somehow still confusing, I've included an example addon for creators to view (kl_secondcolorexample_v1.pk3). Adding this file in-game lets Eggman's cape change color.
Keep in mind that adding Lua scripts to your character disables Record Attack mode when they are added to the game!! If you would like your character to be usable in Record Attack, release a separate version without the script.
Please note that the script itself is NOT a standalone addon, it is for creators to use to add secondcolor functionality to their characters.