The light green bar indicator is circling if its active.
If i were doing it, i would probably detect that helmet with image match, then use a target offset based on image match. then do a color check.
lets say i get match from
exists('helmet.png')
you could :
local _loc = getLastMatch():getCenter()
then you could get your color check location based off that.
local _color_loc = Location(_loc.x+10,_loc.y-10) --just example locations, this would go from the center of your match and move right 10 pixels, and up 10 pixels.
then do a color check on that new loc(make sure its inside where the green bar hits at the beginning of its loop around.)
if the color is there then do wjatever, if not then its false.
So... the icon sizes are not always same. As example in picture attached, when it has only 8 modules the size will be a bit larger, but when it has 12 modules the size will be a bit smaller.
May 13, 2021 8:33:33 GMT 9 AnkuLua said:
How about just detecting some part of the lighting circle?
If i were doing it, i would probably detect that helmet with image match, then use a target offset based on image match. then do a color check.
lets say i get match from
exists('helmet.png')
you could :
local _loc = getLastMatch():getCenter()
then you could get your color check location based off that.
local _color_loc = Location(_loc.x+10,_loc.y-10) --just example locations, this would go from the center of your match and move right 10 pixels, and up 10 pixels.
then do a color check on that new loc(make sure its inside where the green bar hits at the beginning of its loop around.)
if the color is there then do wjatever, if not then its false.
make sense?
Exilereven : Any idea on dynamic way to detect the boundaries so I can use it as an offset location ?
I think I can make a condition on each total modules, I just want to know if there is easier way.