Jump to content

Recommended Posts

Did you use this tutorial:

to create your character ? Probably yes.

 

 

Quote

1. Cooked seeds are giving 3x more food.

Above master_postinit:

local function seeds(inst, food)
	if inst.components.eater and food.prefab == "seeds_cooked" then		
		inst.components.hunger:DoDelta(10)
	end
end

Under master_postinit:

inst.components.eater:SetOnEatFn(seeds)

 

 

Quote

2. Increased running speed.

Inside of [your.character's.name].lua (mod->scripts->prefabs) you should see something like this:

local function onbecamehuman(inst)
    inst.components.locomotor:SetExternalSpeedMultiplier(inst, "[character's.name]_speed_mod", 1.5)
end

1 is default

 

 

Quote

3. Sanity is decreasing faster.

You will need to paste this under master_postinit

	inst.components.sanity.night_drain_mult = 1.5

1 is default

I am glad I could help. Cheers!

 

  • Like 2

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...