so now im trying to limit the area (white line by the pink box) to search for the Judge to try and avoid problems with the guards that surrond him- mainly the two next to the blue arrow because they often appear on the mainscreen while the camera angle is low and get misclicked or moused over when looking for uptext because they are the same color (second picture). To solve this I am trying to use the minimap to return only the yellow dot(s) as positive values to search for and click on inside the pink box if they satisfy the color and uptext.
EDIT:' it also needs to be able to find the Judge if some one is standing over the Judge, because then the yellow dot is covered up with the players white dot'
is this possible with the two guards often appearing on the mainscreen when the camera angle is low- will they still get missclicked? i cant find a releavent MMtoMS guide and im uncertain if the FindObjThroughMM is the right function im looking for to do this. is there a better way? any tips/hints would be appreciated.
im not sure why they get misclicked because i have a mmouse then check up text to ensure a guard isnt the NPC being clicked on
Simba Code:
if FindObjCustom(jx, jy, ['omp', 'tition'], [judgecolor1, judgecolor2, judgecolor3], 5) then
begin
MMouse(jx,jy,0,0);
if IsUpTextMultiCustom(['omp', 'tition']) then
begin
ClickMouse2(mouse_left);
if this is a inncorrect or noobish method i would still like to know how to limit objects it checks on the mainscreen to narrow the selection down
thanks a ton in advance! last thing before it's a flawless script (other then randoms ha)! 
two guides i thought might be useful but unsure because EOC
http://villavu.com/forum/showthread.php?t=100227 - surfaces
http://villavu.com/forum/showthread.php?t=76005 - how to find a moving NPC
