-- This is an example script to show you how to add a skincolor to CLone Fighter's array. -- Here I'm creating a couple dummy colors, feel free to just skip this part if you've defined your color freeslot("SKINCOLOR_CLONERED", "SKINCOLOR_CLONEBLUE", "SKINCOLOR_CLONEGREEN", "SKINCOLOR_CLONEYELLOW", "SKINCOLOR_CLONEORANGE", "SKINCOLOR_CLONEPERIDOT", "SKINCOLOR_CLONESKY", "SKINCOLOR_CLONELAVENDER", "SKINCOLOR_CLONEROSY", "SKINCOLOR_CLONEPURPLE", "SKINCOLOR_CLONEFLAME", "SKINCOLOR_CLONEGOLD", "SKINCOLOR_CLONENOIRE") local colrTable = { SKINCOLOR_RED, SKINCOLOR_BLUE, SKINCOLOR_GREEN, SKINCOLOR_YELLOW, SKINCOLOR_ORANGE, SKINCOLOR_PERIDOT, SKINCOLOR_SKY, SKINCOLOR_LAVENDER, SKINCOLOR_ROSY, SKINCOLOR_PURPLE, SKINCOLOR_FLAME, SKINCOLOR_GOLD } local colrTableC = { SKINCOLOR_CLONERED, SKINCOLOR_CLONEBLUE, SKINCOLOR_CLONEGREEN, SKINCOLOR_CLONEYELLOW, SKINCOLOR_CLONEORANGE, SKINCOLOR_CLONEPERIDOT, SKINCOLOR_CLONESKY, SKINCOLOR_CLONELAVENDER, SKINCOLOR_CLONEROSY, SKINCOLOR_CLONEPURPLE, SKINCOLOR_CLONEFLAME, SKINCOLOR_CLONEGOLD, SKINCOLOR_CLONENOIRE } for i = 1, 12 do local iBase = colrTable[i] local iCl = colrTableC[i] skincolors[iCl] = { name = "Clone Bonus "..i, ramp = skincolors[iBase].ramp, invcolor = skincolors[iBase].invcolor, invshade = skincolors[iBase].invshade, chatcolor = skincolors[iBase].chatcolor, accessible = true } end skincolors[SKINCOLOR_CLONENOIRE] = { name = "Clone Bonus 13", ramp = {31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31}, invcolor = SKINCOLOR_WHITE, invshade = 0, chatcolor = V_INVERTMAP, accessible = true } -- Check if C.F is loaded local function CheckCF() for i = SKINCOLOR_ROSY, #skincolors-1 if skincolors[i].name == "Clone Fighter" return true end end return false end if CheckCF() for k, i in ipairs(colrTableC) do -- Now then. Let's add them to Clone Fighter's color range. table.insert(CLONE_ColorTable, i, true) end -- That's it! Just copy that line above inside the for loop and insert your skincolor's name instead of i. else assert(false, "Clone Fighter has to be loaded first for these colors to work properly.") end