New JS Event: onTagChange

If Wishes were UOX Coders, we'd be done by now ;P Post your wishes/suggestions for UOX3 changes/improvements here.
Post Reply
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

New JS Event: onTagChange

Post by Xuri »

I'd like to see a new JS event called "onTagChange" (or something else, if anyone can think of a better name), which would run for objects when their JS tags are changed. (through SetTag, for instance)

Like... function onTagChange( myObject, TagName ), where myObject is obviously the object to run the script for and TagName is the name of the JS Tag (or possibly the value of the tag?) that has changed.
-= Ho Eyo He Hum =-
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

ick
Scott
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

ick
That's a classic response. lol.


Xuri, I think I follow what you are asking, but you didn't specify why you wanted such a function?

What I'm wondering, is if we *could* implement this function, what are some scenarios that I would use it for?
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

No idea :) I just posted this as soon as I thought of it, just so I wouldn't forget about it ;P Don't know if it would bring any extra functionality at all, actually :P
-= Ho Eyo He Hum =-
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Your statement there Xuri encapsulates about half of my ick.

The other half comes from an understanding of what a task it would be to ensure every property change calls that JS event (not to mention the possible performance hit caused by that even being called when a time-critical function changes an item/character property).
Scott
Post Reply