Earthyburt Posted March 19, 2021 Share Posted March 19, 2021 Hi I have a couple questions I have for making an update for my mod and rather than making seperate posts for each question I have, I decided to put them all here. How do I create a healing item from scratch? What basic files do I need for it? How do I transfer values of a character's sanity, max sanity and negative sanity drain multiplier to be applied to an item that the player is holding or using? (for example I want to create a weapon whose damage scales with the holder's sanity) How does body armor work Link to comment Share on other sites More sharing options...
CarlZalph Posted March 19, 2021 Share Posted March 19, 2021 1] Creating a prefab, look at how healing salves are constructed. 2] Many ways but I think the most straightforward is to hook the damage application function that shoots off the event and modify the value before it gets sent based off of your criteria. 3] Look at any of the armour prefabs, they're almost all the same. 2 Link to comment Share on other sites More sharing options...
Earthyburt Posted March 20, 2021 Author Share Posted March 20, 2021 (edited) On 3/18/2021 at 10:06 PM, CarlZalph said: 1] Creating a prefab, look at how healing salves are constructed. 2] Many ways but I think the most straightforward is to hook the damage application function that shoots off the event and modify the value before it gets sent based off of your criteria. How would I do those 2 things. I do not know how to code that (2). Also, what files do I need for this healing item and what do I need to create it? Edited April 7, 2021 by Earthyburt Link to comment Share on other sites More sharing options...
ant7735 Posted April 4, 2021 Share Posted April 4, 2021 Not sure if this helps but in the code of the healing salve i found this VVVV inst:AddComponent("healer") inst.components.healer:SetHealthAmount(TUNING.HEALING_MED) 1 Link to comment 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