Armadyllo Posted May 25, 2019 Share Posted May 25, 2019 Hi, I'm trying to make it so my character gets less hunger from food. Also, I know this is a long shot, but is it possible to also reduce the amount of damage to stats when eating bad things? (mushrooms, rot, etc) Link to comment Share on other sites More sharing options...
Hornete Posted May 25, 2019 Share Posted May 25, 2019 26 minutes ago, Armadyllo said: snip Wortox does EXACTLY this, All of foods stats get halved when eaten by him, if inst.components.eater ~= nil then inst.components.eater:SetAbsorptionModifiers(TUNING.WORTOX_FOOD_MULT, TUNING.WORTOX_FOOD_MULT, TUNING.WORTOX_FOOD_MULT) end Link to comment Share on other sites More sharing options...
Armadyllo Posted May 26, 2019 Author Share Posted May 26, 2019 1 21 minutes ago, Omaremad74 said: Wortox does EXACTLY this, All of foods stats get halved when eaten by him, if inst.components.eater ~= nil then inst.components.eater:SetAbsorptionModifiers(TUNING.WORTOX_FOOD_MULT, TUNING.WORTOX_FOOD_MULT, TUNING.WORTOX_FOOD_MULT) end Oh, thanks! Where exactly should this go though, in my character.lua I'm assuming? Just want to make sure. Link to comment Share on other sites More sharing options...
Hornete Posted May 26, 2019 Share Posted May 26, 2019 Yes in the master_postinit of your character.lua 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