This would be usefull as it could return the index number of a item (e.g. showpoly, showimg, showtext, showani, etc . . .) at the given X and Y.
Example:
NPC Code:
if (created) {
showimg 1,test.gif,130,130;
changeimgvis 1,5;
timeout = .05;
}
if (timeout) {
test = testindex(mousescreenx, mousescreeny)
if (test == 1) {
message Mouse is at index 1;
}
timeout = .05;
}
For this to work it would have to check the demensions of the item, such as the full demensions of an showimg.