View Single Post
  #3  
Old 09-14-2007, 01:09 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Skyld View Post
I am not sure how you magically expect global functions to work internally in the script engine.
We have dynamic global variables and objects, why not functions? I doubt it would take that much of an adjustment. Just make the function lookup look at something else between the local functions and the globals. Perhaps the Control-NPC? I had originally thought functions in there should be global by default but was rather disappointed.
Quote:
Originally Posted by Skyld View Post
Just use classes. :/ They aren't that inconvenient.
Class functions show up in getVarNames() and getFunctions(), icky. Global functions are just easier since you don't need to remember what class the thing is in or maintain classes so they match up to a system as you update it.
__________________
Reply With Quote