cyberjock045 Posted April 8, 2015 Share Posted April 8, 2015 I have created a custom character with a custom item. I do not want to make the item character specific or I would use the tutorial for that. Instead I would simply like to induce insanity like the Nightmare Amulet when when a character other than the custom character welds it. I am putting this bit of code below in the local function onequip of the custom item. I know I am not either calling the right variables or not calling them correctly for the "if" statement. I am trying to test if the owner is not playercharacter ninjajoe. If not then induce insanity. So If ninjajoe equips the item = nothing happens if wilson (or any other character) equips the item = induce insanity. if owner ~= ("ninjajoe") then owner.components.sanity:SetInducedInsanity() endAny suggestions? 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