Quote:
Originally Posted by Skyld
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
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.