SRL Archive - OSR Help

DTM Help


DeSnob

2011-11-19 15:44:15

Alright, so I finished the most important parts of my script, but it's got one big issue. It tries reaching chickens that are on the outside of the chicken pen/fence. Is it possible to make a DTM or a DDTM of the pen?
I want to use MMTOMS and a Back-up function, along with GetMinimapDots to make sure that the chicken's minimap dot is within the DTM(Chicken pen) and if it isn't, it'll ignore the chicken.

Dynamite

2011-11-19 18:43:02

I would make a ATPA of the pen then check whether the chicken is within the ATPA.

-Boom

YoHoJo

2011-11-19 18:45:02

^ That,
Or find the churn symbol and click to the upper right of it.

Tickyy

2011-11-19 19:58:09

use length function?

Never really used it, but you could do something like a length between the symbol on Mini Map, or just the RoadColor?

Like If length(some small length) > RoadColor then GoBackToChickens - The same for the symbol.

Edit: or even better: If length(more near the brown thing on north) then Go_back

DeSnob

2011-11-19 20:02:16

From: Dynamite
I would make a ATPA of the pen then check whether the chicken is within the ATPA.

-Boom


Sounds good, but how would I specifically make an ATPA from the boundaries? That's the confusing part.

I was thinking of searching for dirt colors and comparing the surroundings, but it's basically the same as the outside of the chicken pen. Also, about the symbol suggestion; I have a DTM to return to the pen, but I need to make some sort of TBox surrounding the pen and check if the chicken's point is within it.