Hiya PY
Thanks for looking at the code. It's a bit muddled because I switched the order of genes to see if that helped.
The first time it sees an enemy it should do:
.memloc .memloc store
*.memval .foundmemloc store (what value do you have in memloc)
The next time it sees an enemy it should do:
*.foundmemloc .memloc store
*.memval .reqmemval store (what value do you have in the location you store in memloc)
And then store the value in the same memory location using:
*.reqmemval *.foundmemloc store
All of which leads to the bot, using the code posted, to display the correct behaviour against Ymir, it probably won't win but it will last for a while.
However, if I enable the line:
'***********************Why not this line? (makes reqmemval and foundmemloc same)
'*.reqmemval 0 =
It won't work properly.
Or if I enable the count cond in the chameleon genes it won't work properly.
So I figure there is something I'm not taking account of, normally I can work out why the code isn't working but not this time.