Mobile MethodScripts (Both NPC and PC)
Mobile MethodScripts (Both NPC and PC)
Would be tremendously helpful if we could add MethodScripts for mobiles like we can for items. I'm not sure how difficult this is to do, but it would certainly be a very big boon scripting wise.
Working on something for this...
I proposed this to the development team and it was agreed its an idea worth persuing.
I proposed this to the development team and it was agreed its an idea worth persuing.
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