View Single Post
  #20  
Old 05-14-2007, 07:36 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Chandler View Post
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.
__________________
Skyld
Reply With Quote