skapmet Posted September 16, 2015 Share Posted September 16, 2015 hello i have made my character and i wanna make also my private sword, that only my character can craft and use (pick up) like Woodies Lucy axe... my question is, how to make it working, cuz im trying and it dont want to work ofc my character gets this sword at spawn and next question!!!! is it possible to make 2 handed weapon? i mean sword and shield Link to comment Share on other sites More sharing options...
Derpime Posted September 16, 2015 Share Posted September 16, 2015 (edited) you would like to visit "how to make handequip item from scratch" by Malacath and you would also want to look at lucy.lua in the prefabs folder.That is all i can give you if you want to start modding.I just learnt how to write quotes...so i cannot give you that much. I think you cannot make 2 handed item.It's not possible unless you mod the whole game file or something like that. Edited September 16, 2015 by Derpime Link to comment Share on other sites More sharing options...
skapmet Posted September 16, 2015 Author Share Posted September 16, 2015 i mean, every thing is ready to go into workshop, but can't figure out how to make this only-character item i took some code parts from lucy but still not working correctly Link to comment Share on other sites More sharing options...
halfrose Posted October 17, 2015 Share Posted October 17, 2015 i mean, every thing is ready to go into workshop, but can't figure out how to make this only-character item i took some code parts from lucy but still not working correctly Place this in your item function fn() inst.components.inventoryitem.onputininventoryfn = function(inst, player) if player.prefab ~= "character name here" then inst:DoTaskInTime(0.1, function() player.components.inventory:DropItem(inst) player.components.talker:Say("quote you want them to say") end) endendthe only thing I did not solve yet is the bug it gives, it will crash if you try to place it in a backpack Link to comment Share on other sites More sharing options...
NoobModder Posted October 20, 2015 Share Posted October 20, 2015 http://forums.kleientertainment.com/topic/51011-custom-recipe-character-specific-short-easy-question/This'll help with creating character specific items Good luck! 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