Lexeous Posted August 17, 2015 Share Posted August 17, 2015 I want to make a weapon for my character that can be upgraded. When it upgrades i want it to gain a function (usable as pickax, ax, hammer, etc) and change appearance. are there any mods/ tutorials i can study to help with this?I use http://forums.kleientertainment.com/topic/29427-tutorial-creating-a-handslot-equippable-item-from-scratch/ to create my item if this info will help. Link to comment Share on other sites More sharing options...
NecroAnbu Posted September 10, 2015 Share Posted September 10, 2015 I had an idea that might help. If you are good at scripting you could use the crockpot method to creat an personal object for such a function. a.k.a. blacksmith's table. Would have to learn how to create custom recipes that work with it, but it should be possible. Link to comment Share on other sites More sharing options...
Arkathorn Posted September 10, 2015 Share Posted September 10, 2015 In what manner do you want to upgrade the tool? Through crafting, an action, or something else? Regardless, if you want to retain durability and other attributes when upgrading (which, by the way, can't be done with the normal crafting system), you will have a function you call on upgrading. In this function, you will probably want to call:inst:AddComponent("component_to_add")Take a look at the files for normal tools for reference.Normal tools all have this code:inst:AddComponent("tool")inst.components.tool:SetAction(ACTIONS.MINE)With other actions for other types of tools (Other than pickaxes).Actions can be found in "actions.lua". Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.