Bots and Simulations > Bot Tavern
battery bot
MrMound:
this is a battery bot that I made. its pretty fun to watch all the little bots pulling around veggies.
--- Code: ---cond
*.robage 0 =
start
.tie inc
stop
cond
*.robage 1 =
start
.deltie inc
stop
cond
*.numties 4 <
start
10 .up store
stop
cond
*.numties 4 =
*.eye9 add *.eye8 add *.eye7 add *.eye6 add *.eye5 add *.eye4 add *.eye3 add *.eye2 add *.eye1 0 =
start
1 .fixpos store
stop
cond
*.numties 4 <
start
0 .fixpos store
stop
cond
*.numties 2 =
*.nrg 2000 >
start
60 .repro store
stop
cond
start
*.tiepres .readtie *.numties sgn mult store
.tiepres .memloc *.robage -1 mult 1 add sgn mult store
.numties .tmemloc *.robage -1 mult 1 add sgn mult store
55 10 rnd add .tie *.refeye sgn -1 mult 1 add sgn mult *.eye5 45 sub sgn mult *.memval sgn -1 mult 1 add sgn mult *.robage sgn mult store
628 .fixang *.numties sgn mult store
200 .fixlen *.numties sgn mult store
*.tiepres .tienum *.numties sgn mult store
.fixpos .tieloc *.numties sgn mult *.treffixed mult store
0 .tieval *.numties sgn mult *.treffixed mult store
80 .sharenrg *.multi mult store
*.tiepres .deltie *.tmemval 1 sub sgn mult store
*.tiepres .deltie *.myeye *.trefeye sub sgn abs -1 mult 1 add mult store
stop
end
--- End code ---
MrMound:
heres version 2. bwahahaha!! little bots everywhere!!
--- Code: ---cond
*.eye5 30 <
start
.aimsx store
stop
cond
*.robage 0 =
start
.tie inc
stop
cond
*.robage 1 =
start
.deltie inc
stop
cond
*.numties 1 <
start
10 .up store
stop
cond
*.numties 1 =
*.eye9 add *.eye8 add *.eye7 add *.eye6 add *.eye5 add *.eye4 add *.eye3 add *.eye2 add *.eye1 0 =
start
1 .fixpos store
stop
cond
*.numties 4 <
start
0 .fixpos store
stop
cond
*.numties 1 =>
*.nrg 2000 >
start
60 .repro store
stop
cond
start
*.tiepres .readtie *.numties sgn mult store
.tiepres .memloc *.robage -1 mult 1 add sgn mult store
.numties .tmemloc *.robage -1 mult 1 add sgn mult store
55 10 rnd add .tie *.refeye sgn -1 mult 1 add sgn mult *.eye5 45 sub sgn mult *.memval sgn -1 mult 1 add sgn mult *.robage sgn mult store
628 .fixang *.numties sgn mult store
200 .fixlen *.numties sgn mult store
*.tiepres .tienum *.numties sgn mult store
.fixpos .tieloc *.numties sgn mult *.treffixed mult store
0 .tieval *.numties sgn mult *.treffixed mult store
80 .sharenrg *.multi mult store
*.tiepres .deltie *.tmemval 1 sub sgn mult store
*.tiepres .deltie *.myeye *.trefeye sub sgn abs -1 mult 1 add mult store
stop
end
--- End code ---
Elite:
Found a bug in my gene: need to put this code into it:
--- Code: ---*.tiepres .readtie *.numties sgn mult store
--- End code ---
It should work much better
Hey MrMound
Don't you want to do something with all the energy you're recieving. Store body, make slime and shell, use really powerful shots etc.
With several veggies powering the bot it's got lots of energy to burn :D
PurpleYouko:
--- Quote ---With several veggies powering the bot it's got lots of energy to burn
--- End quote ---
Well that kinda depends on the initial feed rate for the veggies. You get a bunch on th default settings but I always turn it way down to about 10 or 20 in my sims so I wouldn't get anything like as much free energy.
Elite:
My veg feed rate is 30
Still enough to power a bot. So long as it's not fighting for it's life from it's first waking moment there's some periods of low energy expenditure that it can use to build up it's defences.
The default is several thousand :blink:
When I first ran a sim I wondered why the veggies were twice as large as the regular bots
Navigation
[0] Message Index
[#] Next page
Go to full version