Author Topic: MicroNet2  (Read 3047 times)

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
MicroNet2
« on: September 05, 2008, 03:13:31 PM »
Odd micro net forming bot, heads towards the direction of the veggies and ties to them then pushes them along, while carrying with them the rest of the bots in the mb. Works best in torroidal mode.

Code: [Select]
'MicroNet2
cond
start
'31997 rnd 2 add .setboy store
.delgene .memloc *.robage sgn 1 sub - mult store
.delgene .tmemloc *.robage sgn 1 sub - mult store
-715 .delgene *.delgene -715 sub sgn abs mult store

'firing
-6 -7 abs -505 abs * sgn mult *.memval -715 sub sgn abs mult store

'tie
-330 abs *.refshoot sgn sub inc

'primary food gathering
100 50 *.tmemval -715 sub sgn mult sub .sharenrg *.multi mult store

'repro
50 .repro *.nrg 2000 sub sgn 0 floor mult store
 clearbool
200 *.shell sub 0 floor 200 ceil 200 *.shell sub sgn abs .mkshell mult store


'acceleration
-505 abs * -1 abs -505 abs * sgn mult store

'start of tie section
*.tiepres .tienum *.tiepres sgn mult store
stop


cond
*.body 3 >
start
*.body 1 sub .fdbody store
stop

cond
*.body 2 <
start
1 .strbody store
stop

cond
*.repro 0 >
start
0 -1 abs store
628 .setaim store
stop

cond
*.tienum 0 >
*.numties 0 >
*.tmemval -715 !=
start
1000 .tieval store
.tieval .tieloc store
stop

'turning
cond
*.memval -715 =
-505 abs * 0 >
or
start
*.refxpos *.refypos angle .setaim store
stop

'backup for above
cond
start
-715 .delgene *.delgene -715 sub sgn abs mult store
stop

end
« Last Edit: April 30, 2014, 03:28:55 PM by Botsareus »

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
MicroNet2
« Reply #1 on: September 07, 2008, 01:07:55 AM »
Can you use // as DB-comments as well?
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
MicroNet2
« Reply #2 on: September 07, 2008, 01:38:36 AM »
I think so.

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
MicroNet2
« Reply #3 on: September 07, 2008, 07:07:53 AM »
Quote from: bacillus
Can you use // as DB-comments as well?
Jup, I figured that just out too.

Typical random tie shooting bot, I completely fail to see any bots after a while, I just see ties.
Oh my god, who the hell cares.