FemboyMiker Posted September 21, 2022 Share Posted September 21, 2022 im trying to make a character who can craft his own special items, like wickerbottoms books for example. i want other characters to be able to use the items, but only he will be able to make them. Link to comment https://forums.kleientertainment.com/forums/topic/143338-how-to-create-character-specific-craftable-items/ Share on other sites More sharing options...
Chesed Posted September 21, 2022 Share Posted September 21, 2022 (edited) Hi there. You can do this with the function AddCharacterRecipe that is shown here, by putting it in modmain.lua: This recipe requires a "builder_tag" that you'll have to assign to your character to allow them to craft it. You can assign the tag to your character by putting Quote inst:AddTag("exampletag") in their local common_postinit function in their [YourCharacterName].lua file. Just change the example tags to whatever, so long as they both match. That should make the recipe pop up for them and only them. Hope this helps! Edited September 21, 2022 by Chesed Link to comment https://forums.kleientertainment.com/forums/topic/143338-how-to-create-character-specific-craftable-items/#findComment-1599122 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