ID:1724691
 
(See the best response by MisterPerson.)
Code:
            if(Kidou>=1)
if(src.contents.Find(/obj/Perk/Kidou1)==0)

src.contents += new/obj/Perk/Kidou1


Problem description:

This just keeps on ignoring the fact that there already is that object in the src's content and creating a new one. How can I check that the object isn't in the list? I don't want to use in then use return cause this is going to check for 5 other variables.
You're checking for a path and not an object instance. The path is not in the contents.

Should I check for Kidou1 only? Or do I have to use for() Then compare names?
Best response
You can use locate()