Custom color tutorial

[Open Assets] Custom color tutorial

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.
THIS IS A LUA ONLY TUTORIAL.
=============================================================

This is a tutorial on how to submit/make your own colors and can give you a idea on how to get the basics of lua! i guess?
SETUP
costume3 (2).png

Start off by opening your lua based editor (The one i'm using is ZeroBraneStudio) then start off by making free sloting your colors
Freesloting:
freeslot("SKINCOLOR_EXAMPLE1")
Replace the EXAMPLE1 with your own color name
Before you actually start making the color
Use this SRB2 Color Maker to actually make the colors then once your done
then just drag and copy and paste everything
Screen Shot 2025-06-07 at 5.12.45 PM.png

THEN START MAKING THE THING

Code:
skincolors[SKINCOLOR_EXAMPLE1] = {
   name = "Example 1", -- Change the name with your color
    ramp = {0,2,4,6,7,10,12,14,16,18,20,22,24,27,29,31}, -- replace the numbers.
    invcolor = SKINCOLOR_GREY, -- This doesn't effect the colors at all
    invshade = 1,
    chatcolor = V_GREYMAP, -- This changes chat color
    accessible = true -- this is just to make it accessible
}
And yeah that's mainly it
If you want to make more colors add on to the freeslot code
more code:D:
freeslot("SKINCOLOR_EXAMPLE1","SKINCOLOR_EXAMPLE2")
and repeat the setup for the colors
Now make sure to start havin fun.
  • Cool!
Reactions: cheeseboi.
Author
𝗚𝗼𝗼𝗯𝗲𝗿
Views
247
First release
Last update

Share this resource

Back
Top