Aurorus Posted February 27, 2019 Share Posted February 27, 2019 I want do fuelable/repairable item like nightmare amulet but idk how to do this. Anyone can help? Link to comment Share on other sites More sharing options...
Ultroman Posted February 27, 2019 Share Posted February 27, 2019 Did you look at the code for the Nightmare Amulet? You can do this using the fueled-component, using one of the standard fuel-types (default is BURNABLE. Not sure what the others are. Nightmare Fuel, maybe? You can check that out in the game code). It sounds like the repairable-component is a better fit for this case, but then you have to create a custom item which will function as a repair_material (technically, you could add the repairer-component to any existing game-prefab, and set it as the repair_material on the item, but that seems a bit intrusive. If you do this, at least make sure to check whether the prefab already has a repairer-component on it, because if it does, then it's already used to repair something else, and the repairer-component has the values for how much 1 unit of that repair_material repairs the item, so if you change it, you might mess something else up. Link to comment Share on other sites More sharing options...
Aurorus Posted February 27, 2019 Author Share Posted February 27, 2019 I cant find nightmare amulet in files idk name of this Link to comment Share on other sites More sharing options...
Ultroman Posted February 27, 2019 Share Posted February 27, 2019 amulet.lua in the Prefabs folder. It's the one called "yellowamulet" Link to comment Share on other sites More sharing options...
Aurorus Posted February 28, 2019 Author Share Posted February 28, 2019 (edited) 20 hours ago, Ultroman said: amulet.lua in the Prefabs folder. It's the one called "yellowamulet" How can i make custom fuel type I think about silk as a fuel type Edited February 28, 2019 by Aurorus Link to comment Share on other sites More sharing options...
Ultroman Posted February 28, 2019 Share Posted February 28, 2019 Search the game files for "repairer" WITH the quotes. You'll find a bunch of examples of how it works. If you need starter-help look at this post. It should get you going with some QoL-stuff, game- and mod-files, as well as how to debug things. It shouldn't be more than: add a repairer-component to all silk, and set the appropriate settings on that component add a repairable-component to your item set the silk-prefab as the repairer_item in the repairable-component. 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