Quote:
Originally Posted by Chandler
Because functions can be edited, isn't that why Stefan created this...?
|
I'm confused, and I am not sure where you are going with that.
if ("magicFunction".lower() in this.getfunctions()) tells you if the function
magicFunction() has been defined somewhere on the current object (normally the script/NPC). Change the this. to some other object to check if the function is defined in that object instead.
It's only one line, and it certainly does not need a system NPC creating to use it.