Jump to content

Recommended Posts

I'm trying to create a custom healing item which acts similar to a honey poultice. the only difference is that, it does not stack in inventory (poultice uses has 40) but has limited uses, say at least 4 uses before it turns to a different item that can't be used unless cleaned (i.e washed in pond)

I tried using honey poultice as reference. This though shows it is using the "healer" component. Thing is, that component destroys 1 stack of that item after a use. When I tried following that by creating my own custom healer component to remove the code that removes 1 stack, my item lost its ability to be used as a healing item. As if the component does not exist

On 8/18/2023 at 9:47 AM, aikawayumi said:

When I tried following that by creating my own custom healer component to remove the code that removes 1 stack, my item lost its ability to be used as a healing item. As if the component does not exist

This is likely because your custom component has no actual ties to an Action to be done. There is a "Heal" action tied to the healer component that allows those items to clicked on an used in that way, which wouldn't exist for a new component. You would have to add a component action in your modmain so the item (and anything else with the new component) can be used.

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