Author Topic: Best thing ever  (Read 19000 times)

Offline Tilthanseco

  • Bot Builder
  • **
  • Posts: 60
    • View Profile
Re: Best thing ever
« Reply #45 on: July 05, 2012, 01:35:35 AM »
Happy 4th in U.S

Quote
*.eye5 -10 >
I didn't try it, but I believe you need to set the -10 to 0 or above for the gene to work properly. When it doesn't see something, the gene still turns on atm, with nothing in view, the refxpos/ypos values are zero so the bot will always aim at (0,0) I believe.
*.refxpos *.refypos angle .setaim store just has the bots aim at the coordinates of another bot. {aim at (210,1234)}
Also, I spelled *.refypos wrong, fix that.

Ya, you could have the veggies broadcast a veggie code, but with mutations on, that will most likely break in the future.

For sex, you could have the mom ID the Father before birthing. Have it turn toward the father and evaluate based on criteria. Ex:
Code: [Select]
' Sexrepro Gene with Father Condition
cond
*.refeye *.myeye =
'Father Species Condition^
*.fertilized 7 >
'Only use sperm for 2 cycles, 1 to turn, 1 to ID Father and Birth
*.nrg 10000 >
'Birth condition^
start
30 .sexrepro store
stop

'A shoot sperm gene

'Turn towards Father to ID Gene
cond
*.shang 0 >
*.shflav -8 =
start
0 .shflav store
*.shang .aimdx store
stop

On a different note, the order of genes matters. Ex:
Code: [Select]
cond
*.eye5 50 >
start
50 .up store
stop

cond
*.eye5 0 >
start
30 .up store
stop
In that example, the bot will never use 50 .up store if it sees something in eye5.

Yep, run the fixed exe if you plan on using *.shflav or *.shang

I know that mutations will change bot colors but I don't know how. I do know that bot color is only for human enjoyment and has no affect on bot performance.
Undisputed creator of bot Sonar!