Working on something for this...
I proposed this to the development team and it was agreed its an idea worth persuing.
Quote:
Heres something I thought up for future builds.. could be good, could be bad?
Global method scripts.
Everything has a TypeOf() name right?
How about a config file like (mostly pseudo to get the idea across)
globalmethods.cfg
MethodScript Array
{
MethodScript xxxx
}
MethodScript UObject
{
MethodScript xxxx
}
MethodScript Item
{
MethodScript xxx
}
So if you have an item, you could access a custom method.
It would first look at its itemdesc.cfg method, if it isnt found, check the global Item methods,
then go up the heirarchy to UObject and see if it is there.
Since it lets you define one for any object, you could even set methods on an array
people could script Array.Grep() or something? What do you all think?
-Austin