Author Topic: A nice conspec system that usually works for many generations  (Read 1143 times)

Offline gymsum

  • Bot Destroyer
  • ***
  • Posts: 215
    • View Profile
'using the genes intended for waypoints, a universal conspec reader is easily created.
cond
*.memloc 819 = or
*.eyef 0 >
start
810 .memloc store
stop

cond
*.memval *.buffer !=
start
.memloc inc
stop

cond
*.memloc 819 =
*.memval *.buffer !=
start
250 *.aim add .setaim store
*.maxvel *.vel sub .up store
stop

cond
*.memval *.buffer =
start
1 .enemy store
stop

This needs several other genes to function properly, I.e. one to assign the value for buffer based on memloc, or out1-out10. But the conspec assignment upon creation is as follows:

cond
*.robage 1 =
start
32000 rnd 1 .out1 store
.....etc,etc until you have stored a random value into every out spot.
stop

When this bot finds another that trys to mask as it, or has a similar value stored in the out1-10 then it kills it, if they are not equal it tries to avoid at all costs. Should beat most other attempts to mask identity, say through poison or venom, since as soon as it goes blind it treats all the results true anyways.
« Last Edit: May 09, 2008, 10:30:59 PM by gymsum »