Mobile MethodScripts (Both NPC and PC)

Archive of the older Feature Request Forum Posts
Locked
Mithril
New User
Posts: 25
Joined: Sat Feb 04, 2006 5:15 pm

Mobile MethodScripts (Both NPC and PC)

Post by Mithril »

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.
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

Working on something for this...
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
User avatar
itec
Novice Poster
Posts: 42
Joined: Thu Feb 09, 2006 11:48 pm

Post by itec »

Since it's almost two years ago this was suggested and it is still a great idea, did this feature get any closer to being made? It really should! It's that good.
Locked