Jump to content

Recommended Posts

I just started working on a mod character. This character has fur over his body, so I'd like to be able to shave him and have him drop wool. But I don't know how to make that happen. I think the simplest way would be to give him a beard layer for his neck fur, but how do I make him start out with a beard at the beginning of the game?

I'm new, so I may not be the best to answer this, but...

I made a character who can grow a beard, and the code for that refers to different things.

--tune the beard economy...
local BEARD_DAYS = { 3, 4, 10 }
local BEARD_BITS = { 1, 3,  9 }

local function OnGrowShortBeard(inst)
    inst.AnimState:OverrideSymbol("beard", "beard", "beard_short")
    inst.components.beard.bits = BEARD_BITS[1]
end

local function OnGrowMediumBeard(inst)
    inst.AnimState:OverrideSymbol("beard", "beard", "beard_medium")
    inst.components.beard.bits = BEARD_BITS[2]
end

local function OnGrowLongBeard(inst)
    inst.AnimState:OverrideSymbol("beard", "beard", "beard_long")
    inst.components.beard.bits = BEARD_BITS[3]
end

    inst:AddComponent("beard")
    inst.components.beard.onreset = OnResetBeard
    inst.components.beard.prize = "beardhair"
    inst.components.beard:AddCallback(BEARD_DAYS[1], OnGrowShortBeard)
    inst.components.beard:AddCallback(BEARD_DAYS[2], OnGrowMediumBeard)
    inst.components.beard:AddCallback(BEARD_DAYS[3], OnGrowLongBeard)

It would make sense that instead of adding a beard sprite to the face, you could change the sprite to cover the whole body.

So even with the code the same, the edited picture will be what shows up, and you can change the code just to give you more hair.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...