Kooby Posted July 12, 2017 Share Posted July 12, 2017 Recently i started working on an item that can be equipped on the hand using this as help: But i've been running into an error. "[string "scripts/mainfunctions.lua"]:119: Error loading prefabs/(item name).lua [string "...mods/(my mod)/scripts/prefabs/(item name).lua"]:31: 'end' expected (to close function at line 6) near 'Prefab' LUA ERROR stack traceback: =[C] in function 'assert' scrips/mainfunctions.lua(119,1) =(tail call) ? =[C] in function 'xpcall' scripts/mods.lua(154,1) scripts/mods.lua(593,1) in function 'RegisterPrefabs' scripts/GameLogic.lua(226,1) in function 'LoadAssets' " From what i understand, it says it misses 'end' at line 31...except i did put an end there, i even tried putting two, but that didn't seem to do it. I followed the instructions nearly similar, except changing each instance of MyItem into my item's name. And while we're at it, i would also like if someone could help me give stats to the item, like making it usable in combat, change the damage values it will deal, not destroy when uses deplete (instead becoming unusable, like Bone Armor), and recharge using Silk. That's all, thanks in advance! Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now