Jump to content

Recommended Posts

I added a string of code to my character that makes sure he only eats vegetables, seeds, and grass because he's a werebunny.

Now, before I added the werebeaver thing to him, he'd only eat the above foods.

Here's the diet for his cursed form:

    inst.components.eater:SetDiet({ FOODGROUP.OMNI }, { FOODGROUP.OMNI }, { FOODTYPE.ROUGHAGE }, { FOODGROUP.VEGGIE })

And here's the human diet:

	inst.components.eater:SetDiet({FOODGROUP.OMNI}, {FOODTYPE.VEGGIE, FOODTYPE.SEEDS}, {FOODTYPE.ROUGHAGE})

Somehow, after adding the werebeaver thing, he just doesn't obey the diet. Is it because of priority in the code, his stats are past the werebunny code? I'm lost, I don't know how or why this happened. Does anyone know?

Nevermind, my friend found the issue. 

The "beaver"/"bunny" diet was overriding the human diet. So I had to change that. By just copying and pasting the human's diet for the bunny.

 

This topic can be locked if at all possible.

Edited by DextersComicLaboratory
Guest
This topic is now closed to further replies.
×
  • Create New...