i'm using DTM's to locate images on the screen. the command finddtm(x,y...) saves its coordinates as x,y. my question is how can i make it find another after it has found that one. like search again, but pass over that one onto the next.
Printable View
i'm using DTM's to locate images on the screen. the command finddtm(x,y...) saves its coordinates as x,y. my question is how can i make it find another after it has found that one. like search again, but pass over that one onto the next.
Are you using DTMs for mainscreen objects, or inventory objects?
(Not entirely sure what you are using)
With SCAR, you'll have to limit the terrain where you want to search for the DTM so that it does not include the x, y you just found. And repeat this for every DTM where you will have to make the area more and more complex. This is generally not doable.
With Simba, you can just use FindDTMs, which will give you all the DTM's in the specified area.
E: Documentation, http://wizzup.org/simbadoc/scriptref/dtm.html I didn't add further descriptions yet but at least there's an overview of the functions online.
this is not for rs. and thanks wiz i'll look into it
Finding multiple DTMs is a feature planned for the SCAR Luna series and is indeed currently not supported in SCAR, if you wish to use this feature for now it would indeed be best to use Simba.
Here is how you can make your own FindAllBitmapsIn or FindAllDTMsIn, but probably not a good idea for large areas.
http://villavu.com/forum/showthread....map#post108319