def tempdist 110 'or some other memloc
'blah blah blah...
start
*.refxpos *.refypos *.xpos *.ypos dist 2 logx .shootval store
stop
This gene finds the distance between 2 bots and finds the inverse log2, then puts the result into .shootval. It works for me... there might be an error. If so, correct me!
