Meanator Posted October 5, 2020 Share Posted October 5, 2020 (edited) I have been trying to make some scripts or even changing the existing ones but when even I change anything that is not starting items or basic stats it causes the game to either not load my customized mod or tell me it won't work when I try to load it into a no world. is there a way to find out what I am doing wrong in my coding and correct it outside of finding out it does not suddenly work. an example of what I tried to add didn't work and I am not sure why: local function IsChestArmor(item) if item.components.armor and item.components.equippable.equipslot == EQUIPSLOTS.BODY then return true else return false end end local old_Equip = inst.components.inventory.Equip inst.components.inventory.Equip = function(self, item, old_to_active) if IsChestArmor(item) then self.inst.components.talker:Say("I can't wear this") return false end return old_Equip(self, item, old_to_active) end Nanachi.zip Edited October 5, 2020 by Meanator Link to comment https://forums.kleientertainment.com/forums/topic/122260-editing-the-sample-character-mod/ 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