hanilem Posted March 17, 2019 Share Posted March 17, 2019 So I just started modding and need help with the character I'm currently working on. I want her to constantly gain a bit of sanity since she has flowers in her hair and dress (simmilar to a garland). Second I'd like her to be a carnivore pretty much like Wigfried. I tried a few things I found online but none of them worked for me. If anyone knows how to add those things please let me know ^^. Thanks Link to comment Share on other sites More sharing options...
NeddoFreddo Posted March 18, 2019 Share Posted March 18, 2019 This is in the wrong subforum, it should be in 'Mods and Tools.' Spoiler For dapperness, in your character's master_postinit add the line inst.components.sanity.dapperness = TUNING.DAPPERNESS_TINY -- TUNING.DAPPERNESS_TINY is the amount used by the garland TUNING.DAPPERNESS_TINY is equal to 1.33 sanity per minute. There are other possible tuning values such as SMALL, MEDIUM, LARGE, or you could input your own value. For only allowing certain foodtypes add this into your character's master_postinit: if inst.components.eater ~= nil then inst.components.eater:SetDiet({ FOODGROUP.OMNI }, { FOODTYPE.MEAT, FOODTYPE.GOODIES }) end Your character will only eat the foodtypes specified here. FOODTYPE.GOODIES contains items such as Jellybeans, though I'm not sure what else. You can remove it if you wish. All of this information was obtained from waxwell.lua and wathgrithr.lua, both located in data/databundles/scripts.zip/scripts/prefabs If you want help like this in the future I'd suggest taking a peek at preexisting files in the game for help. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now