Bots and Simulations > Bot Tavern
How do you make a bot stop moving?
Testlund:
Actually, now it moves away from ANYTHING it touches, so now it can't feed much. I just wanted it to move away when shot at.
Moonfisher:
Change this :
*.shflav 0 !=
0 .shflav store
*.aim *.shang sub .setaim store
*.maxvel .dn store
To this :
*.shflav 0 !=
*.shflav -2 != and
0 .shflav store
*.aim *.shang sub .setaim store
*.maxvel .dn store
'(And maybe add some counter shots while fleeing if you want that)
-6 .shoot store
20 .shootval store
Testlund:
Ok, thanks for your help and patience folks! I made it so it will shoot all it's waste at an offender, if it has any.
[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']start
*.refxpos 0 >
*.refxpos *.refypos angle .setaim store
8 .shootval store
-6 .shoot store
stop
start
*.nrg 16000 >
10 .strbody store
stop
start
*.body 16000 >
50 .repro store
15 .aimdx store
stop
cond
*.shflav -1 =
start
25 .up store
stop
cond
*.shflav -6 =
start
25 .dn store
stop
start
*.shflav 0 !=
*.shflav -2 != and
0 .shflav store
*.aim *.shang sub .setaim store
*.maxvel .dn store
-4 .shoot store
*.waste .shootval store
stop
end
Moonfisher:
Not unlike many animals IRL, some empty bowels while fleeing, makes them lighter and faster and can get in the way of the predator. And I know birds and monkeys will aim it at predators to make them leave the area below.
Testlund:
I was thinking about an octopus when I came up with this idea. Thought I should try it out in IM but I think a virus infected flyfruit came in and whiped all my bots out!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version