ant7735 Posted March 29, 2021 Share Posted March 29, 2021 Is there some sorta way to make only certain charaters make crafts like adding a craft only wilson could craft? Also is there a way to change the max hp, hunger,sanity a charater has? thank you! Link to comment https://forums.kleientertainment.com/forums/topic/128414-charater-only-craftsmax-stat-change/ Share on other sites More sharing options...
Earthyburt Posted March 29, 2021 Share Posted March 29, 2021 (edited) Hello! I see that you are new to this forum, so I would like to give you a warm welcome here. Anyways, you can change your character's max stats within the character prefab, in [your mod] > scripts > prefabs -> [you characters prefab], and changing the values of TUNING.[CHARACTERNAME]_HEALTH/SANITY/HUNGER. This is typically located near the top of your prefab file. Adding a character only item is a bit more complicated, so I pasted some code below: local nightmare = Ingredient( "nightmarefuel", 1 ) local nightmare_recipe = AddRecipe("nightmarefuel", {Ingredient(GLOBAL.CHARACTER_INGREDIENT.HEALTH, 25)}, (existing tab main), TECH.NONE, nil, nil, nil, nil, "wayne") You do this by entering your modmain file that is locatated in the first level of you mod folder. Make sure this code isn't placed into other strings of code. (Maybe put this just above the skin modes part of the code. Now I am not the best teacher here so I included a link going more in depth for custom crafting recipies. I am not the best teacher, so I think it is best to search the forums a bit more on how to create a custom crafting recipe. If you don't have a way of accessing your prefab files, then you will need to install notepad+ Hope this helps!! Edited March 29, 2021 by Earthyburt Link to comment https://forums.kleientertainment.com/forums/topic/128414-charater-only-craftsmax-stat-change/#findComment-1442726 Share on other sites More sharing options...
ant7735 Posted March 30, 2021 Author Share Posted March 30, 2021 Thank You! 1 Link to comment https://forums.kleientertainment.com/forums/topic/128414-charater-only-craftsmax-stat-change/#findComment-1442736 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