yildirim Posted September 13, 2015 Share Posted September 13, 2015 (edited) 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? Edited September 17, 2015 by yildirim Link to comment https://forums.kleientertainment.com/forums/topic/57833-item-error/ Share on other sites More sharing options...
Doctor Donna Posted September 14, 2015 Share Posted September 14, 2015 (edited) 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 Edited September 14, 2015 by EulenMarie Link to comment https://forums.kleientertainment.com/forums/topic/57833-item-error/#findComment-672416 Share on other sites More sharing options...
yildirim Posted September 14, 2015 Author Share Posted September 14, 2015 (edited) 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? Edited September 15, 2015 by yildirim Link to comment https://forums.kleientertainment.com/forums/topic/57833-item-error/#findComment-672417 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 https://forums.kleientertainment.com/forums/topic/57833-item-error/#findComment-672467 Share on other sites More sharing options...
yildirim Posted September 14, 2015 Author Share Posted September 14, 2015 (edited) 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. Edited September 15, 2015 by yildirim Link to comment https://forums.kleientertainment.com/forums/topic/57833-item-error/#findComment-672516 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