Hmm, i suppose you may be able to do some complex targeting in order for this to run at least some what smooth.. such as
If count = 1 keep distance, if count =2 approach not keep distance.. at-least that way you will approach it and stop going back and forth.
This may of-course increase your waste, which isn't what we want, but for now it may be a solution.
@DarkstaR - I'm sure you are familiar of exactly what and how the "stick" function works, and how it was on neobot.
Neobot had a priortiy table with:
Health
Danger level,
Proximity,
Random,
Stick
with each "priority" you could drag it from left to right, left being 0 and right being 100.
This allowed all users to easily make their own priority targeting for each spawn, such as
"I want to kill monsters closest to me, but if there is another monster on low hp i can set it to target that even though it is not closest...
Or, once targeting something, i want to stay attacking it until it either exits my screen or dies, so that it will not hit things to red, then re-target a new creature as it runs away.
I think that putting something in like neobot would be nice, in a "table/bar like format.
Example: -
Health - 0 10 20 30 40 50 60 70 80 90 100
Danger level - 0 10 20 30 40 50 60 70 80 90 100
Proximity - 0 10 20 30 40 50 60 70 80 90 100
Random - 0 10 20 30 40 50 60 70 80 90 100
Stick - 0 10 20 30 40 50 60 70 80 90 100
If set up this way, it means that it will target lower hp creatures first, except for maybe if the lower hp creature is full-screen away because proximity is set only 10 higher than health, so it isn't a significant priority over the other.
It will NEVER randomly target a creature because that is set to 0.
The danger level is set quite high, so if a creature of danger level 1 is lower hp than a creature of danger level 9.... the bot will target the creature that is of more danger, even though it is more hp...
Why?
Because our danger level priority is set much higher than the hp priority.
Also the bot will stick a high majority of the time unless other priorities come into higher effect.
I hope this has been explained easily i think i may have dragged it on a bit :( <- 30 mins left of work, and it's Friday, what do u expect? :P
This is not so much an explanation for @DarkstaR because im sure he is well aware of how this works, this is to give some clarity to other users :)
EDIT** - I understand you have introduced some priority settings to allow us do some of these things, i just decided to show it in a table format including the "stick" function that was mentioned.
Having this table may just allow users to tweak things themselves and fine tune it to be, brilliant :D