$defaultmarbleSkinColors[2] = blue;
and change the number to the next one and the name to what you want it to be. It would be (name).marble
Also you must add this
datablock ItemData(defaultmarbleBlue: defaultmarble)
{
skin = blue;
};
Add the name from the last addon so it says defaultmarble(name) and change skin= to (name)
Code://
$defaultmarbleSkinColors[0] = base;
$defaultmarbleSkinColors[1] = base;
$defaultmarbleSkinColors[2] = blue;
function defaultmarble::onAdd(%this,%obj)
{
if (%this.skin !$= )
%obj.setSkinName(%this.skin);
else {
// Random skin if none assigned
%obj.setSkinName($defaultmarbleSkinColors[getRandom(2)]);
}
}
datablock ItemData(defaultmarbleBlue: defaultmarble)
{
skin = blue;
};