My file does not work.

*GOOFYRAT!*

The goofiest of investigators.
So, I decided to take my hand at creating a skin color, but it does not load in, and I have no idea why. Anyone able to help?
 

Attachments

  • GoofyColor.lua
    280 bytes · Views: 56
To fix it you need to always freeslot, that word its not a placeholder, that is a command/action on Srb2 to add new custom stuff, also the fact that you need to give your color its respective name, without spaces nor symbols, only letters.

Fixed it should look like this

freeslot("SKINCOLOR_GOOFYRATGUY")
skincolors[SKINCOLOR_GOOFYRATGUY] = {
name = "GoofyRatGuy",
ramp = {104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119},
invcolor = SKINCOLOR_JADE,
invshade = 15,
chatcolor = V_GREENMAP,
accessible = true
}

You used another word instead of "freeslot" to freeslot the new color.

Same with the "skincolors" line, to specify the color you want to give its data, and thought i havent tried before, try to limit yourself only to words and "_" if you wanna add spaces.

And you also forgot to close the custom skin color definition block.
 
Oh, okay. Thank you, dude!
Yw, and if you wanna add several colors, you only have do it like this

Freeslot(
"SKINCOLOR_COLORNAME",
"SKINCOLOR_COLORNAME)

and etc, adding a comma each new one you add, always making sure you have both parentesis at the start and end to open and close the freeslot thing.
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top