memloc and memval -- since these are not ref variables centered on eye5 I assume these will populate from that invisible "closest body" just like in1/in2, yes?
What? :blink:
Where did you get that idea from?
Memloc and memval most certainly
DO work from the eye5 vision and so do in1 and in2.
Memloc is just the location that you are looking for a value let's say you want to find out a bot's current energy level and for some reason you don't want to use *.refnrg, your code would be something like this..
cond
*.eye5 0 !=
' check that we are looking at something in eye5
start
.nrg .memloc store
' set memloc value to read enrgy
stop
cond
*.memval 30000 >
start
' Too big. Run away quick!
100 .dn store
stop
memval only reads back the value of the
last robot seen in eye5 and will remain at this level until it is overwritten by another viewing.
In this respect it works just like the other "refvars"
:D PY :D