Figured out we can make fairly extensive ctrl genes now. We just store an activation number into a location then readback that location and mult appropiate portions of a condition with it.
cond
*.eye5 0 =
*.nrg 100 <
start
0 50 store
stop
cond
*.eye5 0 >
*50 0 =
start
1 50 store
stop
cond
*.eye5 *50 mult 0 =
start
314 rnd .aimdx store
stop
Advanced Conspec Recognition on the cheap :)
Checks: refup, refdn, refsx, refdx, refeye, refshoot, refaimdx, refaimsx
Only thing I couldn't use was refties/myties. The numbers just didn't work out right.
cond
'Gene should allow bot to test amongst 8 different refs/myvars randomly
.refup 7 rnd add * .myup 7 rnd add * !=
*.eye5 37 >
start
-1 .shoot store
stop