yildirim Posted September 13, 2015 Share Posted September 13, 2015 Hi, Could you please take a look at the codes that I used and tell me what is wrong with them? The item that I want to add is similar to Willow's lighter. -- snip -- Is it possible to use something like "inst.components.equippable.equipslot = EQUIPSLOTS.HAND" by the way? Link to comment Share on other sites More sharing options...
Doctor Donna Posted September 14, 2015 Share Posted September 14, 2015 Hi, I've just tried to add a item to my character and apparently I need some help. There is always a forest fire and whenever I equip my item, the game gives an in-game error which forces me to exit the game or disable the mod. The item that I want to add is similar to Willow's lighter. Here is the codes that I used, could you please take a look at them and tell me what is wrong? Is "inst.components.equippable.equipslot = EQUIPSLOTS.HAND" correct by the way? I'm not god at coding but I see something, maybe this is a problem I think you need this too Asset("ATLAS", "images/inventoryimages/cutehat.xml"), Asset("IMAGE", "images/inventoryimages/cutehat.tex"),} local function onequip(inst, owner) owner.AnimState:OverrideSymbol("swap_object", "swap_cutehat", "swap_object") Local function fn (sim) looks not correct for me.. but I don't know :/In my Tardis key I havent this:"inst.components.equippable.equipslot = EQUIPSLOTS.HAND" Did you look in the willow mod for dst?lighter.lualighterfire.lua Link to comment Share on other sites More sharing options...
yildirim Posted September 14, 2015 Author Share Posted September 14, 2015 I took a look at the other script files but didn't get what exactly to do. Why is there no header file explaining functions etc? Link to comment Share on other sites More sharing options...
Mobbstar Posted September 14, 2015 Share Posted September 14, 2015 Why is the thing called "cutehat" when it's a tool-type of equipment? Hats are found in "hats.lua" by the way. Link to comment Share on other sites More sharing options...
yildirim Posted September 14, 2015 Author Share Posted September 14, 2015 It's because I used The Dana Adams' character as base while following the tutorial, didn't want to spend time with changing file names. 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.