Jump to content

Custom Foods with Effects


Recommended Posts

Hello!

 

I am currently making a character for DST and would like to give them their own tab (Like Wickerbottom's Book tab) and for each food give an effect for a small amount of time.

Is there a simple way of doing this?

If not I can just put them into the already existing food tab.

 

The foods buffs are pretty simple

1: 30 seconds of increased damage and rapid hunger

2: 30 second speed buff with slight cost of sanity

3: 90 seconds of giving off light with a large cost of health when eaten 

4: 30 seconds of no mob agro with a speed debuff

Link to comment
Share on other sites

@Waphles, what you're wanting to do consists of a two separate things.

 

1) You're wanting to create a recipe tab, this is easy to do simply use AddRecipeTab( "Name", SORT#, "atlas file (.xml)", "image file (.tex)", "builder tag or nil")

2) Food is usually cooked in a crock pot. Having it in the recipe tab usually required you to have the item already made and using additional items you could add the buff such as Sanity/Health.

 

Creating the recipe tab is simple, creating the method in which to add the buffs will require thought to make sure it's balanced.

Link to comment
Share on other sites

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
 Share

×
  • Create New...